From 087b545e0f4d22132071bc01d49cde434d9fefa0 Mon Sep 17 00:00:00 2001 From: 3d-gussner <3d.gussner@gmail.com> Date: Tue, 22 Feb 2022 06:58:37 +0100 Subject: [PATCH] =?UTF-8?q?Add=20Swedish=20to=20use=20`=C3=A4=C3=B6=C3=BC?= =?UTF-8?q?=C3=9F`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lang/lang-export.sh | 2 +- lang/lang-import.sh | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lang/lang-export.sh b/lang/lang-export.sh index 6c9ff2e62..4fba62031 100755 --- a/lang/lang-export.sh +++ b/lang/lang-export.sh @@ -195,7 +195,7 @@ sync sed -i 's/$/\r/' $OUTFILE #replace HD44780 A00 'äöüß' to UTF-8 'äöüß' -if [ "$LNG" = "de" ]; then +if [[ "$LNG" = "de" || "$LNG" = "sv" ]]; then #replace 'A00 ROM ä' with 'ä' sed -i 's/\\xe1/\xc3\xa4/g' $OUTFILE #replace 'A00 ROM ü' with 'ü' diff --git a/lang/lang-import.sh b/lang/lang-import.sh index c6f85d47f..4ea6feaf4 100755 --- a/lang/lang-import.sh +++ b/lang/lang-import.sh @@ -149,8 +149,9 @@ if [ "$LNG" = "cz" ]; then sed -i 's/\xc5\xbe/z/g' $LNG'_filtered.po' fi -#replace in german translation https://en.wikipedia.org/wiki/German_orthography -if [ "$LNG" = "de" ]; then +#replace in German translation https://en.wikipedia.org/wiki/German_orthography +#replace in Swedish as well +if [[ "$LNG" = "de" || "$LNG" = "sv" ]]; then #replace UTF-8 'äöüß' to HD44780 A00 'äöüß' #replace 'ä' with 'A00 ROM ä' sed -i 's/\xc3\xa4/\\xe1/g' $LNG'_filtered.po'