![]() |
|
Language settings doesnt work - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Translating (https://forum.zenphoto.org/forum-8.html) +--- Thread: Language settings doesnt work (/thread-7052.html) |
Language settings doesnt work - Intosia - 14-05-2010 Hi, When i change the language setting to Dutch, nothing happends? I know about Gettext. I run my own linux server and its enabled. See PHPInfo here: Also the Dutch locals are in the Locale/nl-NL folder, so the translation is there. Are any faulty system/php settings at work here? Any ideas? Thanks Language settings doesnt work - acrylian - 14-05-2010 Please read here: http://www.zenphoto.org/2009/03/troubleshooting-zenphoto/#24 Language settings doesnt work - Intosia - 14-05-2010 I read, and it doesnt help me? If i open the Dutch translation file, there are TONS of translated lines. No way that 'News, Archive, etc', isnt translated... Language settings doesnt work - acrylian - 14-05-2010 Well, if you are not using one of the standard themes (which you did not tell) hardcoded terms in others are not translated because they are naturally not included in the translation files. Language settings doesnt work - fretzl - 14-05-2010 I also run a local NAS(Synology). It supports gettext but it simply has no other languages (locales) on board than English. Language settings doesnt work - sbillard - 14-05-2010 If it is a case of the locale not working (or being present) we would expect that Zenphoto would detect this and produce an error when you select Dutch as a language. Language settings doesnt work - fretzl - 14-05-2010 In setup there's a warning when locales are not being supported. Language settings doesnt work - sbillard - 14-05-2010 There is supposed to be a warning there as well, but the setLocale() function has to return an error for you to get it. However, seems somewhere in some revision the display of that error message ended up in the wrong script file. That will be fixed tonight. This is most likely the issue--the server does not support the locale for Dutch. But try the nightly and see if it reports an error. Language settings doesnt work - fretzl - 15-05-2010 Yep, the warning in admin -> options is now working. Language settings doesnt work - Intosia - 23-05-2010 Sorry for the late reply!
Language settings doesnt work - Intosia - 23-05-2010 Ok, i fixed it! When i installed the nightly build, i indeed got a error (guess i missed it the first time) that getText didnt work. So its not Zenphoto, but a system error. What i did was i installed the 'locales-all' package in Debian, with the following command: sudo apt-get install locales-all and restarted my webserver. Hope i can help someone with this! Ps. Good to see you're stepping away from getText(). Its not really user friendly. Language settings doesnt work - sbillard - 24-05-2010 [quote]Ps. Good to see you're stepping away from getText(). Its not really user friendly. [/quote] Anyway, bottom line, [b]gettext() is here to stay[/b] |