From 9ab99ccff052880360187755df6eb3fe12ec6639 Mon Sep 17 00:00:00 2001 From: jahorton Date: Mon, 22 Jul 2019 09:20:03 +0700 Subject: [PATCH] 'Model' -> 'Dictionary' in Android UI --- .../kMAPro/src/main/res/values/strings.xml | 1 + .../tavultesoft/kmea/ModelInfoActivity.java | 2 +- .../tavultesoft/kmea/ModelPickerActivity.java | 4 ++-- .../KMEA/app/src/main/res/values/strings.xml | 23 +++++++++++-------- 4 files changed, 17 insertions(+), 13 deletions(-) diff --git a/android/KMAPro/kMAPro/src/main/res/values/strings.xml b/android/KMAPro/kMAPro/src/main/res/values/strings.xml index bb2f404c1d..03b0dbc21f 100644 --- a/android/KMAPro/kMAPro/src/main/res/values/strings.xml +++ b/android/KMAPro/kMAPro/src/main/res/values/strings.xml @@ -34,6 +34,7 @@ More info Show \"Get Started\" on startup + Settings Installed languages diff --git a/android/KMEA/app/src/main/java/com/tavultesoft/kmea/ModelInfoActivity.java b/android/KMEA/app/src/main/java/com/tavultesoft/kmea/ModelInfoActivity.java index 885dfd980a..198f19cec3 100644 --- a/android/KMEA/app/src/main/java/com/tavultesoft/kmea/ModelInfoActivity.java +++ b/android/KMEA/app/src/main/java/com/tavultesoft/kmea/ModelInfoActivity.java @@ -67,7 +67,7 @@ public final class ModelInfoActivity extends AppCompatActivity { final TextView textView = (TextView) findViewById(R.id.bar_title); final String modelName = getIntent().getStringExtra(KMManager.KMKey_LexicalModelName); - textView.setText(String.format("%s model", modelName)); + textView.setText(String.format(getString(R.string.model_info_header), modelName)); if (titleFont != null) textView.setTypeface(titleFont, Typeface.BOLD); diff --git a/android/KMEA/app/src/main/java/com/tavultesoft/kmea/ModelPickerActivity.java b/android/KMEA/app/src/main/java/com/tavultesoft/kmea/ModelPickerActivity.java index 152dcfdf76..9765d3280f 100644 --- a/android/KMEA/app/src/main/java/com/tavultesoft/kmea/ModelPickerActivity.java +++ b/android/KMEA/app/src/main/java/com/tavultesoft/kmea/ModelPickerActivity.java @@ -68,7 +68,7 @@ public final class ModelPickerActivity extends AppCompatActivity { languageID = newLanguageID; final String languageName = bundle.getString(KMManager.KMKey_LanguageName); - textView.setText(String.format("%s model", languageName)); + textView.setText(String.format(getString(R.string.model_picker_header), languageName)); listView = (ListView) findViewById(R.id.listView); listView.setFastScrollEnabled(true); @@ -135,7 +135,7 @@ public final class ModelPickerActivity extends AppCompatActivity { modelInfo.put(KMManager.KMKey_CustomHelpLink, ""); boolean result = KMManager.addLexicalModel(context, new HashMap<>(modelInfo)); if (result) { - Toast.makeText(context, "Model installed", Toast.LENGTH_SHORT).show(); + Toast.makeText(context, getString(R.string.model_install_toast), Toast.LENGTH_SHORT).show(); } immediateRegister = true; diff --git a/android/KMEA/app/src/main/res/values/strings.xml b/android/KMEA/app/src/main/res/values/strings.xml index 7af154ba9c..698fc4c9f7 100644 --- a/android/KMEA/app/src/main/res/values/strings.xml +++ b/android/KMEA/app/src/main/res/values/strings.xml @@ -30,14 +30,14 @@ - Getting keyboard and model catalog.\nThis may take a while… + Getting keyboard and dictionary catalogs.\nThis may take a while… Cannot connect to Keyman server! Checking keyboard updates… Would you like to delete this keyboard? Would you like to download this keyboard? - Would you like to update keyboards and models now? + Would you like to update keyboards and dictionaries now? Custom Keyboard Downloading keyboard… Warning: Font failed to download @@ -52,10 +52,10 @@ Uninstall keyboard - Getting lexical model catalog.\nThis may take a while… - Would you like to download this model? - Checking to download model… - Downloading model… + Getting dictionary catalog.\nThis may take a while… + Would you like to download this dictionary? + Checking to download dictionary… + Downloading dictionary… The resource catalog is unavailable\n @@ -63,15 +63,18 @@ "All resources are up to date!" - Model version - Uninstall model - Would you like to delete this model? + Dictionary version + Uninstall dictionary + Would you like to delete this dictionary? Enable corrections Enable predictions - Model + Dictionary + Dictionary: %s + %s dictionaries Manage dictionary + Dictionary installed (1 keyboard) (%d keyboards)