From 77df13b60062cb342cbeb19cb3ec041bfdec60a5 Mon Sep 17 00:00:00 2001 From: Robert Pelnar Date: Wed, 21 Nov 2018 14:40:35 +0100 Subject: [PATCH] Lang - import script fix - replace '\n' with space in all languages --- lang/lang-import.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lang/lang-import.sh b/lang/lang-import.sh index 57c61283..6176e053 100644 --- a/lang/lang-import.sh +++ b/lang/lang-import.sh @@ -23,6 +23,9 @@ fi #convert '\\e' sequencies to 'x1b' and '\\' to '\' cat $LNGISO.po | sed 's/\\e/\\x1b/g;s/\\\\/\\/g' > $LNG'_filtered.po' +#replace '\n' with ' ' (single space) +sed -i 's/ \\n/ /g;s/\\n/ /g' $LNG'_filtered.po' + #replace in czech translation if [ "$LNG" = "cz" ]; then #replace 'ž' with 'z' @@ -43,8 +46,6 @@ fi #replace in german translation if [ "$LNG" = "de" ]; then - #replace '\n' with ' ' (single space) - sed -i 's/ \\n/ /g;s/\\n/ /g' $LNG'_filtered.po' #replace 'ä' with 'ae' sed -i 's/\xc3\xa4/ae/g' $LNG'_filtered.po' #replace 'ü' with 'ue' @@ -73,8 +74,6 @@ fi #replace in french translation if [ "$LNG" = "fr" ]; then - #replace '\n' with ' ' (single space) - sed -i 's/ \\n/ /g;s/\\n/ /g' $LNG'_filtered.po' #replace 'é' with 'e' sed -i 's/\xc3\xa9/e/g' $LNG'_filtered.po' #replace 'É' with 'E'