Changeset 6316 in josm for trunk/src/org/openstreetmap/josm/tools/I18n.java
- Timestamp:
- 2013-10-07T20:18:17+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/I18n.java
r6248 r6316 15 15 import java.util.HashMap; 16 16 import java.util.Locale; 17 import java.util.Map; 17 18 import java.util.jar.JarInputStream; 18 19 import java.util.zip.ZipEntry; … … 121 122 "OptionPane.cancelButtonText" 122 123 }; 123 private static HashMap<String, String> strings = null;124 private static HashMap<String, String[]> pstrings = null;125 private static HashMap<String, PluralMode> languages = new HashMap<String, PluralMode>();124 private static Map<String, String> strings = null; 125 private static Map<String, String[]> pstrings = null; 126 private static Map<String, PluralMode> languages = new HashMap<String, PluralMode>(); 126 127 127 128 /** … … 476 477 } 477 478 478 private static boolean load(InputStream en, InputStream tr, boolean add) 479 { 480 HashMap<String, String> s; 481 HashMap<String, String[]> p; 482 if(add) 483 { 479 private static boolean load(InputStream en, InputStream tr, boolean add) { 480 Map<String, String> s; 481 Map<String, String[]> p; 482 if (add) { 484 483 s = strings; 485 484 p = pstrings; 486 } 487 else 488 { 485 } else { 489 486 s = new HashMap<String, String>(); 490 487 p = new HashMap<String, String[]>();
Note:
See TracChangeset
for help on using the changeset viewer.