Pages (2): 1 2   
Member
Member
ruiner   15-02-2011, 06:58
#1

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?

Member
Member
sbillard   15-02-2011, 19:57
#2

Can you tell us please what version of Zenphoto, etc. So we have the data needed to help you.

Member
Member
ruiner   16-02-2011, 00:03
#3

Zenphoto 1.4.0.1, 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.

Member
Member
sbillard   16-02-2011, 02:16
#4

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.

Member
Member
ruiner   16-02-2011, 02:24
#5

Yes, both .mo and .po files are in ru_RU folder.

Administrator
Administrator
acrylian   16-02-2011, 10:01
#6

You do really have separate theme translation files as well?

Member
Member
ruiner   16-02-2011, 13:07
#7

Sure. And it works fine all the time. I get errors only when using dynamic_locale to switch language.

Member
Member
sbillard   16-02-2011, 23:20
#8

I have placed a change in the nightly build for 2/16/2011. Please try this and see if the problem is fixed.

Member
Member
ruiner   18-02-2011, 09:39
#9

Everything is OK now. Thank you.

Member
Member
ruiner   07-06-2013, 02:33
#10

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.

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