Pages (2): 1 2   
Member
Member
vlc   25-05-2016, 13:09
#1

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 zp-core/locale/es_ES/ and locale -a lists es_ES.utf8.

Current locale setting as shown in toe "Overview" tab is en_US.UTF8.

Did I miss anything?

Thanks a lot in advance,
Christoph

Administrator
Administrator
fretzl   25-05-2016, 15:12
#2

No idea. I can't reproduce this.
Any errors in the Zenphoto logs or in the server logs?

Administrator
Administrator
acrylian   25-05-2016, 15:30
#3

Actually the file names should matter but within the translation files it is indeed marked as Argentinian Spanish so technically it is es_AR.

Besides the request for errors by fretzl: Do you have any other locales on your server that do work?

Member
Member
vlc   26-05-2016, 07:24
#4

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:

Warn: PHP setlocale() failed Locale functionality is not implemented on your platform or the specified locale does not exist. Language translation may not work.See the user guide on zenphoto.org for details.

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" (?).

Member
Member
vlc   26-05-2016, 07:43
#5

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 (?).

Administrator
Administrator
acrylian   26-05-2016, 07:59
#6

The error is interesting since setlocale is a server PHP setting. If that is missing, just dropping a database would not fix if it is missing. But whatever worked for your ;-)

[quote]browser requests en_US as locale
[/quote]
What the browser itself requests is actually a browser setting.
But besides that the default language (that without any translation) of Zenphoto is indeed en_US. But you could add an empty en_IE folder to the /zp-core/locale/ folder to enable any locale even without translation files. If there are not translations present you will just get the default English instead.

[quote]Concerning es_AR: The Spanish locale is called "es_ES" in "zp-data/locale", not "es_AR" (?).
[/quote]
I just looked into the translation file catalog. That's what the authors set back then as they were located in Argentinia. But i think they translated in quite "general Spanish" if I recall talk about that.
Technically the file name should indicated the language. I am offhand just not sure if the PHP gettest functions pay atention to the internal language set within the file somehow, too.

Member
Member
vlc   26-05-2016, 08:25
#7

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.

Member
Member
vlc   26-05-2016, 09:04
#8

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/".

Administrator
Administrator
acrylian   26-05-2016, 09:29
#9

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.

Member
Member
vlc   26-05-2016, 09:49
#10

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.

Pages (2): 1 2   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.