Hi
I'm using gallery2.0.2 on Apache/1.3.32 (Unix) (Gentoo/Linux) with PHP 4.3.11 (cli) (built: Jul 11 2005 03:30:41).
My output from "locale -a" is:
.oO(root@helena~) locale -a
C
POSIX
de_DE
en_HK
en_PH
en_US
en_US.utf8
nb_NO
nb_NO.iso88591
nn_NO
nn_NO.iso88591
no_NO
no_NO.iso88591
no_NO.utf8
.oO(root@helena~)
I can sucessfully change language to Deutsch (de_DE), but when i'm trying to change to "Norwegian Bokmal" (no_NO or nb_NO ?) (which i want to use) the language reverts back to english again. It seems like i'm missing some part at the locales or maybe kernel options? Any help whould be greatly appreciated, thanks.
Edit: gettext is supported and enabled in my php-package
Posts: 21
See this thread: http://gallery.menalto.com/node/49678
You should be OK regarding your locales, but what are your environment variables?
What is LANG, LANGUAGE and LC_ALL set to?
just type "export" in shell to list the global variables.
________________
Regards
Stian H. Larssen
Posts: 3
I had no language specific environments, but i tried setting them up both globally in gentoo's environment files, and using the export-command.
So it seems to me the nb_NO is working fine, but I don't understand how gallery is using this though. I also tried export lang and lc_all to no_NO (which it seems like gallery is using) but then I didn't get any translations in my shell
I also tried setting all the no_NO values in my mysql-db to nb_NO to reflect my glibc (or locale-settings) and i also changed some lines i GalleryTranslator.class to:
... and then I got some form of translations, but not all. And it seems very random. In opera i got translations, but when i tried in IE it suddenly didn't work. Maybe some cookie-related or cached, i don't know, but i have norwegian as default translation in my settings so shouldn't be login-specific.
Are in english, but...
... this is in norwegian.
If anyone has any clues or help, please reply. I whould love to get this sorted out.
Here is my info from gallery:
Posts: 3
It seems like its working now. I had to copy/rename all "no" folders to "nb" in every module-folder, then purge caches, then wait some minutes and suddenly i got translations
Posts: 21
I've come to the same comclusion.
I made a mini-howto here: http://gallery.menalto.com/node/49678#comment-213319
________________
Regards
Stian H. Larssen