Ticket #6501: I18n.java.diff
File I18n.java.diff, 1.5 KB (added by , 13 years ago) |
---|
-
src/org/openstreetmap/josm/tools/I18n.java
118 118 "OptionPane.noButtonText", 119 119 "OptionPane.cancelButtonText" 120 120 }; 121 private static HashMap<String, String> strings = n ull;122 private static HashMap<String, String[]> pstrings = n ull;121 private static HashMap<String, String> strings = new HashMap<String, String>(); 122 private static HashMap<String, String[]> pstrings = new HashMap<String, String[]>(); 123 123 private static HashMap<String, PluralMode> languages = new HashMap<String, PluralMode>(); 124 124 125 125 /** … … 406 406 { 407 407 if(l.equals("en") || l.equals("en_US")) 408 408 { 409 strings = null;410 pstrings = null;409 strings.clear(); 410 pstrings.clear(); 411 411 pluralMode = PluralMode.MODE_NOTONE; 412 412 return true; 413 413 } … … 607 607 System.out.println(tr("Unable to find translation for the locale {0}. Reverting to {1}.", 608 608 l.getDisplayName(), Locale.getDefault().getDisplayName())); 609 609 } else { 610 strings = null;611 pstrings = null;610 strings.clear(); 611 pstrings.clear(); 612 612 } 613 613 } 614 614 }