Language not changing
homer123
Joined: 2004-10-13
Posts: 15 |
Posted: Mon, 2004-11-29 04:04 |
Hi The website is www.instrus2k.com/g2/gallery2/ Thanks |
|
homer123
Joined: 2004-10-13
Posts: 15 |
Posted: Mon, 2004-11-29 04:04 |
Hi The website is www.instrus2k.com/g2/gallery2/ Thanks |
|
Posts: 8601
It may be that other locales are not installed on your system (even though you have gettext in php).
bharat, can we detect this condition and display a message in site admin?
Posts: 15
Could you explain more.
Is this something I did not install in g2 or something on the server side of things. How do I check this ?
I do have the po files for all the languages.
Thanks
Posts: 8601
You have everything for G2.. your server/OS must support locales.. what OS are you using?
Posts: 15
Here is the output of uname -a
Linux yoda.hyperdryve.net 2.4.21 #1 SMP Tue Aug 26 23:01:04 EDT 2003 i686 GNU/Linux
It runs Debian Sid.
Its a frnds server btw. I have limited access to it. How do I check if I have locales enabled ?
Posts: 7994
Do
ls /usr/share/locale
What do you see there? I see:Posts: 15
Hi Bharat
I see
kkd@yoda:~$ ls /usr/share/locale/
Posts: 108
What is in /etc/locale.gen? It sounds to me like you don't have the corresponding system locales installed. To get i18n/l10n working in gallery you need to have both the .po files and the system locales.
http://people.debian.org/~schultmc/locales.html may be helpful (your friend may need to look at that site if you don't have root access).
Posts: 328
Usually "locale -a" prints out a list of installed locales. Does that work on Debian? It would be cool if we could add this kind of check to G2 (maybe php based?), so that we just present the locales that are truely installed.
Posts: 108
locale -a works on my Debian machine.
Posts: 58
I'm now facing the same problem, that the language is not changing. I contacted the hosting company (GoDaddy.com) and they said it's not their problem. I also checked their phpinfo and gettext is enabled.
My installation is a stock A4. Is there anything I need to add or do, besides enabling the langauge selection in Site Admin, in order to enable translations support?
Thanks alot!
Posts: 8601
before I answer, did you read this thread? just want to make sure, since it mentions some info about checking if locales are installed on your system.. what is your OS?
basically, even with gettext I guess localization doesn't work unless the locales are installed in the OS, though I don't really know why.
Posts: 328
This sounds like something we could check in our code:
=> nothing
=> de_DE
"Some" code should do that on all our supported language codes to see which ones we can allow the user to choose from. And maybe cache this somewhere (a core module property?).
Posts: 8601
cool, I was wondering if there was a way to check from php.. what happens in a windows environment?
Posts: 58
Yes, mindless I did read the thread, but I have no shell access to GoDaddy.com's servers so I'm not sure how to carry out the instructions. Any idea?
P.S. GoDaddy.com's hosting services aren't very user-friendly with G2 anyway, so I may consider a switch later...
Posts: 58
Seems GoDaddy.com has put in the necessary changes, the language now changes correctly.