Ignore:
Timestamp:
2018-05-13T22:09:06+02:00 (6 years ago)
Author:
Don-vip
Message:

see #16288 - replace similar i18n strings (removes 35 strings from Launchpad)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/I18n.java

    r13647 r13761  
    8686    private static volatile String loadedCode = "en";
    8787
    88 
     88    /** Map (english/locale) of singular strings **/
    8989    private static volatile Map<String, String> strings;
     90    /** Map (english/locale) of plural strings **/
    9091    private static volatile Map<String, String[]> pstrings;
    9192    private static Map<String, PluralMode> languages = new HashMap<>();
     
    615616        return 0;
    616617    }
     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    }
    617636}
Note: See TracChangeset for help on using the changeset viewer.