lyonplus / gettext-commons

Automatically exported from code.google.com/p/gettext-commons
GNU Lesser General Public License v2.1
0 stars 0 forks source link

I18nManager.setDefaultLocale(Locale locale) lacks some functionality #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I18nManager.setDefaultLocale(Locale newLocale) changes the locale for all
the I18n objects created via I18nFactory but I think it should also call
Locale.setDefault(newLocale) so that all new I18n objects would also come
with the newLocale.

Evaldas Juska

Original issue reported on code.google.com by evk...@gmail.com on 13 Sep 2007 at 3:26

GoogleCodeExporter commented 8 years ago
In the previous version I18nManager.setDefaultLocale() also set the global 
default. I
found that that is an unexpected and potentially undesired side-effect so I 
took it
out in the current release. 
It's a valid point though that the name of the method suggests that all locale
objects created after will have that locale set. We may need to reconsider and
potentially add another API call.

Original comment by steffen....@googlemail.com on 13 Sep 2007 at 4:19

GoogleCodeExporter commented 8 years ago
We can also document the current behavior better for that method and advise 
callers to also call 
Locale.setDefault().

If there are no objections, I will do this when I get a chance.

Original comment by berge...@gmail.com on 20 Mar 2010 at 11:04