Modify

Opened 16 years ago

Closed 16 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:

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

Attachments (0)

Change History (2)

comment:1 by stoecker, 16 years ago

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

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

comment:2 by stoecker, 16 years ago

Resolution: worksforme
Status: needinfoclosed

No answer. Closing.

Modify Ticket

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

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.