Fork me on GitHub

Gettext probleme  Bottom

  • With Zikula 1.3 there is a gettext problem.

    Even if I have set up the language to german the page is still english.

    The language files are complete in /locale/...

    The command ZLanguage::getLanguageCode() prints "de".

    The problem depends on the server software/configuration. With Ubuntu 10.05 the page is on german. With Debian Lenny the page is on english (identical database and files).

    How can I solve this problem?



    Edited by phaidon on Jul 29, 2010 - 02:20 PM.

    --
    https://github.com/phaidon/
  • is gettext support enabled (--with-gettext) on the second box?

    BTW - welcome to the zikula forums!
  • There is a localisation setting that says read the language from the users browser. If that is on and Debian Lenny report the "wrong" language to Zikula you get the language you didn't expect.
    Maybe that is the issue?

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • First of all thanks for your fast replies.

    Quote

    BTW - welcome to the zikula forums!


    Thanks for the warm welcome.

    Quote

    There is a localisation setting that says read the language from the users browser. If that is on and Debian Lenny report the "wrong" language to Zikula you get the language you didn't expect.


    Automatically detect language from browser settings = No

    Quote

    is gettext support enabled (--with-gettext) on the second box?


    phpinfo() says: GetText Support enabled

    Meanwhile I have tested the page on another server. I have there the same problem there.

    --
    https://github.com/phaidon/
  • Hi guys. Zikula is not dependent in PHP gettext (because it is very problematic in shared environments). The problem is almost certainly to do with 32/64 bit server (endian numbers). If you can contact me privately, I can walk you through some debugging processes.

    drak @ zikula...

    If the problem is solved, we can report back here afterwards.

    Regards,

    Drak

    --
    Zikula Lead Developer
    Board Member of the Zikula Foundation
    Follow me on twitter.com/zikuladrak
  • I have done some test. The problem is PHP 5.2 related. With 5.3 the problem disappears.

    --
    https://github.com/phaidon/
  • Fixed http://github.com/zi…b994c221630d9c49f91

    Magic numbers icon_smile

    Drak

    --
    Zikula Lead Developer
    Board Member of the Zikula Foundation
    Follow me on twitter.com/zikuladrak
  • Problem solved! Thanks Drak - you are great!

    --
    https://github.com/phaidon/

This list is based on users active over the last 60 minutes.