mirror of
https://github.com/openwrt/luci.git
synced 2025-12-26 11:16:38 +04:00
build: i18n-add-language.sh: more lenient code validation
Allow language codes with underscores and capital letters. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
LANG=$1
|
LANG=$1
|
||||||
|
|
||||||
case "$LANG" in
|
case "$LANG" in
|
||||||
[a-z][a-z]|[a-z][a-z]-[a-z][a-z]) : ;;
|
[a-z][a-z]|[a-z][a-z][_-][A-Za-z][A-Za-z]*) : ;;
|
||||||
*)
|
*)
|
||||||
echo "Usage: $0 <ISO_CODE>\n" >&2
|
echo "Usage: $0 <ISO_CODE>\n" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user