[horde] error with gettext

Jan Schneider jan at horde.org
Mon Jul 14 16:48:32 PDT 2003


The i18n mailing list is the correct place for translation questions.

Zitat von heva <help_debian at yahoo.fr>:

> > I also try to do a :
> > $>php ./translation.php help
> > Content-type: text/html
> > X-Powered-By: PHP/4.3.2
> >
> >
> > Fatal error: Call to undefined function:  _() in
> /var/www/horde_cvs/config/nls.php on line 168

Looks like your php cli executable uses another php.ini than the php on your
webserver.

> I have no answers so i try to understand how gettext work in horde:
>
> I made the following script

What for?

[snip]

> The variables seems to be right
> (In the directory of my script i have
> locale/fr_FR/LC_MESSAGES/horde.mo),
> but the "User Registration" should be "Enregistrement des utilisateurs"
> according with fr_FR.po:
> msgid "User Registration"
> msgstr "Enregistrement des utilisateurs"
>
> Or there's something i don't understand...

Take a look at docs/TRANSLATIONS for steps how to troubleshoot translation
problems.

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 horde mailing list