diff options
author | Paul Donald <newtwen@gmail.com> | 2024-01-03 16:09:04 +0000 |
---|---|---|
committer | Paul Donald <newtwen@gmail.com> | 2024-01-03 16:09:12 +0000 |
commit | 7786a7c6c36de5775a6affd0d5b28dce88272419 (patch) | |
tree | c14f10c6065470cd7c9457af0631a8e7a539e2de /build/i18n-add-language.sh | |
parent | 7b445ef406d43ab64911c2b97481873d4333b6e4 (diff) |
build/i18n-add-language: fix regexp
prevents zh, nb, bn
allows bn_BD, nb_NO, pt_BR, zh_Hans, zh_Hant
Signed-off-by: Paul Donald <newtwen@gmail.com>
Diffstat (limited to 'build/i18n-add-language.sh')
-rwxr-xr-x | build/i18n-add-language.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/i18n-add-language.sh b/build/i18n-add-language.sh index 94568000e1..951985253e 100755 --- a/build/i18n-add-language.sh +++ b/build/i18n-add-language.sh @@ -6,7 +6,7 @@ if [ "$#" -eq 0 ]; then echo "Hint: run in the root of the luci repo or in your luci-app-* folder." # get existing language codes from luci.mk - language_codes=$(grep -o 'LUCI_LANG\.[a-zA-Z]*' $(dirname "$0")/../luci.mk | cut -d '.' -f 2 | sort -u) + language_codes=$(grep -o 'LUCI_LANG\.[a-zA-Z_-]*' $(dirname "$0")/../luci.mk | cut -d '.' -f 2 | sort -u) LANGS=$language_codes else |