[i18n] po/translation.php: xgettext poorly localized ;-)

Thierry Thomas thierry at pompo.net
Sun Aug 31 08:08:43 PDT 2003


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)

But if I run `LC_ALL=C xgettext --help', it reports:

  -L, --language=NAME         recognise the specified language
                                (C, C++, ObjectiveC, PO, Python, Lisp,
                                EmacsLisp, librep, Smalltalk, Java,
                                JavaProperties, awk, YCP, Tcl, PHP, RST, Glade)

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")));

Best regards,
-- 
Th. Thomas.


More information about the i18n mailing list