﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
2546	gettext-commons 0.9.6 changes	andreas@…	andreas@…	"Hi,

Debian/Ubuntu uses gettext-commons 0.9.6 while josm still uses 0.9.2. With the newer version, josm always uses the standard system locale which renders translations unusable.

This small patch fixes the problem for me without breaking josm with gettext-commons 0.9.2:

--- src/org/openstreetmap/josm/gui/MainApplication.java.orig	2009-05-07 21:01:37.000000000 +0000
+++ src/org/openstreetmap/josm/gui/MainApplication.java	2009-05-07 21:02:09.000000000 +0000
@@ -113,6 +113,7 @@
             try {
                 Locale.setDefault(l);
                 i18n = I18nFactory.getI18n(MainApplication.class);
+                i18n.setLocale(Locale.getDefault());
             } catch (MissingResourceException ex) {
                 if (!l.getLanguage().equals(""en"")) {
                     System.out.println(tr(""Unable to find translation for the locale {0}. Reverting to {1}."",
@@ -205,4 +206,4 @@
             }
         }
     }     
- }
\ No newline at end of file
+ }

Thanks,
Andreas
"	defect	closed	trivial		Core	latest	worksforme		
