From 8712ac7945c14e9c1d695bcfa2bc6a6bebcfd8b4 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Wed, 17 Apr 2013 19:26:04 +0900 Subject: [PATCH] Finalize setup wizard strings and mark as translatable Bug: 8159728 Change-Id: I9f6f04b09b2cefdb7ece76a4f3c39ab56d0c8fab --- java/res/values/strings.xml | 33 ++++++++++++------- .../latin/setup/SetupActivity.java | 10 +++--- 2 files changed, 26 insertions(+), 17 deletions(-) diff --git a/java/res/values/strings.xml b/java/res/values/strings.xml index f5e24412d..3d283de23 100644 --- a/java/res/values/strings.xml +++ b/java/res/values/strings.xml @@ -442,31 +442,40 @@ Default - + + "Welcome to %s" + + with Gesture Typing + + Get started - "Installing %s" + "Setting up %s" 1 - "Enable %s in settings." + "Enable %s" - "For security, please check \"%s\"" + "Please check \"%s\" in your Language & input settings. This will authorize it to run on your device." + + Language & input 2 - "Switch to %s." + "Switch to %s" - "Now that you've enabled %s, you can switch to it." + "Now that it's enabled, select \"%s\", one more time to activate it." + + Choose input method 3 - "Congratulations, you're all set!" + "Congratulations, you're all set!" - Configure additional languages - - Language & input - - Choose input method + Now you can type in all your favorite apps with %s. + + Configure additional languages + + Finished Show setup wizard icon diff --git a/java/src/com/android/inputmethod/latin/setup/SetupActivity.java b/java/src/com/android/inputmethod/latin/setup/SetupActivity.java index 15d0bac37..2ecd260ab 100644 --- a/java/src/com/android/inputmethod/latin/setup/SetupActivity.java +++ b/java/src/com/android/inputmethod/latin/setup/SetupActivity.java @@ -113,13 +113,13 @@ public final class SetupActivity extends Activity { // the SDK version. final TextView titleView = (TextView)findViewById(R.id.setup_title); final int appName = getApplicationInfo().labelRes; - titleView.setText(getString(R.string.setup_title, getString(appName))); + titleView.setText(getString(R.string.setup_steps_title, getString(appName))); mStepIndicatorView = (SetupStepIndicatorView)findViewById(R.id.setup_step_indicator); final SetupStep step1 = new SetupStep(findViewById(R.id.setup_step1), appName, R.string.setup_step1_title, R.string.setup_step1_instruction, - R.drawable.ic_settings_language, R.string.language_settings); + R.drawable.ic_settings_language, R.string.setup_step1_action); step1.setAction(new Runnable() { @Override public void run() { @@ -131,7 +131,7 @@ public final class SetupActivity extends Activity { final SetupStep step2 = new SetupStep(findViewById(R.id.setup_step2), appName, R.string.setup_step2_title, R.string.setup_step2_instruction, - 0 /* actionIcon */, R.string.select_input_method); + 0 /* actionIcon */, R.string.setup_step2_action); step2.setAction(new Runnable() { @Override public void run() { @@ -143,8 +143,8 @@ public final class SetupActivity extends Activity { mSetupSteps.addStep(STEP_2, step2); final SetupStep step3 = new SetupStep(findViewById(R.id.setup_step3), - appName, R.string.setup_step3_title, 0 /* instruction */, - R.drawable.sym_keyboard_language_switch, R.string.setup_step3_instruction); + appName, R.string.setup_step3_title, R.string.setup_step3_instruction, + R.drawable.sym_keyboard_language_switch, R.string.setup_step3_action); step3.setAction(new Runnable() { @Override public void run() {