[Tickets #3596] language from the dropdown
bugs@bugs.horde.org
bugs at bugs.horde.org
Fri Mar 10 04:00:36 PST 2006
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=3596
-----------------------------------------------------------------------
Ticket | 3596
Updated By | vpl1973-unix at yahoo.fr
Summary | language from the dropdown
Queue | Horde Base
Version | 3.1
State | Feedback
Priority | 1. Low
Type | Bug
Owners |
-----------------------------------------------------------------------
vpl1973-unix at yahoo.fr (2006-03-10 04:00) wrote:
Yes:
===========================
yavin4:/tmp# locale -a
C
français
french
fr_FR
fr_FR at euro
fr_FR.iso88591
fr_FR.iso885915 at euro
nl_NL at euro
nl_NL.iso885915 at euro
POSIX
===========================
yavin4:/tmp# ls -l /usr/share/locale/nl/LC_MESSAGES/tar.mo
-rw-r--r-- 1 root root 12194 2004-08-03 16:31
/usr/share/locale/nl/LC_MESSAGES/tar.mo
yavin4:/tmp#
===========================
yavin4:/tmp# strings /bin/tar | grep memory
memory exhausted
(LANG=fr_FR; LANGUAGE=fr_FR; LC_MESSAGES=fr_FR; gettext tar "memory
exhausted" )
mémoire épuisée
export TEXTDOMAINDIR=/u02/client/ackbar/www/app/horde/locale
(LANG=fr_FR; LANGUAGE=fr_FR; LC_MESSAGES=fr_FR; gettext horde "Welcome" )
Bienvenue
=========================================
more /u02/client/ackbar/www/app/horde/langtest.php
<?php
setlocale(LC_MESSAGES, 'french');
putenv('LANG=french');
putenv('LANGUAGE=french');
// use the tar test.
echo dgettext('tar', 'memory');
echo '<br />';
// Specify location of translation tables
bindtextdomain('horde', './locale');
// Choose domain
textdomain('horde');
// Print the already tested message
echo _("Welcome");
echo '<br />';
// this should print the same.
echo dgettext('horde', 'Welcome');
?>
But:
yavin4:/tmp# php /u02/client/ackbar/www/app/horde/langtest.php
memory<br />Welcome<br />Welcome
More information about the bugs
mailing list