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:
parent
0b513de0b0
commit
535d4cf8b9
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
LANG=$1
|
||||
|
||||
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
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue