Fix translation file and odd chars in lang-import.sh

This commit is contained in:
3d-gussner 2019-09-21 12:07:51 +02:00
parent 049cca297b
commit 38f8d419d7
2 changed files with 40 additions and 35 deletions

View File

@ -40,51 +40,51 @@ sed -i 's/ \\n/ /g;s/\\n/ /g' $LNG'_filtered.po'
#replace in czech translation #replace in czech translation
if [ "$LNG" = "cz" ]; then if [ "$LNG" = "cz" ]; then
#replace 'ž' with 'z' #replace 'ž' with 'z'
sed -i 's/\xc5\xbe/z/g' $LNG'_filtered.po' sed -i 's/\xc5\xbe/z/g' $LNG'_filtered.po'
#replace 'ì' with 'e' #replace 'ì' with 'e'
sed -i 's/\xc4\x9b/e/g' $LNG'_filtered.po' sed -i 's/\xc4\x9b/e/g' $LNG'_filtered.po'
#replace 'í' with 'i' #replace 'í' with 'i'
sed -i 's/\xc3\xad/i/g' $LNG'_filtered.po' sed -i 's/\xc3\xad/i/g' $LNG'_filtered.po'
#replace 'ø' with 'r' #replace 'ø' with 'r'
sed -i 's/\xc5\x99/r/g' $LNG'_filtered.po' sed -i 's/\xc5\x99/r/g' $LNG'_filtered.po'
#replace 'è' with 'c' #replace 'è' with 'c'
sed -i 's/\xc4\x8d/c/g' $LNG'_filtered.po' sed -i 's/\xc4\x8d/c/g' $LNG'_filtered.po'
#replace 'á' with 'a' #replace 'á' with 'a'
sed -i 's/\xc3\xa1/a/g' $LNG'_filtered.po' sed -i 's/\xc3\xa1/a/g' $LNG'_filtered.po'
#replace 'é' with 'e' #replace 'é' with 'e'
sed -i 's/\xc3\xa9/e/g' $LNG'_filtered.po' sed -i 's/\xc3\xa9/e/g' $LNG'_filtered.po'
fi fi
#replace in german translation https://en.wikipedia.org/wiki/German_orthography #replace in german translation https://en.wikipedia.org/wiki/German_orthography
if [ "$LNG" = "de" ]; then if [ "$LNG" = "de" ]; then
#replace 'ä' with 'ae' #replace 'ä' with 'ae'
sed -i 's/\xc3\xa4/ae/g' $LNG'_filtered.po' sed -i 's/\xc3\xa4/ae/g' $LNG'_filtered.po'
#replace 'Ä' with 'Ae' #replace 'Ä' with 'Ae'
sed -i 's/\xc3\x84/Ae/g' $LNG'_filtered.po' sed -i 's/\xc3\x84/Ae/g' $LNG'_filtered.po'
#replace 'ü' with 'ue' #replace 'ü' with 'ue'
sed -i 's/\xc3\xbc/ue/g' $LNG'_filtered.po' sed -i 's/\xc3\xbc/ue/g' $LNG'_filtered.po'
#replace 'Ü' with 'Ue' #replace 'Ü' with 'Ue'
sed -i 's/\xc3\x9c/Ue/g' $LNG'_filtered.po' sed -i 's/\xc3\x9c/Ue/g' $LNG'_filtered.po'
#replace 'ö' with 'oe' #replace 'ö' with 'oe'
sed -i 's/\xc3\xb6/oe/g' $LNG'_filtered.po' sed -i 's/\xc3\xb6/oe/g' $LNG'_filtered.po'
#replace 'Ö' with 'Oe' #replace 'Ö' with 'Oe'
sed -i 's/\xc3\x96/Oe/g' $LNG'_filtered.po' sed -i 's/\xc3\x96/Oe/g' $LNG'_filtered.po'
#replace 'ß' with 'ss' #replace 'ß' with 'ss'
sed -i 's/\xc3\x9f/ss/g' $LNG'_filtered.po' sed -i 's/\xc3\x9f/ss/g' $LNG'_filtered.po'
fi fi
#replace in spain translation #replace in spain translation
if [ "$LNG" = "es" ]; then if [ "$LNG" = "es" ]; then
#replace 'á' with 'a' #replace 'á' with 'a'
sed -i 's/\xc3\xa1/a/g' $LNG'_filtered.po' sed -i 's/\xc3\xa1/a/g' $LNG'_filtered.po'
#replace '¿' with '?' #replace '¿' with '?'
sed -i 's/\xc2\xbf/?/g' $LNG'_filtered.po' sed -i 's/\xc2\xbf/?/g' $LNG'_filtered.po'
#replace 'ó' with 'o' #replace 'ó' with 'o'
sed -i 's/\xc3\xb3/o/g' $LNG'_filtered.po' sed -i 's/\xc3\xb3/o/g' $LNG'_filtered.po'
#replace 'é' with 'e' #replace 'é' with 'e'
sed -i 's/\xc3\xa9/e/g' $LNG'_filtered.po' sed -i 's/\xc3\xa9/e/g' $LNG'_filtered.po'
#replace 'í' with 'i' #replace 'í' with 'i'
sed -i 's/\xc3\xad/i/g' $LNG'_filtered.po' sed -i 's/\xc3\xad/i/g' $LNG'_filtered.po'
#replace '!' with '!' #replace '!' with '!'
sed -i 's/\xc2\xa1/!/g' $LNG'_filtered.po' sed -i 's/\xc2\xa1/!/g' $LNG'_filtered.po'
@ -94,37 +94,37 @@ fi
#replace in french translation https://en.wikipedia.org/wiki/French_orthography #replace in french translation https://en.wikipedia.org/wiki/French_orthography
if [ "$LNG" = "fr" ]; then if [ "$LNG" = "fr" ]; then
#replace 'á' with 'a' (right) #replace 'á' with 'a' (right)
sed -i 's/\xc3\xa1/a/g' $LNG'_filtered.po' sed -i 's/\xc3\xa1/a/g' $LNG'_filtered.po'
#replace 'Á' with 'A' (right) #replace 'Á' with 'A' (right)
sed -i 's/\xc3\x81/A/g' $LNG'_filtered.po' sed -i 's/\xc3\x81/A/g' $LNG'_filtered.po'
#replace 'à' with 'a' (left) #replace 'à' with 'a' (left)
sed -i 's/\xc3\xa0/a/g' $LNG'_filtered.po' sed -i 's/\xc3\xa0/a/g' $LNG'_filtered.po'
#replace 'À' with 'A' (left) #replace 'À' with 'A' (left)
sed -i 's/\xc3\x80/A/g' $LNG'_filtered.po' sed -i 's/\xc3\x80/A/g' $LNG'_filtered.po'
#replace 'é' with 'e' (right) #replace 'é' with 'e' (right)
sed -i 's/\xc3\xa9/e/g' $LNG'_filtered.po' sed -i 's/\xc3\xa9/e/g' $LNG'_filtered.po'
#replace 'É' with 'E' (right) #replace 'É' with 'E' (right)
sed -i 's/\xc3\x89/E/g' $LNG'_filtered.po' sed -i 's/\xc3\x89/E/g' $LNG'_filtered.po'
#replace 'è' with 'e' (left) #replace 'è' with 'e' (left)
sed -i 's/\xc3\xa8/e/g' $LNG'_filtered.po' sed -i 's/\xc3\xa8/e/g' $LNG'_filtered.po'
#replace 'È' with 'E' (left) #replace 'È' with 'E' (left)
sed -i 's/\xc3\x88/E/g' $LNG'_filtered.po' sed -i 's/\xc3\x88/E/g' $LNG'_filtered.po'
fi fi
#replace in italian translation #replace in italian translation
if [ "$LNG" = "it" ]; then if [ "$LNG" = "it" ]; then
#replace 'é' with 'e' (left) #replace 'é' with 'e' (left)
sed -i 's/\xc3\xa8/e/g' $LNG'_filtered.po' sed -i 's/\xc3\xa8/e/g' $LNG'_filtered.po'
#replace 'á' with 'a' (left) #replace 'á' with 'a' (left)
sed -i 's/\xc3\xa0/a/g' $LNG'_filtered.po' sed -i 's/\xc3\xa0/a/g' $LNG'_filtered.po'
#replace 'ó' with 'o' (left) #replace 'ó' with 'o' (left)
sed -i 's/\xc3\xb2/o/g' $LNG'_filtered.po' sed -i 's/\xc3\xb2/o/g' $LNG'_filtered.po'
#replace 'ú' with 'u' (left) #replace 'ú' with 'u' (left)
sed -i 's/\xc3\xb9/u/g' $LNG'_filtered.po' sed -i 's/\xc3\xb9/u/g' $LNG'_filtered.po'
#replace 'é' with 'e' #replace 'é' with 'e'
sed -i 's/\xc3\xa9/e/g' $LNG'_filtered.po' sed -i 's/\xc3\xa9/e/g' $LNG'_filtered.po'
#replace 'É' with 'E' (left) #replace 'É' with 'E' (left)
sed -i 's/\xc3\x88/E/g' $LNG'_filtered.po' sed -i 's/\xc3\x88/E/g' $LNG'_filtered.po'
fi fi

View File

@ -1416,8 +1416,8 @@
"Plaat" "Plaat"
# #
"Sound [assist]" "Sound [assist]"
"Geluid [assist]" "Geluid [assist]"
# #
"Steel sheets" "Steel sheets"
@ -1434,3 +1434,8 @@
# #
"Z-probe nr. [3]" "Z-probe nr. [3]"
"Z-probe nr. [3]" "Z-probe nr. [3]"
#
"Z-probe nr. [5]"
"Z-probe nr. [5]"