Cakephp Localization, Cannot Change language when DEFAULT_LANGUAGE is set
Posted
by ion
on Stack Overflow
See other posts from Stack Overflow
or by ion
Published on 2010-03-25T08:05:11Z
Indexed on
2010/03/25
8:13 UTC
Read the original article
Hit count: 284
I am confused :)
I'm using the p18n component in cakephp found here:
http://www.palivoda.eu/2008/04/i18n-in-cakephp-12-database-content-translation-part-2/
This component requires me to set in core.php the following constant:
define("DEFAULT_LANGUAGE", 'eng')
However when this is set I cannot change the language using:
Configure::write('Config.language', 'eng');
At the moment, into my knowledge, the only way to change the locale of my static content is the use of the Configure::write. But for the dynamic content to change through the use of the p28n component I must have the DEFINE_LANGUAGE constant set to a value.
This is all very confusing. Any help will be much appreciated.
© Stack Overflow or respective owner