Antwort: [PHP-I18N] xgettext & multiline string literals (addition)

[email protected]
Newsgroups php.i18n
Message-ID <OF66D3C429.61BB3BD4-ONC1257213.0032895B-C1257213.00333F27@aschendorff.de>
[email protected] schrieb am 26.10.2006 10:50:31:

# snip #

> _("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.

additionally i tried:

_("This is just a slightly longe
  text for demonstration purpose");

This results in the same behaviour as with C the string literal
includes all whitespace characters including \n \t or whatever...
Thatfor these are also part of the key extracted by xgettext.
This is a horror to read in the .po file and makes the stuff 
difficult to translate.
And it is for sure inacceptable if the string will be used for
other purpose than write it within a HTML ducoment.

BR
  Georg
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.