xgettext & multiline string literals

[email protected]
Newsgroups php.i18n
Message-ID <OFAACB14FB.5D317D3F-ONC1257213.002F1D4F-C1257213.00309252@aschendorff.de>
First of all hello to this list!

I am searching for this quite some time, but still could not find any 
answer.
I use gettext in my C programs with no problems some time now. So
I decided to do the same with my web projects.
It was a nearly painless start, with only one exception. I am not able
to use multiline string literals for slightly longer texts in PHP.

In C i can use the following:

_("This is just a slightly longer "
  "text for demontration purpose");

To split one long string into (what i called) a multiline string literal. 
This
works perfectly, at least with gcc and xgettext does extract the whole
string (both lines) as a key.
In PHP this is not possible at all because it simply does not allow this
syntactically.
So i tried the following in PHP:

_("This is just a slightly longer " .
  "text for demontration purpose");

But that is not understood by xgettext. The .po file does only 
contain the first row of the string as a key.

Has anyone any solution for this?


Best regards
   Georg Steffers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.