Changeset 8846 in josm for trunk/src/org/openstreetmap/josm/tools/I18n.java
- Timestamp:
- 2015-10-10T01:40:42+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/I18n.java
r8840 r8846 309 309 } 310 310 if (strings != null) { 311 String trans = strings.get(ctx == null ? text : "_:"+ctx+ "\n"+text);311 String trans = strings.get(ctx == null ? text : "_:"+ctx+'\n'+text); 312 312 if (trans != null) 313 313 return trans; … … 315 315 if (pstrings != null) { 316 316 i = pluralEval(1); 317 String[] trans = pstrings.get(ctx == null ? text : "_:"+ctx+ "\n"+text);317 String[] trans = pstrings.get(ctx == null ? text : "_:"+ctx+'\n'+text); 318 318 if (trans != null && trans.length > i) 319 319 return trans[i]; … … 339 339 if (pstrings != null) { 340 340 i = pluralEval(num); 341 String[] trans = pstrings.get(ctx == null ? text : "_:"+ctx+ "\n"+text);341 String[] trans = pstrings.get(ctx == null ? text : "_:"+ctx+'\n'+text); 342 342 if (trans != null && trans.length > i) 343 343 return trans[i]; … … 353 353 354 354 private static URL getTranslationFile(String lang) { 355 return Main.class.getResource("/data/"+lang.replace( "@", "-")+".lang");355 return Main.class.getResource("/data/"+lang.replace('@', '-')+".lang"); 356 356 } 357 357
Note:
See TracChangeset
for help on using the changeset viewer.