Re: Problems with Translate Behaviour in Firefox and Internet Explorer (country code)

2009-03-27 Thread jitka (poLK)
If following code at top of app/config/bootstrap.php doesn't show same results in both your browsers, it could be some bug in l10n autodetection - could you check that? App::import('Core', 'i18n'); $I18n =& I18n::getInstance(); $I18n->l10n->get(); die($I18n->l10n->locale); If it shows same local

Re: Problems with Translate Behaviour in Firefox and Internet Explorer (country code)

2009-03-25 Thread j0n4s.h4rtm...@googlemail.com
I'd do the following: - look up standards for language and region selectors (those are probably more en-GB and de-DE and en-US and so on than what IE does, but google should help) - decide what you want to use internally then - if you want automatic selection - create an appcontroller function t

Re: Problems with Translate Behaviour in Firefox and Internet Explorer (country code)

2009-03-24 Thread artoros
I would, but this is part of a automatically generated SQL statement from Cake, so I can not change it. Ok, I guess, this "auto detection" does not work right. As soon as I set the language manually (for example in core.php with Configure::write('Config.language', 'eng');) it does work. Ok, bette

Re: Problems with Translate Behaviour in Firefox and Internet Explorer (country code)

2009-03-24 Thread furionn
>>IE: Select where AND `I18n__description`.`locale` = 'deu' >>FFx: Select where AND `I18n__description`.`locale` = 'de_de' first 2 symbols are same try >>IE: Select where AND `I18n__description`.`locale` = 'de%' >>FFx: Select where AND `I18n__description`.

Re: Problems with Translate Behaviour in Firefox and Internet Explorer (country code)

2009-03-24 Thread James K
This is why I don't rely on automagic sniffing of locale settings I always recommend that locale be requested from the user and then handled in sessions and/or cookies. This way you can always ensure it is consistent and what the user wants to see. - James On Mar 24, 4:40 am, artoros wrote

Problems with Translate Behaviour in Firefox and Internet Explorer (country code)

2009-03-24 Thread artoros
Hi there, I have a problem with the translate behaviour and the automatic language selection, that cake obviously does. To make it short: It seems that my (or all?) Internet Explorer (IE7) and Firefox (FFx3) use a different country code for different languages. For example: IE uses "deu" and the