Opened 11 years ago

Closed 11 years ago

#2546 closed defect (worksforme)

gettext-commons 0.9.6 changes

Reported by: andreas@… Owned by: andreas@…
Priority: trivial Milestone:
Component: Core Version: latest
Keywords: Cc:



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/ 2009-05-07 21:01:37.000000000 +0000
+++ src/org/openstreetmap/josm/gui/ 2009-05-07 21:02:09.000000000 +0000
@@ -113,6 +113,7 @@

try {

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
+ }


Attachments (0)

Change History (2)

comment:1 Changed 11 years ago by stoecker

Owner: changed from team to andreas@…
Status: newneedinfo

I updated to 0.9.6. Is the patch still necessary with your system?

comment:2 Changed 11 years ago by stoecker

Resolution: worksforme
Status: needinfoclosed

No answer. Closing.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain andreas@….
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.