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/
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- rgasch created topic »Using PageUtil::addVar() to load script code« 11:48 AM
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Gettext probleme
-
- Rank: Freshman
- Registered: Jul 28, 2010
- Last visit:
- Posts: 98
-
- Rank: Developer
- Registered: Jun 16, 2003
- Last visit: May 29, 2010
- Posts: 1966
is gettext support enabled (--with-gettext) on the second box?
BTW - welcome to the zikula forums! -
- Rank: Developer
- Registered: Aug 23, 2003
- Last visit: May 31, 2010
- Posts: 1428
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 -
- Rank: Freshman
- Registered: Jul 28, 2010
- Last visit:
- Posts: 98
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/ -
- Rank: Software Foundation
- Registered: Jul 21, 2001
- Last visit: May 31, 2010
- Posts: 624
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 -
- Rank: Freshman
- Registered: Jul 28, 2010
- Last visit:
- Posts: 98
I have done some test. The problem is PHP 5.2 related. With 5.3 the problem disappears.
--
https://github.com/phaidon/ -
- Rank: Software Foundation
- Registered: Jul 21, 2001
- Last visit: May 31, 2010
- Posts: 624
Fixed http://github.com/zi…b994c221630d9c49f91
Magic numbers
Drak
--
Zikula Lead Developer
Board Member of the Zikula Foundation
Follow me on twitter.com/zikuladrak -
- Rank: Freshman
- Registered: Jul 28, 2010
- Last visit:
- Posts: 98
- Moderated by:
- Support
