Browse Source

lang - scripts fixed

Robert Pelnar 5 years ago
parent
commit
9624b5a3fc
2 changed files with 10 additions and 3 deletions
  1. 8 1
      lang/lang-add.sh
  2. 2 2
      lang/textaddr.sh

+ 8 - 1
lang/lang-add.sh

@@ -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

+ 2 - 2
lang/textaddr.sh

@@ -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