From 915ad99886fdcb8c8366b5ab31f931940a252c2c Mon Sep 17 00:00:00 2001 From: kalaee Date: Mon, 27 Aug 2018 15:05:05 +0200 Subject: [PATCH] Added Scandinavian characters --- .../freeyourgadget/gadgetbridge/util/LanguageUtils.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/LanguageUtils.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/LanguageUtils.java index 808848eb1..201e1da1d 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/LanguageUtils.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/LanguageUtils.java @@ -30,8 +30,13 @@ public class LanguageUtils { private static Map transliterateMap = new HashMap(){ { //extended ASCII characters - put('æ', "ae"); put('œ', "oe"); put('ª', "a"); put('º', "o"); put('«',"\""); put('»',"\""); - + put('œ', "oe"); put('ª', "a"); put('º', "o"); put('«',"\""); put('»',"\""); + + // Scandinavian characters + put('Æ',"Ae"); put('æ',"ae"); + put('Ø',"Oe"); put('ø',"oe"); + put('Å',"Aa"); put('å',"aa"); + //german characters put('ä',"ae"); put('ö',"oe"); put('ü',"ue"); put('Ä',"Ae"); put('Ö',"Oe"); put('Ü',"Üe");