[horde] [Horde 4.0-git] i18n test Locales

Jan Schneider jan at horde.org
Sat Oct 2 19:37:48 UTC 2010


Zitat von Gerard Breiner <gerard.breiner at ias.u-psud.fr>:

> Hello,
>
> Horde 4.0-git Debian Lenny
>
> I'm encountering some issues with locales that are not translated.  
> So, I've read the excellent  tuto horde/docs/TRANSLATIONS and  now  
> I'm trying the langtest.php in the Horde's PHP Shell.

That's the problem. Don't run it in the shell.

> I'am a little puzzled by the result . It seems that the translation  
> does not work.
>
> Here is the code langtest.php
> [CODE]
> <?php
>
>      setlocale(LC_MESSAGES, 'nl_NL');
>      putenv('LANG=nl_NL');
>      putenv('LANGUAGE=nl_NL');
>      // use the tar test.
>      echo dgettext('tar', 'Memory exhausted');
>      echo '<br />';
>
>      // Specify location of translation tables
>      bindtextdomain('horde', './locale');
>
>      // Choose domain
>      textdomain('horde');
>
>      // Print the already tested message
>      echo _("Message");
>      echo '<br />';
>
>      // this should print the same.
>      echo dgettext('horde', 'Message');
>
>      ?>
>
> [/CODE]
>
> Results
>
> Memory exhausted
> Message
> Message
>
> # End of results
>
>
> I'm wondering what is wrong or missed on my platform.
>
> Thanks in advance for any help.
>
> Best regards
>
> Gerard Breiner
>
> Institut d'Astrophysique Spatiale
> Campus Orsay-Ville
> France
>
>
>
>
>
>
>
>
> -- 
> Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>



Jan.

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



More information about the horde mailing list