Member
Member
Intosia   14-05-2010, 13:18
#1

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:
http://www.intosia.com/info.php

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

Administrator
Administrator
acrylian   14-05-2010, 13:45
#2

Please read here: http://www.zenphoto.org/2009/03/troubleshooting-zenphoto/#24

Member
Member
Intosia   14-05-2010, 14:17
#3

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

Administrator
Administrator
acrylian   14-05-2010, 14:20
#4

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.

Administrator
Administrator
fretzl   14-05-2010, 15:40
#5

I also run a local NAS(Synology). It supports gettext but it simply has no other languages (locales) on board than English.
It should be possible to install other laguage packs but so far I have not been able to.
(a lot of UNIX jibberish to me)
I suggest you do a internet search for [i]locales[/i] for your server.

Member
Member
sbillard   14-05-2010, 15:54
#6

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.

Administrator
Administrator
fretzl   14-05-2010, 16:54
#7

In setup there's a warning when locales are not being supported.
When you choose a language (that's not supported) in setup or admin -> options, there's no warning.

Member
Member
sbillard   14-05-2010, 22:29
#8

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.

Administrator
Administrator
fretzl   15-05-2010, 07:59
#9

Yep, the warning in admin -> options is now working.

Member
Member
Intosia   23-05-2010, 19:42
#10

Sorry for the late reply!

  • Ill try out the nightly build! And report back.
  • No, its not the theme, its using getText() for the News Archive items, its zpFocus
  • The locale thing could be it, since its running on a Sheevaplug (ARM based server), with 'minimal' Debian install.
Member
Member
Intosia   23-05-2010, 20:06
#11

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.

Member
Member
sbillard   24-05-2010, 01:34
#12

[quote]Ps. Good to see you're stepping away from getText(). Its not really user friendly.

[/quote]
Not really what we are doing. gettext() is required if you are going to support multilingual PHP software. We do have a "replacement" version that supports English only. Sometimes bugs crop in that cause failures in new installs when gettext() is not supported natively in PHP. That is probably what you ran into.

Anyway, bottom line, [b]gettext() is here to stay[/b]

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.