lang - scripts fixed

This commit is contained in:
Robert Pelnar 2018-11-01 19:00:49 +01:00
parent b193bc50fa
commit 9624b5a3fc
2 changed files with 10 additions and 3 deletions

View File

@ -9,6 +9,7 @@
# lang_en.txt and all lang_en_xx.txt # lang_en.txt and all lang_en_xx.txt
# #
# insert single text to english dictionary # insert single text to english dictionary
# $1 - text to insert # $1 - text to insert
insert_en() insert_en()
@ -53,7 +54,13 @@ cat lang_add.txt | sed 's/^/"/;s/$/"/' | while read new_s; do
echo echo
insert_en "$new_s" insert_en "$new_s"
insert_xx "$new_s" 'cz' insert_xx "$new_s" 'cz'
insert_xx "$new_s" 'de'
insert_xx "$new_s" 'es'
insert_xx "$new_s" 'fr'
insert_xx "$new_s" 'it'
insert_xx "$new_s" 'pl'
fi fi
done done
read x
exit 0 exit 0

View File

@ -44,7 +44,7 @@ text=''
text=$txt text=$txt
else else
if [ -z "$addr" ]; then if [ -z "$addr" ]; then
echo "TEXT NF $num $txt" if ! [ -z "$num" ]; then echo "TEXT NF $num $txt"; fi
else else
if [ "$text" = "$txt" ]; then if [ "$text" = "$txt" ]; then
if [ ${#addr} -eq 8 ]; then if [ ${#addr} -eq 8 ]; then
@ -57,7 +57,7 @@ text=''
addr='' addr=''
text='' text=''
else else
echo "TEXT NF $num $txt" if ! [ -z "$num" ]; then echo "TEXT NF $num $txt"; fi
fi fi
fi fi
fi fi