[SOLVED] No localised UI (de_DE) in freshly installed g2

Thommie

Joined: 2005-03-09
Posts: 11
Posted: Wed, 2005-03-09 09:47

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-

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-03-09 10:19

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.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-03-09 16:19

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.

 
Thommie

Joined: 2005-03-09
Posts: 11
Posted: Wed, 2005-03-09 17:17

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

 
Thommie

Joined: 2005-03-09
Posts: 11
Posted: Fri, 2005-03-11 08:09

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

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-03-11 16:24
Quote:
Shouldn't the php applications UI output be completely independant from the OS locale settings?

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

 
Thommie

Joined: 2005-03-09
Posts: 11
Posted: Fri, 2005-03-11 17:08

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

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sat, 2005-03-12 01:42

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.

$ locale -a | wc -l
586
$ locale -a | grep utf8 | wc -l
175
$ locale -a | grep de_DE
de_DE
de_DE@euro
de_DE.iso88591
de_DE.iso885915@euro
de_DE.utf8
de_DE.utf8@euro

What do you see?

 
Thommie

Joined: 2005-03-09
Posts: 11
Posted: Sat, 2005-03-12 07:44

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)

 
Thommie

Joined: 2005-03-09
Posts: 11
Posted: Mon, 2005-03-14 20:28

The problem is solved, is was definitely the missing locale.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2005-03-15 01:45

Oops, I missed your reply on March 11th. Sorry. Glad to see that you got it working!