mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
am 69897af2: Merge "Add new locales for the spell checker." into jb-dev
* commit '69897af20db8fc0cb7cbf3d218cc1760ee200c43': Add new locales for the spell checker.
This commit is contained in:
commit
9b98c4a8ce
@ -27,6 +27,14 @@
|
|||||||
android:label="@string/subtype_generic"
|
android:label="@string/subtype_generic"
|
||||||
android:subtypeLocale="en"
|
android:subtypeLocale="en"
|
||||||
/>
|
/>
|
||||||
|
<subtype
|
||||||
|
android:label="@string/subtype_generic"
|
||||||
|
android:subtypeLocale="en_US"
|
||||||
|
/>
|
||||||
|
<subtype
|
||||||
|
android:label="@string/subtype_generic"
|
||||||
|
android:subtypeLocale="en_GB"
|
||||||
|
/>
|
||||||
<subtype
|
<subtype
|
||||||
android:label="@string/subtype_generic"
|
android:label="@string/subtype_generic"
|
||||||
android:subtypeLocale="fr"
|
android:subtypeLocale="fr"
|
||||||
@ -55,4 +63,12 @@
|
|||||||
android:label="@string/subtype_generic"
|
android:label="@string/subtype_generic"
|
||||||
android:subtypeLocale="nl"
|
android:subtypeLocale="nl"
|
||||||
/>
|
/>
|
||||||
|
<subtype
|
||||||
|
android:label="@string/subtype_generic"
|
||||||
|
android:subtypeLocale="hr"
|
||||||
|
/>
|
||||||
|
<subtype
|
||||||
|
android:label="@string/subtype_generic"
|
||||||
|
android:subtypeLocale="pt_BR"
|
||||||
|
/>
|
||||||
</spell-checker>
|
</spell-checker>
|
||||||
|
@ -102,13 +102,19 @@ public class AndroidSpellCheckerService extends SpellCheckerService
|
|||||||
// will never have any suggestions, so it makes no sense checking them.
|
// will never have any suggestions, so it makes no sense checking them.
|
||||||
mLanguageToScript = new TreeMap<String, Integer>();
|
mLanguageToScript = new TreeMap<String, Integer>();
|
||||||
mLanguageToScript.put("en", SCRIPT_LATIN);
|
mLanguageToScript.put("en", SCRIPT_LATIN);
|
||||||
|
mLanguageToScript.put("en_US", SCRIPT_LATIN);
|
||||||
|
mLanguageToScript.put("en_GB", SCRIPT_LATIN);
|
||||||
mLanguageToScript.put("fr", SCRIPT_LATIN);
|
mLanguageToScript.put("fr", SCRIPT_LATIN);
|
||||||
mLanguageToScript.put("de", SCRIPT_LATIN);
|
mLanguageToScript.put("de", SCRIPT_LATIN);
|
||||||
mLanguageToScript.put("nl", SCRIPT_LATIN);
|
mLanguageToScript.put("nl", SCRIPT_LATIN);
|
||||||
mLanguageToScript.put("cs", SCRIPT_LATIN);
|
mLanguageToScript.put("cs", SCRIPT_LATIN);
|
||||||
mLanguageToScript.put("es", SCRIPT_LATIN);
|
mLanguageToScript.put("es", SCRIPT_LATIN);
|
||||||
mLanguageToScript.put("it", SCRIPT_LATIN);
|
mLanguageToScript.put("it", SCRIPT_LATIN);
|
||||||
|
mLanguageToScript.put("hr", SCRIPT_LATIN);
|
||||||
|
mLanguageToScript.put("pt_BR", SCRIPT_LATIN);
|
||||||
mLanguageToScript.put("ru", SCRIPT_CYRILLIC);
|
mLanguageToScript.put("ru", SCRIPT_CYRILLIC);
|
||||||
|
// TODO: Make a persian proximity, and activate the Farsi subtype.
|
||||||
|
// mLanguageToScript.put("fa", SCRIPT_PERSIAN);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override public void onCreate() {
|
@Override public void onCreate() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user