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

@ -7,7 +7,8 @@
# lang_add.txt
# Updated files:
# lang_en.txt and all lang_en_xx.txt
#
#
# insert single text to english dictionary
# $1 - text to insert
@ -53,7 +54,13 @@ cat lang_add.txt | sed 's/^/"/;s/$/"/' | while read new_s; do
echo
insert_en "$new_s"
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
done
read x
exit 0

View file

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