php-i18n Digest 9 Nov 2006 22:36:11 -0000 Issue 337
Topics (messages 1028 through 1029):
Antwort: [PHP-I18N] xgettext & multiline string literals (addition)
1028 by: Georg.Steffers.aschendorff.de
Flushing/disabling the gettext cache?
1029 by: Wil Clouser
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
[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
--- End Message ---
--- Begin Message ---
Hi,
I'm working on the l10n side of a new site and, after googling around,
I'm still left with a couple of questions.
We're using:
- PHP 4.3.9
- Apache 2.0.52
- Redhat linux
1) How can we refresh the gettext cache? The only way we've
consistently been able to refresh the cache is by restarting the
apache daemon (graceful restarting seems to be hit or miss, actual
restarting seems to work every time). What's the proper way to
refresh the cache?
2) Is there a way to disable gettext caching? When we're developing,
I'd prefer it if any change in the .mo was active on the site
immediately, even if it meant a performance hit.
I'm not sure if my questions are more apache or php related, but I've
gotten answers here in the past, so I figured I'd start here. Please
tell me if you know of a better place to ask.
Thanks for any input.
Wil Clouser
--- End Message ---