[i18n] po/translation.php: xgettext poorly localized ;-)
Jan Schneider
jan at horde.org
Sun Aug 31 10:51:16 PDT 2003
Zitat von Thierry Thomas <thierry at pompo.net>:
> Hello,
>
> When I run translation.php, it reports:
>
> xgettext... found: /usr/local/bin/xgettext
>
> gettext version: 0.12.1 OK
> Prise en compte de PHP par xgettext : Non, essai avec C++ à la place
>
> So, I'm using gettext 0.12.1, but it does not report the support of PHP.
>
> Actually, my LC_ALL is set to french locales, and `xgettext --help'
> reports:
>
> -L, --language=NOM reconnaître le langage spécifié
> (C, C++, ObjectiveC, PO, Python, Lisp,
> EmacsLisp, librep, Java, awk, YCP,
> Tcl,
> RST, Glade)
Weird.
> This is not very important, but what about this patch?
>
> --- po/translation.php.orig Sun Aug 31 16:20:15 2003
> +++ po/translation.php Sun Aug 31 17:03:53 2003
> @@ -150,7 +150,7 @@
> }
>
> echo _("PHP support in xgettext: ");
> - $sh = $GLOBALS['xgettext'] . ' --help';
> + $sh = "LC_ALL=C " . $GLOBALS['xgettext'] . ' --help';
> $xget_help = `$sh`;
> if (strstr($xget_help, 'PHP')) {
> $c->writeln($c->green(_("Yes")));
I committed something similar. Thanks for the hint.
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft
More information about the i18n
mailing list