From f0f49f98068227ba8db56b2772165056adb4f67f Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Fri, 5 Sep 2014 11:02:22 +0900 Subject: [PATCH] Create donottranslate debug settings string resources file This is a follow up of the I26e4d292de. Bug: 15678343 Bug: 17385083 Change-Id: I2c2b08b8dd991ac981aa8f8c8436de9e4399da5f --- .../values/donottranslate-debug-settings.xml | 59 +++++++++++++++++++ java/res/values/donottranslate.xml | 7 --- java/res/values/strings.xml | 33 ----------- .../ExternalDictionaryGetterForDebug.java | 2 +- 4 files changed, 60 insertions(+), 41 deletions(-) create mode 100644 java/res/values/donottranslate-debug-settings.xml diff --git a/java/res/values/donottranslate-debug-settings.xml b/java/res/values/donottranslate-debug-settings.xml new file mode 100644 index 000000000..35e6efa77 --- /dev/null +++ b/java/res/values/donottranslate-debug-settings.xml @@ -0,0 +1,59 @@ + + + + + Android Keyboard Debug settings + Debug Mode + Force non-distinct multitouch + Force physical keyboard special key + Show UI to accept typed word + + Show slide indicator + + Display visual cue while sliding from Shift or Symbol keys + + Key long press delay + + Customize key preview animation + + Key popup show up duration + + Key popup dismiss duration + + Key popup show up start X scale + + Key popup show up start Y scale + + Key popup dismiss end X scale + + Key popup dismiss end Y scale + + Read external dictionary file + + No dictionary files in the Downloads folder + + Select a dictionary file to install + + Really install this file for %s? + + There was an error + + Dump dictionary + diff --git a/java/res/values/donottranslate.xml b/java/res/values/donottranslate.xml index b25a20803..c54b995f8 100644 --- a/java/res/values/donottranslate.xml +++ b/java/res/values/donottranslate.xml @@ -22,13 +22,6 @@ See {@link SettingsValues#needsToShowVoiceInputKey(SharedPreferences,Resources)} --> 0 - - Android Keyboard Debug settings - Debug Mode - Force non-distinct multitouch - Force physical keyboard special key - Show UI to accept typed word - Show when multiple input languages are enabled - - Show slide indicator - - Display visual cue while sliding from Shift or Symbol keys - Key popup dismiss delay @@ -325,38 +320,10 @@ mobile devices. [CHAR LIMIT=25] --> "The same input style already exists: %s" - - Key long press delay Keypress vibration duration Keypress sound volume - - Customize key preview animation - - Key popup show up duration - - Key popup dismiss duration - - Key popup show up start X scale - - Key popup show up start Y scale - - Key popup dismiss end X scale - - Key popup dismiss end Y scale - - Read external dictionary file - - No dictionary files in the Downloads folder - - Select a dictionary file to install - - Really install this file for %s? - - There was an error - - Dump dictionary Default diff --git a/java/src/com/android/inputmethod/latin/debug/ExternalDictionaryGetterForDebug.java b/java/src/com/android/inputmethod/latin/debug/ExternalDictionaryGetterForDebug.java index 7071d8689..a87785b1a 100644 --- a/java/src/com/android/inputmethod/latin/debug/ExternalDictionaryGetterForDebug.java +++ b/java/src/com/android/inputmethod/latin/debug/ExternalDictionaryGetterForDebug.java @@ -168,7 +168,7 @@ public class ExternalDictionaryGetterForDebug { } catch (IOException e) { // There was an error: show a dialog new AlertDialog.Builder(DialogUtils.getPlatformDialogThemeContext(context)) - .setTitle(R.string.error) + .setTitle(R.string.read_external_dictionary_error) .setMessage(e.toString()) .setPositiveButton(android.R.string.ok, new OnClickListener() { @Override