Commit be7407da authored by isherman@chromium.org's avatar isherman@chromium.org

Provide localizable strings for Easy Unlock success notification.

BUG=400948
TEST=none
R=tengs@chromium.org

Review URL: https://codereview.chromium.org/449673002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287986 0039d316-1c4b-4281-b951-d872f2087c98
parent d0c9d472
...@@ -14583,15 +14583,22 @@ Do you accept? ...@@ -14583,15 +14583,22 @@ Do you accept?
<!-- Easy Unlock strings --> <!-- Easy Unlock strings -->
<!-- Strings for the Easy Unlock promo notification --> <!-- Strings for the Easy Unlock promo notification -->
<message name="IDS_EASY_UNLOCK_NOTIFICATION_TITLE" desc="Title for the notification inviting the user to use the Easy Unlock feature."> <message name="IDS_EASY_UNLOCK_SETUP_NOTIFICATION_TITLE" desc="Title for the notification inviting the user to use the Easy Unlock feature.">
Easily unlock your <ph name="DEVICE_TYPE">$1<ex>Chromebook</ex></ph> Easily unlock your <ph name="DEVICE_TYPE">$1<ex>Chromebook</ex></ph>
</message> </message>
<message name="IDS_EASY_UNLOCK_NOTIFICATION_MESSAGE" desc="The body text for the notification inviting the user to use the Easy Unlock feature."> <message name="IDS_EASY_UNLOCK_SETUP_NOTIFICATION_MESSAGE" desc="The body text for the notification inviting the user to use the Easy Unlock feature.">
No need to type your password again. Use your Android phone to unlock your <ph name="DEVICE_TYPE">$1<ex>Chromebook</ex></ph> easily and securely. No need to type your password again. Use your Android phone to unlock your <ph name="DEVICE_TYPE">$1<ex>Chromebook</ex></ph> easily and securely.
</message> </message>
<message name="IDS_EASY_UNLOCK_NOTIFICATION_BUTTON_TITLE" desc="The text to show on the button in the notification inviting the user to use the Easy Unlock feature."> <message name="IDS_EASY_UNLOCK_SETUP_NOTIFICATION_BUTTON_TITLE" desc="The text to show on the button in the notification inviting the user to use the Easy Unlock feature.">
1-minute setup 1-minute setup
</message> </message>
<!-- Strings for the Easy Unlock success notification -->
<message name="IDS_EASY_UNLOCK_SUCCESS_NOTIFICATION_TITLE" desc="Title for the notification informing the user that Easy Unlock has been successfully set up.">
All set!
</message>
<message name="IDS_EASY_UNLOCK_SUCCESS_NOTIFICATION_MESSAGE" desc="The body text for the notification informing the user that Easy Unlock has been successfully set up.">
You can unlock this <ph name="DEVICE_TYPE">$1<ex>Chromebook</ex></ph> when you and your phone are nearby.
</message>
<!-- Strings for the Easy Unlock setup dialog --> <!-- Strings for the Easy Unlock setup dialog -->
<!-- Step 1: Intro --> <!-- Step 1: Intro -->
<message name="IDS_EASY_UNLOCK_SETUP_INTRO_HEADER_TITLE" desc="The text to show as the header title of the Easy Unlock dialog during the first, introductory step."> <message name="IDS_EASY_UNLOCK_SETUP_INTRO_HEADER_TITLE" desc="The text to show as the header title of the Easy Unlock dialog during the first, introductory step.">
......
...@@ -62,19 +62,31 @@ bool EasyUnlockPrivateGetStringsFunction::RunSync() { ...@@ -62,19 +62,31 @@ bool EasyUnlockPrivateGetStringsFunction::RunSync() {
// TODO(isherman): Set an appropriate device name for non-ChromeOS devices. // TODO(isherman): Set an appropriate device name for non-ChromeOS devices.
const base::string16 device_type = base::ASCIIToUTF16("Chromeschnozzle"); const base::string16 device_type = base::ASCIIToUTF16("Chromeschnozzle");
#endif // defined(OS_CHROMEOS) #endif // defined(OS_CHROMEOS)
// Setup notification strings.
strings->SetString( strings->SetString(
"notificationTitle", "setupNotificationTitle",
l10n_util::GetStringFUTF16(IDS_EASY_UNLOCK_NOTIFICATION_TITLE, l10n_util::GetStringFUTF16(IDS_EASY_UNLOCK_SETUP_NOTIFICATION_TITLE,
device_type)); device_type));
strings->SetString( strings->SetString(
"notificationMessage", "setupNotificationMessage",
l10n_util::GetStringFUTF16(IDS_EASY_UNLOCK_NOTIFICATION_MESSAGE, l10n_util::GetStringFUTF16(IDS_EASY_UNLOCK_SETUP_NOTIFICATION_MESSAGE,
device_type)); device_type));
strings->SetString( strings->SetString(
"notificationButtonTitle", "setupNotificationButtonTitle",
l10n_util::GetStringUTF16(IDS_EASY_UNLOCK_NOTIFICATION_BUTTON_TITLE)); l10n_util::GetStringUTF16(
IDS_EASY_UNLOCK_SETUP_NOTIFICATION_BUTTON_TITLE));
// Set-up dialog strings. // Success notification strings.
strings->SetString(
"successNotificationTitle",
l10n_util::GetStringUTF16(IDS_EASY_UNLOCK_SUCCESS_NOTIFICATION_TITLE));
strings->SetString(
"successNotificationMessage",
l10n_util::GetStringFUTF16(IDS_EASY_UNLOCK_SUCCESS_NOTIFICATION_MESSAGE,
device_type));
// Setup dialog strings.
// Step 1: Intro. // Step 1: Intro.
strings->SetString( strings->SetString(
"setupIntroHeaderTitle", "setupIntroHeaderTitle",
...@@ -153,6 +165,20 @@ bool EasyUnlockPrivateGetStringsFunction::RunSync() { ...@@ -153,6 +165,20 @@ bool EasyUnlockPrivateGetStringsFunction::RunSync() {
l10n_util::GetStringFUTF16( l10n_util::GetStringFUTF16(
IDS_EASY_UNLOCK_SETUP_ERROR_CONNECTING_TO_PHONE, device_type)); IDS_EASY_UNLOCK_SETUP_ERROR_CONNECTING_TO_PHONE, device_type));
// TODO(isherman): Remove these strings once the app has been updated.
strings->SetString(
"notificationTitle",
l10n_util::GetStringFUTF16(IDS_EASY_UNLOCK_SETUP_NOTIFICATION_TITLE,
device_type));
strings->SetString(
"notificationMessage",
l10n_util::GetStringFUTF16(IDS_EASY_UNLOCK_SETUP_NOTIFICATION_MESSAGE,
device_type));
strings->SetString(
"notificationButtonTitle",
l10n_util::GetStringUTF16(
IDS_EASY_UNLOCK_SETUP_NOTIFICATION_BUTTON_TITLE));
SetResult(strings.release()); SetResult(strings.release());
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment