![]() |
|
How to change language - 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: How to change language (/thread-12221.html) |
How to change language - thany - 28-07-2015 How do I change the admin panels language to UK (or even US) English? I can't make it happen. This is how it's been set at the moment: So for searchers: ONLY english is ticked, the rest is unticked. I'd expect zenphoto to NEVER EVER pick a language that is disallowed to be picked by having it unticked in this list. Apparently zenphoto magically sets my admin panels language to Dutch. Okay, my computer's locale is set to Dutch, but its language is English. Even if I physically delete in /zp-core/locale every language but en_US, it still manages to display everything translated into Dutch. So, here's the tl;dr:
Also, a small hint to the zenphoto devs: locale != language. How to change language - thany - 28-07-2015 Well, unless I delete the language files and restart the server. Sure, why not. But this will go wrong in an update, which will happily reinstall those files. So we still need this to be solved proper. How to change language - acrylian - 28-07-2015
So does your server has the English respectively en_US locale? Although that should not matter as English is the default language.
How to change language - thany - 28-07-2015
So whatever the server has, might be picked up as the LOCALE. As for the LANGUAGE, it should pick whatever the user has selected - independent of the locale.
How to change language - fretzl - 28-07-2015 I've had similar problems locally only (OS X MAMP) If you are still using 1.4.7 (which I believe you do) then I recommend to update. How to change language - acrylian - 28-07-2015 [quote]1) like I said, locale != language. [/quote] Do you use WAMP on Windows? These predefined *AMP packages generally behave like a live server. How to change language - thany - 29-07-2015 I'm using XAMPP - but should it matter? I don't know about the gettext extension, but the fact is that something chooses the language file, and does so without respecting my choice. How to change language - acrylian - 29-07-2015 Again, the only way it would automatically select something is if http accept language is enabled. Then it will choose the language the browser submits. Otherwise either the manual selection or the selection in the user account which will overrride it. Both are stored in the database. Sorry to say it is working here as expected on MAMP (all locales), my live shared hosting (whcih on has German and English) and the zenphoto.org server (all locales) as on other shared hosts I have installed Zenphoto over the years. How to change language - thany - 29-07-2015 "it works on my machine" Look, it's fairly simple: I select English as the display language, so zenphoto selects and displays the English language. It really isn't more complicated than that. Whatever other magic is happening, doesn't work and is breaking it. How to change language - acrylian - 29-07-2015 [quote]Well it doesn't on mine. Sorry to say. Again you select en_US not English in general, that's not how it works as en_UK would be a complete separate translation file (if one exists). So go to How to change language - fretzl - 30-07-2015 Just learned something. Although mentioned by @acrylian several times on the forum it never sank in. On the "Users" tab (user settings) you can specify a language by clicking a flag. By simply un-selecting the flag in the user settings you have full control again over the "general" settings. |