Hi,
I don't get the german UI, although it's set in the site admin default settings and all user profiles. I checked the presence of all files/modules, the database values in the g2_user table (all de_DE), also the debug output, but I don't see a reason for this. The php error log shows nothing.
The installation was a clean alpha 4 wich was just upgraded to beta 1. The localisation problem showed up even in the fresh alpha 4.
Any ideas where I can look to solve this?
Bye & Thanks!
Thommie
----
Gallery URL (optional): (internal)
Gallery version: 2.0 beta 1 (was alpha 4 before)
Webserver (with version): apache 2.
Datatabase (with version): MySQL 4.0.23_Debian-7-log
PHP version (eg 4.2.1): 4.3.10-8
phpinfo URL (optional): (internal)
Graphics Toolkit(s): netpbm
Operating system: linux (debian sarge), kernel 2.4x
Web browser/version: firefox, mozilla, opera ...
G1 version (for migration bugs): -none-
Posts: 32509
just checked what you described, it's true.
what it fixed for me was...
site admin -> Deutsch. save.
your account -> from none to deutsch.
-> now everything was in german.
-> your account from deutsch to none.
-> still everything in german, good.
now i changed site admin from deutsch to english, us. save.
-> everything was english, immediately.
strange.
Posts: 8601
Thommie, do any other locales work? We've heard of some norwegian users where that locale is broken at the OS level but other locales work. Perhaps this is the case for german on your system?
valiant, I fail to see what went wrong in the steps you listed.
Posts: 11
mindless, I tried espanol and french too, but I see no changes in the UI of that user.
Did I oversee something? As I understand, the users profile table in the db is the only place where the language settings are defined. Or is this "hardcoded" somewhere else?
Bye, Thomas
Posts: 11
mindless,
I tested the whole setup on another machine (suse 9.2) and there I get the german UI. So, the assumption that this has to do with either the underlying php environment or the OS seems to be correct. But I still don't understand why: Shouldn't the php applications UI output be completely independant from the OS locale settings?
Any hints what I can do now? (Setting up a new server environment just to make gallery appear in german is not an option ,-) ).
Bye, Thomas
Posts: 8601
yeah, I thought that too.. for some reason gettext/setlocale support in PHP is tied to the underlying OS.. see http://us3.php.net/manual/en/ref.gettext.php
Posts: 11
Hmf, grmmm ... [xxxx] (some four letter words not shown ,-) )
I checked the phpinfo() and gettext is definitely compiled in. I still don't understand this. Does that really mean that I need to compile the whole php enviro stuff with my locale now? Can't believe ... And the php.ini contains no locale stuff.
Bye, Thomas
Posts: 7994
Try running these commands. I included the answers that I get on my Debian box. It's possible that you don't have the right locales installed.
What do you see?
Posts: 11
bharat, that's what I get:
-------------
gatekeeper:/var 0 # locale -a | wc -l
2
gatekeeper:/var 0 # locale -a | grep utf8 | wc -l
0
gatekeeper:/var 0 # locale -a | grep de_DE
-------------
You're right, this machine seems to be pretty speechless in german... Question: If I add other locales now, what is best: installing iso or utf or both?
Maybe it's good if you add a note on this in the system requirements or FAQ for G2 (if it's not already there).
Bye, Thomas 8)
Posts: 11
The problem is solved, is was definitely the missing locale.
Posts: 7994
Oops, I missed your reply on March 11th. Sorry. Glad to see that you got it working!