Procházet zdrojové kódy

Add Swedish to use `äöüß`

3d-gussner před 3 roky
rodič
revize
087b545e0f
2 změnil soubory, kde provedl 4 přidání a 3 odebrání
  1. 1 1
      lang/lang-export.sh
  2. 3 2
      lang/lang-import.sh

+ 1 - 1
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 'ü'

+ 3 - 2
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'