![]() |
|
Cannot enable second 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: Cannot enable second language (/thread-12523.html) |
Cannot enable second language - vlc - 25-05-2016 I'd like to enable Spanish as second language on my zenphoto 1.4.12 installation, but Spanish cannot be enabled in the Options -> General -> Language list (the checkbox is grayed out). I have enabled "Multi-lingual" in Options -> General -> Language, Spanish translations are installed in Current locale setting as shown in toe "Overview" tab is Did I miss anything? Thanks a lot in advance, Cannot enable second language - fretzl - 25-05-2016 No idea. I can't reproduce this. Cannot enable second language - acrylian - 25-05-2016 Actually the file names should matter but within the translation files it is indeed marked as Argentinian Spanish so technically it is Besides the request for errors by fretzl: Do you have any other locales on your server that do work? Cannot enable second language - vlc - 26-05-2016 Thank for the replies! I checked the normal logs and only found tons of GET requests from zenphoto in "apache2/access.log", but no warnings, errors or failures. In "zp-data/setup.log" I found the following:
I also installed German language support (de_DE.utf8) on my server, but same result. Concerning es_AR: The Spanish locale is called "es_ES" in "zp-data/locale", not "es_AR" (?). Cannot enable second language - vlc - 26-05-2016 I just deleted the installation and dropped the database to start all over again and now it works. The only thing I could imagine is that during the first installation the only English locale installed on the server was en_IE and not en_US, but my browser requests en_US as locale. Maybe this caused some kind of glitch during installation which prevented enabling other languages (?). Cannot enable second language - acrylian - 26-05-2016 The error is interesting since [quote]browser requests en_US as locale [quote]Concerning es_AR: The Spanish locale is called "es_ES" in "zp-data/locale", not "es_AR" (?). Cannot enable second language - vlc - 26-05-2016 It seems I cannot select any language which isn't available on the system, i.e. only being available in "zp-core/locale" isn't sufficient. Now I installed Russian (ru_RU.utf8) on the server (and rebooted it in case of need), but Russian can still not be selected under Options -> General -> Language (checkbox is grayed out). It seems that I can only select languages that have been available on my system at installation / setup of zenphoto. Cannot enable second language - vlc - 26-05-2016 It seems I have to run a new setup from Overview -> Utility functions for a newly installed language to be available. If this is the intended behavior one could maybe mention it on "http://www.zenphoto.org/news/multi-lingual-sites/". Cannot enable second language - acrylian - 26-05-2016 I probably replied misunderstandable. I was just referring to use an English variant if you have en_IE but en_US is present. Besides that you of course need the locale installed on your server for the language you wish to use. That's PHP requirement. That is noted on the multilingual article you linked in a separate box just a bit below in the page. Probably we should move that right to the beginning of the article. Will do that. Cannot enable second language - vlc - 26-05-2016 I knew that I needed the corresponding language installed on my system. That wasn't the problem. I was not aware that I have to run setup again after I installed a new language on the system. Cannot enable second language - acrylian - 26-05-2016 Actually you should not need to re-run setup for a new translation file to work… Cannot enable second language - vlc - 26-05-2016 With translation file do you refer to a new translation under "zp-core/locale"? There I haven't touched anything. Maybe it's not completely clear what I've done: [list=1] Cannot enable second language - acrylian - 26-05-2016 In Zenphoto terms translation means a folder with If you instal a new locale on a server it would not be surprising if you would need to restart the server itself. But Zenphoto's setup should not be related, unless I missed something. But I never isntalled locales on a server as I am not server admin. Cannot enable second language - vlc - 26-05-2016 Sorry for the confusion ... I just checked again by installing French locale: the setup step is necessary; plus restarting the server. To complete my list from above: [list=1] Cannot enable second language - acrylian - 26-05-2016 Sure. that no browser or any server cache played tricks on your here? I did test a lot of translation files and I never had to re-run setup for them. But again I never installed any locales on the server myself. Possibly servers are different here as in many other things . But in the end it now works for your and that's what counts, right? :-) We could add a section to the article that this might be a reason. but this is not really zenphoto specific I think. gettext and locales are used by a lot of other systems as well. Cannot enable second language - vlc - 26-05-2016 For me the issue is closed, thanks a lot! I just wanted to leave some details in case someone else runs into the same problem and knows how to use a search engine. Cannot enable second language - acrylian - 26-05-2016 All right, thanks! |