Skip to content

Commit

Permalink
forgot Bopo, see #23964
Browse files Browse the repository at this point in the history
git-svn-id: https://josm.openstreetmap.de/svn/trunk@19241 0c6e7542-c601-0410-84e7-c038aed88b3b
  • Loading branch information
stoecker committed Oct 12, 2024
1 parent 46fae0c commit 7395f73
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/org/openstreetmap/josm/tools/I18n.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,11 @@ private enum PluralMode {
private static final String HANI = "hani";
private static final String HANT = "hant";
private static final String HANS = "hans";
private static final String BOPOMOFO = "bopo";

// Matches ISO-639 two and three letters language codes + scripts
private static final Pattern LANGUAGE_NAMES = Pattern.compile(
"name:(\\p{Lower}{2,3})(?:[-_](?i:(" + String.join("|", HIRAGANA, KATAKANA, LATIN, PINYIN, LATINPINYIN, ROMAJI, HANI, HANS, HANT) + ")))?");
"name:(\\p{Lower}{2,3})(?:[-_](?i:(" + String.join("|", HIRAGANA, KATAKANA, LATIN, PINYIN, LATINPINYIN, ROMAJI, HANI, HANS, HANT, BOPOMOFO) + ")))?");

Check failure on line 161 in src/org/openstreetmap/josm/tools/I18n.java

View workflow job for this annotation

GitHub Actions / Analyze

com.puppycrawl.tools.checkstyle.checks.sizes.LineLengthCheck

Line is longer than 145 characters (found 162).

private static String format(String text, Object... objects) {
if (objects.length == 0 && !text.contains("'")) {
Expand Down Expand Up @@ -732,6 +733,8 @@ public static String getLocalizedScript(String script) {
return /* I18n: Simplified Chinese */ tr("Simplied");
case HANT:
return /* I18n: Traditional Chinese */ tr("Trdaditional");
case BOPOMOFO:
return /* I18n: Mandarin Phonetic Symbols/Zhuyin */ tr("Bopomofo");
case ROMAJI:
return /* I18n: a Japanese syllabary (latin script) */ tr("Rōmaji");
default:
Expand Down

0 comments on commit 7395f73

Please sign in to comment.