Changeset 13761 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2018-05-13T22:09:06+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/I18n.java
r13647 r13761 86 86 private static volatile String loadedCode = "en"; 87 87 88 88 /** Map (english/locale) of singular strings **/ 89 89 private static volatile Map<String, String> strings; 90 /** Map (english/locale) of plural strings **/ 90 91 private static volatile Map<String, String[]> pstrings; 91 92 private static Map<String, PluralMode> languages = new HashMap<>(); … … 615 616 return 0; 616 617 } 618 619 /** 620 * Returns the map of singular translations. 621 * @return the map of singular translations. 622 * @since 13761 623 */ 624 public static Map<String, String> getSingularTranslations() { 625 return new HashMap<>(strings); 626 } 627 628 /** 629 * Returns the map of plural translations. 630 * @return the map of plural translations. 631 * @since 13761 632 */ 633 public static Map<String, String[]> getPluralTranslations() { 634 return new HashMap<>(pstrings); 635 } 617 636 }
Note:
See TracChangeset
for help on using the changeset viewer.