hello,

I am implementing i18n, but dont seem to get answer to the above
question, so hope some one can help me

I set up two languages in my app: 'en-gb' and 'rus'.

In core.php I added:
define('DEFAULT_LANGUAGE', 'en-gb');
Configure::write('Config.language', 'en-gb');

In my app_controller beforeFilter:

Configure::write('Config.language', "rus"); //can be en-gb or rus

I am using  Configure::write('Config.language', "rus");  in the before
filter method to set the locale for the user everytime he access the
web application.

My questions is whether Configure::write('Config.language', "rus"); is
writing to a static variable, since from my understanding
Configure::write is writing to a application wide variable.

If it is a static variable, the locale setting will be corrupted once
another user happen to access at the same time with another locale.
Hope someone can highlight if this is the correct way, thank you


www.generics.ws
www.genericsmed.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to