mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Squashed: implemented italian transliteration
This commit is contained in:
+2
@@ -50,6 +50,7 @@ import nodomain.freeyourgadget.gadgetbridge.util.language.impl.GreekTransliterat
|
||||
import nodomain.freeyourgadget.gadgetbridge.util.language.impl.HebrewTransliterator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.util.language.impl.HungarianTransliterator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.util.language.impl.IcelandicTransliterator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.util.language.impl.ItalianTransliterator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.util.language.impl.KoreanTransliterator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.util.language.impl.LatvianTransliterator;
|
||||
import nodomain.freeyourgadget.gadgetbridge.util.language.impl.LithuanianTransliterator;
|
||||
@@ -79,6 +80,7 @@ public class LanguageUtils {
|
||||
put("hebrew", new HebrewTransliterator());
|
||||
put("hungarian", new HungarianTransliterator());
|
||||
put("icelandic", new IcelandicTransliterator());
|
||||
put("italian", new ItalianTransliterator());
|
||||
put("korean", new KoreanTransliterator());
|
||||
put("latvian", new LatvianTransliterator());
|
||||
put("lithuanian", new LithuanianTransliterator());
|
||||
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
/* Copyright (C) 2025-2026 WAPEETY
|
||||
|
||||
This file is part of Gadgetbridge.
|
||||
|
||||
Gadgetbridge is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published
|
||||
by the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Gadgetbridge is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>. */
|
||||
package nodomain.freeyourgadget.gadgetbridge.util.language.impl;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
import nodomain.freeyourgadget.gadgetbridge.util.language.SimpleTransliterator;
|
||||
|
||||
public class ItalianTransliterator extends SimpleTransliterator {
|
||||
public ItalianTransliterator() {
|
||||
super(new HashMap<Character, String>() {{
|
||||
put('à',"a'");put('á',"a'");
|
||||
put('è',"e'");put('é',"e'");
|
||||
put('ì',"i'");put('í',"i'");
|
||||
put('ò',"o'");put('ó',"o'");
|
||||
put('ù',"u'");put('ú',"u'");
|
||||
}});
|
||||
}
|
||||
}
|
||||
@@ -4686,6 +4686,7 @@
|
||||
<item>@string/ukranian</item>
|
||||
<item>@string/hungarian</item>
|
||||
<item>@string/armenian</item>
|
||||
<item>@string/italian</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="pref_transliteration_languages_values">
|
||||
@@ -4714,6 +4715,7 @@
|
||||
<item>ukranian</item>
|
||||
<item>hungarian</item>
|
||||
<item>armenian</item>
|
||||
<item>italian</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="pref_transliteration_languages_default">
|
||||
|
||||
Reference in New Issue
Block a user