Summary | language from the dropdown |
Queue | Horde Base |
Queue Version | 3.1 |
Type | Bug |
State | Not A Bug |
Priority | 1. Low |
Owners | |
Requester | vpl1973-unix (at) yahoo (dot) fr |
Created | 03/09/2006 (7093 days ago) |
Due | |
Updated | 10/09/2009 (5783 days ago) |
Assigned | 03/09/2006 (7093 days ago) |
Resolved | 03/10/2006 (7092 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
You Should locale all the Apache in a book self for safe
I modified the file /etc/locale.gen:
nl_NL UTF-8
fr_FR UTF-8
ro_RO UTF-8
I execute :locale-gen
and I restarted Apache.
THAT'S ALL FOLKS.
===========================
yavin4:/tmp# locale -a
C
français
french
fr_FR
fr_FR@euro
fr_FR.iso88591
fr_FR.iso885915@euro
nl_NL@euro
nl_NL.iso885915@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
State ⇒ Feedback
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ language from the dropdown
Queue ⇒ Horde Base
didn't get an translated webinterface.
Only the help-pages behind the question marks are translated. The whole
main site remains in english. Can anyone
help me or give me an hint ? I searched in varios places for an
information, but nothing helped me.