Ignore:
Timestamp:
2008-10-14T20:13:51+02:00 (16 years ago)
Author:
hampelratte
Message:

fxed bug with locale

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/i18n/Messages.java

    r11221 r11223  
    2828package org.openstreetmap.josm.plugins.osb.i18n;
    2929
    30 import java.io.IOException;
    3130import java.io.InputStream;
    3231import java.text.MessageFormat;
     
    4342        try {
    4443            loadBundle(Locale.getDefault());
    45         } catch (IOException e) {
    46                 e.printStackTrace();
     44        } catch (Exception e) {
     45                System.err.println("Couldn't load resource bundle for locale " + Locale.getDefault());
    4746            try {
    4847                loadBundle(Locale.ENGLISH);
    49             } catch (IOException e1) {
     48            } catch (Exception e1) {
    5049                System.err.println("Couldn't load default resource bundle");
    5150                e.printStackTrace();
     
    6766    }
    6867   
    69     private void loadBundle(Locale locale) throws IOException {
     68    private void loadBundle(Locale locale) throws Exception {
    7069        System.out.println("Trying to load locale " + locale.getLanguage() + " for openstreetbugs");
    7170        InputStream in = Messages.class.getResourceAsStream("language_" + locale.getLanguage() + ".properties");
Note: See TracChangeset for help on using the changeset viewer.