[i18n] translation.php error

Jan Schneider jan@horde.org
Fri Nov 15 11:11:23 2002


Zitat von Miroslav Pendev <miro@cybershade.us>:

> > > # ./translation.php -d extract
> > >
> > > Loading libraries...
> > > Console_Getopt... OK
> > > ...
> > >
> > > gettext version: 0.11.5 OK
> > > PHP support in xgettext: No, trying C++ instead
> > >
> > > ...
> > >
> > > Found applications: horde, gollem, imp, kronolith, mnemo, nag,
> passwd,
> > > turba, vacation, whups
> > >
> > > Error: Unknown command: ./translation.php
> >
> > I _thought_ I had fixed this finally. Can you confirm that you really
> have
> > the latest version. If so, please put a var_dump($args); after the
> '$args ='
> > and the 'array_shift($args)' lines (around line 1000) and tell me the
> output.
> >
> 
> The version is:
> $Horde: horde/po/translation.php,v 1.22 2002/11/11 16:31:57 jan Exp $
> 
> This (at row ~998):
> ===================
> /* Commandline parameters */
> $args    = Console_Getopt::readPHPArgv();
> var_dump($args);
> 
> returns:
> ========
> Console_Getopt... OK
> 
> array(3) {
>   [0]=>
>   string(17) "./translation.php"
>   [1]=>
>   string(2) "-d"
>   [2]=>
>   string(7) "extract"
> }
> 
> 
> The following didn't return anything (at row ~1000):
> ...
> if (PEAR::isError($options) && $args[0] == $_SERVER['PHP_SELF']) {
>     array_shift($args);
> var_dump($args);

translation.php requires at least version 0.11 of the PEAR Getopt package.
Can you confirm that your version is recent enough?

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