[imp] Folders and Languages not working

Amāndio Antunes amandio@ccom.uminho.pt
Mon, 25 Feb 2002 15:35:57 +0000


Hello again!

I did all you suggested but things still not working!

In a shell, following the instructions in the po/README, messages get
translated, but when I create a testlang.php,  messages are not translated.

Bellow are all the locales installed in our SPARC Solaris 8 box:

#locale -a

POSIX
common
en_US.UTF-8
C
iso_8859_1
iso_8859_15
th
th_TH
th_TH.TIS620
en_CA
en_CA.ISO8859-1
en_US
en_US.ISO8859-1
en_US.ISO8859-15
en_US.ISO8859-15@euro
fr_CA
fr_CA.ISO8859-1
de
de.UTF-8
es
es.UTF-8
fr
fr.UTF-8
it
ja
it.UTF-8
ja_JP.PCK
ja_JP.UTF-8
ko
ko.UTF-8
sv
sv.UTF-8
zh
zh.UTF-8
zh_TW
zh_TW.BIG5
zh_TW.UTF-8
cs_CZ
en_AU
en_AU.ISO8859-1
en_NZ
en_NZ.ISO8859-1
es_CR
es_CR.ISO8859-1
es_GT
es_GT.ISO8859-1
es_MX
es_MX.ISO8859-1
es_NI
es_NI.ISO8859-1
es_PA
es_PA.ISO8859-1
es_SV
es_SV.ISO8859-1
cs_CZ.ISO8859-2
cz
de.ISO8859-15
de_AT
de_AT.ISO8859-1
de_AT.ISO8859-15
de_AT.ISO8859-15@euro
de_CH
de_CH.ISO8859-1
de_DE
de_DE.ISO8859-1
de_DE.ISO8859-15
de_DE.ISO8859-15@euro
de_DE.UTF-8
de_DE.UTF-8@euro
fr_CH
fr_CH.ISO8859-1
hu
hu_HU
hu_HU.ISO8859-2
pl
pl.UTF-8
pl_PL
pl_PL.ISO8859-2
pl_PL.UTF-8
sk_SK
sk_SK.ISO8859-2
bg_BG
bg_BG.ISO8859-5
et
et_EE
et_EE.ISO8859-15
hr_HR
hr_HR.ISO8859-2
lt
lt_LT
lt_LT.ISO8859-13
lv
lv_LV
lv_LV.ISO8859-13
mk_MK
mk_MK.ISO8859-5
nr
ro_RO
ro_RO.ISO8859-2
ru
ru.UTF-8
ru.koi8-r
ru_RU
ru_RU.ANSI1251
ru_RU.ISO8859-5
ru_RU.KOI8-R
ru_RU.UTF-8
sh_BA
sh_BA.ISO8859-2@bosnia
sl_SI
sl_SI.ISO8859-2
sq_AL
sq_AL.ISO8859-2
sr_SP
sr_YU
sr_YU.ISO8859-5
tr
tr_TR
tr_TR.ISO8859-9
tr_TR.UTF-8
he
he_IL
ar
da
da.ISO8859-15
da_DK
da_DK.ISO8859-1
da_DK.ISO8859-15
fi
da_DK.ISO8859-15@euro
fi.ISO8859-15
fi_FI
fi_FI.ISO8859-1
fi_FI.ISO8859-15
fi_FI.ISO8859-15@euro
is_IS
is_IS.ISO8859-1
no
no_NO
no_NO.ISO8859-1@bokmal
no_NO.ISO8859-1@nynorsk
no_NY
sv.ISO8859-15
sv_SE
sv_SE.ISO8859-1
sv_SE.ISO8859-15
sv_SE.ISO8859-15@euro
sv_SE.UTF-8
sv_SE.UTF-8@euro
es_AR
es_BO
es_AR.ISO8859-1
es_BO.ISO8859-1
es_CL
es_CL.ISO8859-1
es_CO
es_CO.ISO8859-1
es_EC
es_EC.ISO8859-1
es_PE
es_PE.ISO8859-1
es_PY
es_PY.ISO8859-1
es_UY
es_UY.ISO8859-1
es_VE
es_VE.ISO8859-1
pt_BR
pt_BR.ISO8859-1
ca
ca_ES
ca_ES.ISO8859-1
ca_ES.ISO8859-15
ca_ES.ISO8859-15@euro
el
el_GR
el.sun_eu_greek
el_GR.ISO8859-7
el_GR.ISO8859-7@euro
es.ISO8859-15
es_ES
es_ES.ISO8859-1
es_ES.ISO8859-15
es_ES.ISO8859-15@euro
es_ES.UTF-8
es_ES.UTF-8@euro
it.ISO8859-15
it_IT
it_IT.ISO8859-1
it_IT.ISO8859-15
it_IT.ISO8859-15@euro
it_IT.UTF-8
it_IT.UTF-8@euro
pt
pt.ISO8859-15
pt_PT
pt_PT.ISO8859-1
nl
pt_PT.ISO8859-15
pt_PT.ISO8859-15@euro
en_GB
en_GB.ISO8859-1
en_GB.ISO8859-15
en_GB.ISO8859-15@euro
en_IE
en_IE.ISO8859-1
en_IE.ISO8859-15
en_IE.ISO8859-15@euro
fr.ISO8859-15
fr_BE
fr_BE.ISO8859-1
fr_BE.ISO8859-15
fr_BE.ISO8859-15@euro
fr_FR
fr_FR.ISO8859-1
fr_FR.ISO8859-15
fr_FR.ISO8859-15@euro
fr_FR.UTF-8
fr_FR.UTF-8@euro
nl.ISO8859-15
nl_BE
nl_BE.ISO8859-1
nl_BE.ISO8859-15
nl_BE.ISO8859-15@euro
nl_NL
nl_NL.ISO8859-1
nl_NL.ISO8859-15
nl_NL.ISO8859-15@euro
iso_8859_13
iso_8859_2
iso_8859_5
iso_8859_7
iso_8859_9

