Opened 16 years ago
Closed 16 years ago
#2546 closed defect (worksforme)
gettext-commons 0.9.6 changes
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | trivial | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | Cc: |
Description
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
I updated to 0.9.6. Is the patch still necessary with your system?