Dynamic-locale and gettext_th

When I'm using dynamic locale to change site language, at every instance of gettext_th script shows following error:

Warning: Cannot modify header information - headers already sent by (output started at ........../zp-core/template-functions.php:4186) in ........../zp-core/functions.php on line 1599

What is it?


  • Can you tell us please what version of Zenphoto, etc. So we have the data needed to help you.
  • Zenphoto, live example here: http://ab.maglan.ru/magadan360/ (language selector at bottom).

    I'm using gettext_th('string') for all theme strings, /locale/ru_RU/magadan360.po and poedit as described in manual. The gettext('string') working fine.
  • Are there .mo and .po files for zenphoto in the ru_RU folder?

    Best guess as to what is happening is that Zenphoto is getting a failure trying to restotore the locale settings after the `gettext_th` call.
  • Yes, both .mo and .po files are in ru_RU folder.
  • acrylian Administrator, Developer
    You do really have separate theme translation files as well?
  • Sure. And it works fine all the time. I get errors <i>only</i> when using dynamic_locale to switch language.
  • I have placed a change in the nightly build for 2/16/2011. Please try this and see if the problem is fixed.
  • Everything is OK now. Thank you.
  • ruiner Member
    Hello again.

    After some upgrades on my hoster's server function gettext_th is not working anymore. No matter what languase is set, it shows english all the time.

    I have checked .po files, all OK. On local server everything is working fine.

    You can check it on magadan360.ru.
  • acrylian Administrator, Developer
    Do normal gettext() calls work? Errors in the logs? If not you have to contact your host because then it would be a server issue.
Sign In or Register to comment.