From d3ddf8d9d2db43aad5d4ac504310703b3aaa0971 Mon Sep 17 00:00:00 2001 From: Helium314 Date: Thu, 11 Apr 2024 22:52:38 +0200 Subject: [PATCH] update layouts.md --- layouts.md | 1 + 1 file changed, 1 insertion(+) diff --git a/layouts.md b/layouts.md index 0adfd058c..066fee84c 100644 --- a/layouts.md +++ b/layouts.md @@ -65,3 +65,4 @@ Some special key labels will be implemented, most are already working in the (cu * `[extra_keys]` are typically keys shown in the default layout of the language. This is currently only used for latin layouts to avoid duplicating layouts for just adding few keys on the right side. The layout name need to end with `+`, but the `+` is removed when looking up the actual layout. * If you add a new language for which Android does not have a display name, it will be displayed using the language tag * Avoiding this currently is more complicated than necessary: add the language tag to [LocaleUtils.getLocaleDisplayNameInSystemLocale](/app/src/main/java/helium314/keyboard/latin/common/LocaleUtils.kt#L181) to have an exception, and add a string named `subtype_` to [`strings.xml`](/app/src/main/res/values/strings.xml). Further you may need to add a `subtype_in_root_locale_` to [donottranslate.xml](/app/src/main/res/values/donottranslate.xml), and add the language tag to `subtype_locale_exception_keys` and `subtype_locale_displayed_in_root_locale`. +* If a newly added language does not use latin script, please update the default scripts method `Locale.script` in [ScriptUtils](app/src/main/java/helium314/keyboard/latin/utils/ScriptUtils.kt)