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>
This commit is contained in:
parent
7b445ef406
commit
7786a7c6c3
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ if [ "$#" -eq 0 ]; then
|
||||||
echo "Hint: run in the root of the luci repo or in your luci-app-* folder."
|
echo "Hint: run in the root of the luci repo or in your luci-app-* folder."
|
||||||
|
|
||||||
# get existing language codes from luci.mk
|
# 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
|
LANGS=$language_codes
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue