Author: nextgens
Date: 2008-01-18 23:16:53 +0000 (Fri, 18 Jan 2008)
New Revision: 17160
Modified:
trunk/apps/Thaw/src/thaw/core/I18n.java
Log:
Thaw: doh
Modified: trunk/apps/Thaw/src/thaw/core/I18n.java
===================================================================
--- trunk/apps/Thaw/src/thaw/core/I18n.java 2008-01-18 23:12:41 UTC (rev
17159)
+++ trunk/apps/Thaw/src/thaw/core/I18n.java 2008-01-18 23:16:53 UTC (rev
17160)
@@ -35,17 +35,21 @@
*/
public class I18n {
public final static Locale[] supportedLocales = {
- new Locale("en"),
- new Locale("fr")
+ Locale.ENGLISH,
+ Locale.FRENCH
};
private static Locale currentLocale;
private static ResourceBundle currentResourceBundle;
static {
- currentResourceBundle =
ResourceBundle.getBundle("thaw.i18n.thaw", I18n.getLocale());
- currentLocale = Locale.getDefault();
+ currentLocale = Locale.ENGLISH;
+ currentResourceBundle =
ResourceBundle.getBundle("thaw.i18n.thaw", currentLocale);
}
+
+ public I18n() {
+ I18n.setLocale(Locale.getDefault());
+ }
public static Locale getLocale() {
return currentLocale;