From b05f6e84475d2c6fcc2d400efbc5882b9fcc38e2 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Thu, 30 Dec 2021 21:37:34 +0100 Subject: [PATCH] Simplify string definitions Inline constants in settings.xml, strings.xml is only for strings that can be translated. --- res/values/arrays.xml | 7 +++++-- res/values/strings.xml | 16 +--------------- res/xml/method.xml | 10 +++++----- res/xml/settings.xml | 18 +++++++++--------- 4 files changed, 20 insertions(+), 31 deletions(-) diff --git a/res/values/arrays.xml b/res/values/arrays.xml index ae5fbd6..d8c83f1 100644 --- a/res/values/arrays.xml +++ b/res/values/arrays.xml @@ -5,7 +5,11 @@ azerty qwerty - 1 + + @string/pref_layout_e_system + AZERTY + QWERTY + @string/pref_accents_e_all_installed @string/pref_accents_e_selected @@ -23,7 +27,6 @@ @string/pref_theme_e_light @string/pref_theme_e_black - dark dark light diff --git a/res/values/strings.xml b/res/values/strings.xml index 36019ca..b41fdc5 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -2,17 +2,10 @@ Unexpected Keyboard Unexpected Keyboard Settings - %s Layout Change keyboard layout - %s - - System settings - Azerty - Qwerty - + System settings Accents - %s Show accents for all the installed languages Show accents for the selected language Show every accents @@ -21,27 +14,20 @@ Precision Distance of corner values (%spx) Long press timeout - %sms Long press interval - %sms Vibration Vibration Enable/Disable vibrations on key down Duration - %sms Precise cursor movements Modulate the speed of movements by swiping more or less Style Margin bottom - %sdp Key height - %sdp Horizontal margin - %sdp Label size Size of characters displayed on the keyboard (%.2fx) Theme - %s Dark Light Black diff --git a/res/xml/method.xml b/res/xml/method.xml index 30097e2..4aa79df 100644 --- a/res/xml/method.xml +++ b/res/xml/method.xml @@ -1,8 +1,8 @@ - - - - - + + + + + diff --git a/res/xml/settings.xml b/res/xml/settings.xml index 8561717..94c96d6 100644 --- a/res/xml/settings.xml +++ b/res/xml/settings.xml @@ -1,24 +1,24 @@ - - + + - - + + - + - - - - + + + +