Changeset 11223 in osm for applications/editors/josm/plugins
- Timestamp:
- 2008-10-14T20:13:51+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/i18n/Messages.java
r11221 r11223 28 28 package org.openstreetmap.josm.plugins.osb.i18n; 29 29 30 import java.io.IOException;31 30 import java.io.InputStream; 32 31 import java.text.MessageFormat; … … 43 42 try { 44 43 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()); 47 46 try { 48 47 loadBundle(Locale.ENGLISH); 49 } catch ( IOException e1) {48 } catch (Exception e1) { 50 49 System.err.println("Couldn't load default resource bundle"); 51 50 e.printStackTrace(); … … 67 66 } 68 67 69 private void loadBundle(Locale locale) throws IOException {68 private void loadBundle(Locale locale) throws Exception { 70 69 System.out.println("Trying to load locale " + locale.getLanguage() + " for openstreetbugs"); 71 70 InputStream in = Messages.class.getResourceAsStream("language_" + locale.getLanguage() + ".properties");
Note:
See TracChangeset
for help on using the changeset viewer.