script tested bunch of system locales and none of them worked. I suspect that on Trustix list of compiled locales is stored in /etc/locales.conf. Open that file in some text editor. Uncomment (remove # symbol in the beginning of the line) any locale you want to be generated. Then run /usr/sbin/locales-gen to generate the choosen locales.
restart apache after running locales-gen command and check if translations start working. You can check list of enabled system locales by running command 'locale -a' Gettext based translations work only when appropriate system locales are present. Some systems don't enable any system locales by default. If you need list of all system locales that are needed by SquirrelMail, see attached locales.txt. File contains Unix linefeeds. It does not look good in Notepad. List does not include Uighur locale (localedef ug -i en_US -f UTF-8), because translation will be released only on 2004-10-04 and many systems don't have any Uighur support. If you just copy attached file into /etc/locales.conf, remember that some lines might cause errors, my comments have to be removed and your system should be able to fall back from full locale names (fr_FR.ISO8859-1) to short ones (fr_FR). If you get two copies of the message, sorry. I want to keep conversation on the list. It can be useful for others. If I am wrong about locales-gen, on Linux glibc system you can compile Italian and French system locales with commands 'localedef it_IT -i it_IT -f ISO-8859-1' and 'localedef fr_FR -i fr_FR -f ISO-8859-1' -- Tomas > Thanks for explanation.. but I don't solve the problem.. perhaps I > didn't understand what you mean.. So: > I run the script yuo attached, this is the answer: > bool(false) I got php 4.3.8 (rpm) and glibc-locales-2.3.2-15tr (rpm) > > > I've commented $languages['fr_FR']['LOCALE'] line.. > No work.. > Can you explain me better please? > thanks again > > >>> Hi all, I am rather newbye about using squirrelmail. >>> I'v installed SM on trustix 2.1 + apache + courier imap >>> The problem is language won't change.. >>> I' ve installed it_IT and fr_FR locales but no way. >>> The HELP is traslated but the entire program not either using conf.pl >>> either changing language by user-options.. File permissions are ok. >>> Someone can help me? I'm getting crazy.. >>> Thank's in advance... >>> >>> >>> >> >> Attached php script. If you have php 4.3+, test it. It tries to set >> different French system locales and shows the first one that works. >> >> If you have older php version, I have rewrite script. >> >> >> If you have php with shared gettext extension and you want to get >> translations at the cost of performance - remove gettext extension. >> >> or install glibc-locales-2.3.2-15tr.i586.rpm. If you already have it >> installed - your system fails to fall back from fr_FR.ISO8859-1 to >> fr_FR. You have to edit functions/i18n.php file and disable >> $languages['fr_FR']['LOCALE'] line. >> >> >> http://www.squirrelmail.org/wiki/en_US/SupportingMultipleLanguages >> -- >> Tomas
ar_AE CP1256 (command localedef ar -i ar_AE -f CP1256) bg_BG CP1251 ca_ES ISO-8859-1 cs_CZ ISO-8859-2 cy_GB ISO-8859-1 da_DK ISO-8859-1 de_DE ISO-8859-1 el_GR ISO-8859-7 en_GB ISO-8859-15 en_US ISO-8859-1 es_ES ISO-8859-1 et_EE ISO-8859-15 eu_ES ISO-8859-1 fa_IR UTF-8 fi_FI ISO-8859-1 fo_FO ISO-8859-1 fr_FR ISO-8859-1 he_IL CP1255 hr_HR ISO-8859-2 hu_HU ISO-8859-2 id_ID ISO-8859-1 is_IS ISO-8859-1 it_IT ISO-8859-1 ja_JP EUC-JP ko_KR EUC-KR lt_LT UTF-8 ms_MY ISO-8859-1 nb_NO ISO-8859-1 (some systems require 'localedef nb_NO -i no_NO -f ISO-8859-1') nl_NL ISO-8859-1 nn_NO ISO-8859-1 pl_PL ISO-8859-2 pt_BR ISO-8859-1 pt_PT ISO-8859-1 ro_RO ISO-8859-2 ru_RU UTF-8 sk_SK ISO-8859-2 sl_SI ISO-8859-2 sr_YU ISO-8859-2 sv_SE ISO-8859-1 th_TH TIS-620 tr_TR ISO-8859-9 (might be broken) zh_CN GB2312 zh_TW BIG5
