Changeset 1059 in josm


Ignore:
Timestamp:
2008-10-29T22:20:08+01:00 (16 years ago)
Author:
mfloryan
Message:

Fixed #1683 - an exception when selected (or system default) locale was
not available in translations.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/.classpath

    r787 r1059  
    88        <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
    99        <classpathentry kind="lib" path="lib/jfcunit.jar"/>
     10        <classpathentry kind="lib" path="lib/josm-translation.jar"/>
    1011        <classpathentry kind="output" path="bin"/>
    1112</classpath>
  • trunk/src/org/openstreetmap/josm/gui/MainApplication.java

    r1058 r1059  
    2121import java.util.Locale;
    2222import java.util.Map;
     23import java.util.MissingResourceException;
    2324
    2425import javax.swing.JFrame;
     
    179180        }
    180181       
    181         i18n = I18nFactory.getI18n(MainApplication.class);
     182        try {
     183            i18n = I18nFactory.getI18n(MainApplication.class);
     184        } catch (MissingResourceException ex) {
     185            System.out.println("Unable to find translation for the locale: " + Locale.getDefault().getDisplayName() + " reverting to English.");
     186        }
    182187               
    183188                SplashScreen splash = new SplashScreen(Main.pref.getBoolean("draw.splashscreen", true));
Note: See TracChangeset for help on using the changeset viewer.