Changeset 19240 in josm
- Timestamp:
- 2024-10-12T21:49:01+02:00 (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/I18n.java
r19050 r19240 150 150 private static final String LATIN = "latn"; 151 151 private static final String PINYIN = "pinyin"; 152 private static final String LATINPINYIN = "latn-pinyin"; 152 153 private static final String ROMAJI = "rm"; 154 private static final String HANI = "hani"; 155 private static final String HANT = "hant"; 156 private static final String HANS = "hans"; 153 157 154 158 // Matches ISO-639 two and three letters language codes + scripts 155 159 private static final Pattern LANGUAGE_NAMES = Pattern.compile( 156 "name:(\\p{Lower}{2,3})(?:[-_](?i:(" + String.join("|", HIRAGANA, KATAKANA, LATIN, PINYIN, ROMAJI) + ")))?");160 "name:(\\p{Lower}{2,3})(?:[-_](?i:(" + String.join("|", HIRAGANA, KATAKANA, LATIN, PINYIN, LATINPINYIN, ROMAJI, HANI, HANS, HANT) + ")))?"); 157 161 158 162 private static String format(String text, Object... objects) { … … 721 725 case LATIN: 722 726 return /* I18n: usage of latin letters/script for usually non-latin languages */ tr("Latin"); 723 case PINYIN: 727 case PINYIN: case LATINPINYIN: 724 728 return /* I18n: official romanization system for Standard Chinese */ tr("Pinyin"); 729 case HANI: 730 return /* I18n: Han characters for Vietnamese or Korean language */ tr("Hani"); 731 case HANS: 732 return /* I18n: Simplified Chinese */ tr("Simplied"); 733 case HANT: 734 return /* I18n: Traditional Chinese */ tr("Trdaditional"); 725 735 case ROMAJI: 726 736 return /* I18n: a Japanese syllabary (latin script) */ tr("Rōmaji");
Note:
See TracChangeset
for help on using the changeset viewer.