lang-add: avoid repetition for supported languages
This commit is contained in:
parent
1bba7815fc
commit
679730c9ed
|
|
@ -7,7 +7,12 @@
|
||||||
# lang_add.txt
|
# lang_add.txt
|
||||||
# Updated files:
|
# Updated files:
|
||||||
# lang_en.txt and all lang_en_xx.txt
|
# lang_en.txt and all lang_en_xx.txt
|
||||||
#
|
|
||||||
|
# List of supported languages
|
||||||
|
LANGUAGES="cz de es fr it pl"
|
||||||
|
|
||||||
|
# Community languages
|
||||||
|
LANGUAGES+=" nl" #Dutch
|
||||||
|
|
||||||
# Config:
|
# Config:
|
||||||
if [ -z "$CONFIG_OK" ]; then eval "$(cat config.sh)"; fi
|
if [ -z "$CONFIG_OK" ]; then eval "$(cat config.sh)"; fi
|
||||||
|
|
@ -68,14 +73,11 @@ cat lang_add.txt | sed 's/^/"/;s/$/"/' | while read new_s; do
|
||||||
echo "adding text:"
|
echo "adding text:"
|
||||||
echo "$new_s"
|
echo "$new_s"
|
||||||
echo
|
echo
|
||||||
#insert_en "$new_s"
|
|
||||||
for lang in $LANGUAGES; do
|
|
||||||
insert_xx "$new_s" "$lang"
|
|
||||||
done
|
|
||||||
|
|
||||||
#Use the 2 lines below as a template and replace 'qr'
|
insert_en "$new_s"
|
||||||
##New language
|
for lang in $LANGUAGES; do
|
||||||
# insert_xx "$new_s" 'qr'
|
insert_xx "$new_s" "$lang"
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue