mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-27 04:07:10 +00:00
Use language tags (#445)
WARNING: due to renames, your existing user history and blacklist files might not be used after this commit. If you build the app with this commit, backup and restore settings ot fix it. Use language tags for identifying a string locale, not Locale.toString. This allows to avoid issues with non-default scripts, e.g. we can now use `sr-Latn` instead of the `sr_ZZ` workaround. Existing files are not renamed, but rename will happen when restoring backups. Most of the occurrences of a locale string have been replaced with Locale where possible. One notable exception is in user dictionary settings, where the locale string must be used to retrieve contents from system personal dictionary. Internal script IDs are switched to string as used in language tags, e.g. Latn for latin. This allows for correct interpretation of a Locale with explicitly specified script.
This commit is contained in:
parent
93dfecfe9e
commit
ac7fb752df
150 changed files with 1446 additions and 1909 deletions
|
@ -451,10 +451,10 @@
|
|||
This isn't based on the final specification.
|
||||
Was disabled because there is no LM yet, and this layout does not offer anything different. -->
|
||||
<subtype android:icon="@drawable/ic_ime_switcher"
|
||||
android:label="@string/subtype_hi_ZZ"
|
||||
android:label="@string/subtype_hi_Latn"
|
||||
android:subtypeId="0x352eb37c"
|
||||
android:imeSubtypeLocale="hi_ZZ"
|
||||
android:languageTag="hi-ZZ"
|
||||
android:languageTag="hi-Latn"
|
||||
android:imeSubtypeMode="keyboard"
|
||||
android:imeSubtypeExtraValue="AsciiCapable,EmojiCapable"
|
||||
android:isAsciiCapable="true"
|
||||
|
@ -817,7 +817,7 @@
|
|||
<!-- This Serbian Latin keyboard is a preliminary layout.
|
||||
This isn't based on the final specification. -->
|
||||
<subtype android:icon="@drawable/ic_ime_switcher"
|
||||
android:label="@string/subtype_sr_ZZ"
|
||||
android:label="@string/subtype_sr_Latn"
|
||||
android:subtypeId="0xf4a5569c"
|
||||
android:imeSubtypeLocale="sr_ZZ"
|
||||
android:languageTag="sr-Latn"
|
||||
|
@ -895,7 +895,7 @@
|
|||
android:label="@string/subtype_generic"
|
||||
android:subtypeId="0xf08285ef"
|
||||
android:imeSubtypeLocale="tl"
|
||||
android:languageTag="fil"
|
||||
android:languageTag="tl"
|
||||
android:imeSubtypeMode="keyboard"
|
||||
android:imeSubtypeExtraValue="KeyboardLayoutSet=qwerty+,AsciiCapable,EmojiCapable"
|
||||
android:isAsciiCapable="true"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue