Ok, I'll tell you how I put the pieces together and than you tell me if there is some better way of doing it:
1. I have prepared language files in /app/locale/<LANG>/LC_MESSAGES/ default.po with correct msgid/msgstr pairs 2. I create language change block with links like <SITE_URL>/language/ <LANG> (<SITE_URL>/language/en) 3. In my app_controller.php I create function initLang, that checks url for '/language/<LANG>' and if they are found set language (in Session and Configure::write('Config.language', '<LANG>') ) to new one and redirect site to referer page (but with new lang in session), then if it doesn't find string ('/language/<LANG>') it sets default languate (in Session and Configure::write('Config.language', '<LANG>') What do you think about this scenario? On May 4, 10:49 am, jitka <[EMAIL PROTECTED]> wrote: > Configure::write('Config.language', 'en'); > > or same key in session (takes precedence) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---