Changeset 19241 in josm for trunk


Ignore:
Timestamp:
2024-10-12T21:52:05+02:00 (5 weeks ago)
Author:
stoecker
Message:

forgot Bopo, see #23964

File:
1 edited

Legend:

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

    r19240 r19241  
    155155    private static final String HANT = "hant";
    156156    private static final String HANS = "hans";
     157    private static final String BOPOMOFO = "bopo";
    157158
    158159    // Matches ISO-639 two and three letters language codes + scripts
    159160    private static final Pattern LANGUAGE_NAMES = Pattern.compile(
    160             "name:(\\p{Lower}{2,3})(?:[-_](?i:(" + String.join("|", HIRAGANA, KATAKANA, LATIN, PINYIN, LATINPINYIN, ROMAJI, HANI, HANS, HANT) + ")))?");
     161            "name:(\\p{Lower}{2,3})(?:[-_](?i:(" + String.join("|", HIRAGANA, KATAKANA, LATIN, PINYIN, LATINPINYIN, ROMAJI, HANI, HANS, HANT, BOPOMOFO) + ")))?");
    161162
    162163    private static String format(String text, Object... objects) {
     
    733734                case HANT:
    734735                    return /* I18n: Traditional Chinese */ tr("Trdaditional");
     736                case BOPOMOFO:
     737                    return /* I18n: Mandarin Phonetic Symbols/Zhuyin */ tr("Bopomofo");
    735738                case ROMAJI:
    736739                    return /* I18n: a Japanese syllabary (latin script) */  tr("Rōmaji");
Note: See TracChangeset for help on using the changeset viewer.