Hi all,

Working on detection language for my application, I see that the L10n-
>get method sets Config.language to null when the env
('HTTP_ACCEPT_LANGUAGE') doesn't contain languages.

Probabilities that a browser doesn't define preferred languages are
small but I tested it with my browser and it can occur. You can easily
removed all preferred languages in Firefox and obtain an empty
HTTP_ACCEPT_LANGUAGE.

Personally I consider that L10n->get() method should never set a null
value for Config.language. What do you think about that?

Of course, you can manage yourself this case in your application, but
I think developers will always solve this problem in the following
way: set in Config.language their default language use in the
application.

Regards
--~--~---------~--~----~------------~-------~--~----~
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