PDA

View Full Version : need to reconfigure the locales


DaRKNeSS666NL
22nd November 2008, 00:31
Hi all,

I am trying setting up an site with Gallery2 in it, in the Dutch language.
I have my server installed the perfect way Ubuntu 8.04 (Uk).

If I read it correctly on the gallery2 site faq
G2 depends on the system it runs on to switch to other languages than English. G2 needs php with gettext support and each language you want to switch to in G2 needs to be installed on your system. If you have command line access (ssh / telnet) to the (unix, linux) server, you can query for supported languages by `locale -a`. If only "C/POSIX" is returned, no other languages are supported and you need to reconfigure the locales and then restart apache.

I must set up gettext somehow in php. I have searched my php.ini but can't find anything to enable gettext. I have also found a thread here that says it can't be installed in ISPConfig
http://www.howtoforge.com/forums/showpost.php?p=31243&postcount=4

Must I realy install all again in the Dutch language so start from scratch again? I hope not.

TIA

Hope the post is in the right section btw

falko
22nd November 2008, 15:45
What's the output of
locale -a?

I must set up gettext somehow in php. I have searched my php.ini but can't find anything to enable gettext. I have also found a thread here that says it can't be installed in ISPConfig
http://www.howtoforge.com/forums/sho...43&postcount=4This refers to the PHP that comes with ISPConfig, but not your main PHP installation. gettext is probably already enabled.

DaRKNeSS666NL
22nd November 2008, 19:04
The output is only the Uk and Us language I have done that already as mentioned in the Gallery thread. I guess this is normal because I installed an Uk Ubuntu version. So my simple thought is to put also the nl_NL? language somewhere in there, but I don't know how.
apt-get???

root@server1:~# locale -a
C
en_GB.utf8
en_US.utf8
POSIX
root@server1:~#

till
22nd November 2008, 19:08
try:

dpkg-reconfigure locales

DaRKNeSS666NL
22nd November 2008, 19:17
try:

dpkg-reconfigure locales

root@server1:~# dpkg-reconfigure locales
Generating locales...
en_GB.UTF-8... up-to-date
en_US.UTF-8... up-to-date
Generation complete.
root@server1:~#


Output is that all is up to date. Of course just installed everything. But still no nl_NL.
I think if I install the dutch language somehow everything is working fine. Or is the gettext not enabled????

DaRKNeSS666NL
22nd November 2008, 19:45
Think I find my own answer I did this

apt-get install language-pack-nl language-support-nl

Than this

dpkg-reconfigure locales

Output

root@server1:~# dpkg-reconfigure locales
Generating locales...
en_GB.UTF-8... up-to-date
en_US.UTF-8... up-to-date
nl_BE.UTF-8... up-to-date
nl_NL.UTF-8... up-to-date
Generation complete.
root@server1:~#


AHA the Dutch are arrived!!

Going to check my Galley2 now.

Thanks and will let you guys know of this was right..

That did the trick for me all is working fine.

raymonvdm
31st December 2008, 00:39
This did NOT solve my squirrelmail problem. (only english is working)

DaRKNeSS666NL
1st January 2009, 13:20
Okee will try to help you but I am petty new to this my self so if I can't forgive me.

What's the output of
locale -a
?

raymonvdm
2nd January 2009, 00:09
I have found a solution

http://ubuntuforums.org/showthread.php?t=208145


vim /var/lib/locales/supported.d/local

nl_NL.ISO-8859-1 ISO-8859-1 <-- add these rule
en_US.UTF-8 UTF-8


dpkg-reconfigure locales

And now dutch is working. I need to do this for other languages