- Timestamp:
- 2024-10-12T21:52:05+02:00 (5 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/I18n.java
r19240 r19241 155 155 private static final String HANT = "hant"; 156 156 private static final String HANS = "hans"; 157 private static final String BOPOMOFO = "bopo"; 157 158 158 159 // Matches ISO-639 two and three letters language codes + scripts 159 160 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) + ")))?"); 161 162 162 163 private static String format(String text, Object... objects) { … … 733 734 case HANT: 734 735 return /* I18n: Traditional Chinese */ tr("Trdaditional"); 736 case BOPOMOFO: 737 return /* I18n: Mandarin Phonetic Symbols/Zhuyin */ tr("Bopomofo"); 735 738 case ROMAJI: 736 739 return /* I18n: a Japanese syllabary (latin script) */ tr("Rōmaji");
Note:
See TracChangeset
for help on using the changeset viewer.