Language settings doesnt work

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

Comments

  • Intosia Member
    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...
  • acrylian Administrator, Developer
    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.
  • fretzl Administrator, Developer
    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 locales for your server.
  • 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.
  • fretzl Administrator, Developer
    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.
  • 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.
  • fretzl Administrator, Developer
    Yep, the warning in admin -> options is now working.
  • Intosia Member
    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.
  • Intosia Member
    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.
  • Ps. Good to see you're stepping away from getText(). Its not really user friendly.

    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, gettext() is here to stay
Sign In or Register to comment.