[i18n] problem with the translation.php execution (win32)

Jan Schneider jan at horde.org
Tue Jan 23 15:34:33 PST 2007


Zitat von Elier Delgado <elier.delgado at gmail.com>:

> Hi guys, here again ...
>
> The gettext binaries, are already working, thanks for Jan.
>
> I'm trying use a /po/translation.php to create a new languages files for a
> new Horde aplication
> (its a test aplication for me), but something don't work.
>
> C:\AppServ\php\cli>php D:\WWW\horde\po\translation.php -d
> --base=D:\WWW\horde\welcome extract --module=welcome

--base should be the path to your horde directory.

> 'C:\Program' is not recognized as an internal or external command,operable
> program or batch file.

No idea where this is coming from. My guess is, some command called  
inside translation.php that is not properly quoted.

> ---------------------------
> Horde translation generator
> ---------------------------
> Loading libraries...
> Console_Getopt... OK
> Console_Table... OK
> File_Find... OK
>
> Searching gettext binaries...
> gettext... found: C:\Program Files\GnuWin32\bin\\gettext.exe
> msgattrib... found: C:\Program Files\GnuWin32\bin\\msgattrib.exe
> msgcat... found: C:\Program Files\GnuWin32\bin\\msgcat.exe
> msgcomm... found: C:\Program Files\GnuWin32\bin\\msgcomm.exe
> msgfmt... found: C:\Program Files\GnuWin32\bin\\msgfmt.exe
> msginit... found: C:\Program Files\GnuWin32\bin\\msginit.exe
> msgmerge... found: C:\Program Files\GnuWin32\bin\\msgmerge.exe
> xgettext... found: C:\Program Files\GnuWin32\bin\\xgettext.exe
>
> gettext version:
> Warning: Your gettext version is too old and does not support PHP natively.
> Not all strings will be extracted.

Looks like the gettext version detection is not working properly on  
your system. What do you get when calling "gettext --version"?

> Searching Horde applications in D:\WWW\horde\welcome
> Found directories:
> D:\WWW\horde\welcome
> Found applications: horde
>
> --------------------------------------------------------
>
> I'm using gettext-0.14.4 -- :(,  --
> This command should create a .pot file in somewhere ? --
>
> I was test others ways,
>
> C:\AppServ\php\cli>php D:\WWW\horde\po\translation.php extract
> 'C:\Program' is not recognized as an internal or external command,operable
> program or batch file.
> The command line is too long.

No idea.

> ---------------------------
> Horde translation generator
> ---------------------------
> Loading libraries...
> Console_Getopt... OK
> Console_Table... OK
> File_Find... OK
>
> Searching gettext binaries...
> gettext... found: C:\Program Files\GnuWin32\bin\\gettext.exe
> msgattrib... found: C:\Program Files\GnuWin32\bin\\msgattrib.exe
> msgcat... found: C:\Program Files\GnuWin32\bin\\msgcat.exe
> msgcomm... found: C:\Program Files\GnuWin32\bin\\msgcomm.exe
> msgfmt... found: C:\Program Files\GnuWin32\bin\\msgfmt.exe
> msginit... found: C:\Program Files\GnuWin32\bin\\msginit.exe
> msgmerge... found: C:\Program Files\GnuWin32\bin\\msgmerge.exe
> xgettext... found: C:\Program Files\GnuWin32\bin\\xgettext.exe
>
> gettext version:
> Warning: Your gettext version is too old and does not support PHP natively.
> Not all strings will be extracted.
>
> Searching Horde applications in D:\WWW\horde\po/..
> Found applications: horde

Your "welcome" application doesn't have a po/ directory.

> Extracting from horde... not changed
>
> ----------------------------------------------------------
>
> This command should add to the horde.pot the gettext string in
> /welcome/templates/ ? --

No, it should create a welcome/po/welcome.pot file.

> If I delete the horde.pot, I have the same result but:
>
>  "Extracting from horde... updated", but any file is created.
>
>
> Testing others command,
>
> C:\AppServ\php\cli>php D:\WWW\horde\po\translation.php init -l es_CU
> 'C:\Program' is not recognized as an internal or external command,operable
> program or batch file.
> 'C:\Program' is not recognized as an internal or external command,operable
> program or batch file.
> ---------------------------
> Horde translation generator
> ---------------------------
> Loading libraries...
> Console_Getopt... OK
> Console_Table... OK
> File_Find... OK
>
> Searching gettext binaries...
> gettext... found: C:\Program Files\GnuWin32\bin\\gettext.exe
> msgattrib... found: C:\Program Files\GnuWin32\bin\\msgattrib.exe
> msgcat... found: C:\Program Files\GnuWin32\bin\\msgcat.exe
> msgcomm... found: C:\Program Files\GnuWin32\bin\\msgcomm.exe
> msgfmt... found: C:\Program Files\GnuWin32\bin\\msgfmt.exe
> msginit... found: C:\Program Files\GnuWin32\bin\\msginit.exe
> msgmerge... found: C:\Program Files\GnuWin32\bin\\msgmerge.exe
> xgettext... found: C:\Program Files\GnuWin32\bin\\xgettext.exe
>
> gettext version:
> Warning: Your gettext version is too old and does not support PHP natively.
> Not all strings will be extracted.
>
> Searching Horde applications in D:\USERS\Elier\WORK\COMUNIDAD\WWW\po/..
> Found applications: horde
>
> Initializing module horde... failed

Because you deleted the horde.pot file above.

> Cleaning up PO files for module horde...
> Skipped...
>
> Merging translation for module horde...
> Skipped...
>
> -----------------------------------------------------------------------
>
> Which you thinks that the problem is ? any idea ?
>
> I'm using bad the command ?
>
> Best regards, Elier
> -- 
> Horde i18n mailing list - Join the hunt: http://horde.org/bounties/
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: i18n-unsubscribe at lists.horde.org
>



Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the i18n mailing list