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
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
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
>>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`.
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
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