Skip to content

Commit

Permalink
Fix recently added languages not displayed accordingly (gsantner#1454
Browse files Browse the repository at this point in the history
…by @gsantner)
  • Loading branch information
gsantner committed Oct 2, 2021
1 parent 7ff1f13 commit c9ffc34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ private String summarizeLocale(final Locale locale, final String localeAndroidCo
ret = ret.substring(0, ret.indexOf(" ") + 1) + "Cyrillic" + ret.substring(ret.indexOf(" "));
} else if (localeAndroidCode.equals("fil")) {
ret = ret.substring(0, ret.indexOf("(") + 1) + "Philippines)";
} else if (localeAndroidCode.equals("kmr")) {
ret = "Kurdish Kurmanji (کورمانجی)";
} else if (localeAndroidCode.equals("ckb")) {
ret = "Kurdish Sorani (" + ret.split("\\(")[1];
}

return ret;
Expand Down
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ static String findUsedAndroidLocales() {
}
}
}
langs = langs.sort()
return '{' + langs.collect { "\"${it}\"" }.join(",") + '}'
return '{' + langs.sort().collect { "\"${it}\"" }.join(",") + '}'
}

ext.getGitHash = { ->
Expand Down

0 comments on commit c9ffc34

Please sign in to comment.