And now, the code sets:
#pkginfo | grep Codeset
system      SUNWi13cs      X11 ISO8859-13 Codeset Support
system      SUNWi15cs      X11 ISO8859-15 Codeset Support
system      SUNWi1cs       X11 ISO8859-1 Codeset Support
system      SUNWi2cs       X11 ISO8859-2 Codeset Support
system      SUNWi5cs       X11 ISO8859-5 Codeset Support
system      SUNWi7cs       X11 ISO8859-7 Codeset Support
system      SUNWi9cs       X11 ISO8859-9 Codeset Support

the gettext I'm using: version 0.10.40 (compiled
with --with-libiconv-prefix=/usr/local)

php compiled as follows:

./configure --with-apxs=/usr/apache/bin/apxs \
                                --with-mysql=/usr/local/mysql \
                                --with-imap=/usr/local/src/imap-2001a \
                                --with-gettext=/usr/local \
                                --with-iconv=/usr/local \
                                --with-ldap=/usr/local \
                                --with-openssl=/usr/local/ssl \
                                --with-zlib \
                                --enable-track-vars \
                                --with-xml \
                                --with-mcrypt

Any other idea?

TIA

Amāndio

-----Original Message-----
From: Leena Heino [mailto:liinu@uta.fi]
Sent: sexta-feira, 22 de Fevereiro de 2002 7:48
To: Amāndio Antunes
Subject: RE: [imp] Folders and Languages not working


On Thu, 21 Feb 2002, Amāndio Antunes wrote:

> Yes, but that didn't help much. The only reference to Solaris is for
version
> 2.6, but in Solaris 8, localization seems to be quite different.
>
> Any other idea?
>
Here's what I had to do with Solaris 8. You might have to something
similar in order to make languages work.

If you are running IMP 3.0 on Solaris 8 and using Solaris' gettext
function and wondering why languages aren't working then this might be
helpfull.

If you wan't all the languages to work on Solaris 8, then you must install
language support files to Solaris 8. Before installing language support
files you must install bzip, unless unless your system already has
bzip.

Bzip can be installed from Solaris 8 cds it is located on Software 1 of 2
in a package SUNWbzip

Once the bzip is installed then you must install OS support to different
languages and charset codepages. The pagkages on Solaris 8 Software 1 of 2
cd.
You can find these language packages with command like:
pkginfo -d . | grep Support | egrep 'OS|CDE|OW'

You can find pkg to ISO fonts with command like:
  pkginfo -d . | grep "Codeset Support"



When you have installed language support and Codeset support then you have
to recompile .po file to make new .mo files. A Solaris compatible Makefile
can be found on IMP CVS. If you would like to compile these files using
msgfmt commant then you might want to use command:
(This is for IMP's fi_FI locale. Unless you don't have a compatible
Makefile you have to do similar command to all Horde, IMP and Turba
languages)

IMP:
cd horde/imp/po
msgfmt -v -o ../locale/fi_FI/LC_MESSAGES/imp.mo fi_FI.po ../../po/fi_FI.po

--
  -- Leena Heino (liinu@uta.fi)