Re: xgettext and parameter reordering
[email protected] (Guido Flohr) Mon, 06 Oct 2003 17:46:56 +0200
| Newsgroups | perl.i18n |
|---|---|
| Message-ID | <[email protected]> |
Christophe Chisogne wrote:
> printf(_("I have %1$d houses and %2$d euros"), 2, 2500)
Just for the records: Using "_" as the function name for gettext() has=20
two possibly negative effects: The function will be globally visible=20
which is a not so obvious side effect. I can't remember where this is=20
documented but I think the exact rule is that symbols the names of which =
consist of one single non-alphanumeric characters are always global.
Furthermore - as far as I remember - the underscore is the candidate for =
the concatenation operator (replaces the dot) in the future Perl 6.
For both reasons, I have decided to use a double underscore as a=20
shorthand to gettext() in libintl-perl.
Ciao
Guido
--=20
Imperia AG, Development
Leyboldstr. 10 - D-50354 H=FCrth - http://www.imperia.net/