Commit f40c9b3c authored by Thomas Tangl's avatar Thomas Tangl Committed by Commit Bot

[profile-menu] Update strings

- The sync error description is set to either:
  "Sync is paused" or "Sync isn't working"
- The sync button (no error) is changed to "Sync is on"
- The bottom heading is changed to "Other people"

Bug: 995720
Change-Id: I0f329462773f76c50d44fd178835474c01757b41
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1849898
Auto-Submit: Thomas Tangl <tangltom@chromium.org>
Reviewed-by: default avatarDavid Roger <droger@chromium.org>
Commit-Queue: Thomas Tangl <tangltom@chromium.org>
Cr-Commit-Position: refs/heads/master@{#704603}
parent 05d2f46a
...@@ -84,6 +84,9 @@ ...@@ -84,6 +84,9 @@
<message name="IDS_PROFILES_SYNC_COMPLETE_TITLE" desc="Title of the profile card when sync is complete."> <message name="IDS_PROFILES_SYNC_COMPLETE_TITLE" desc="Title of the profile card when sync is complete.">
Syncing to Syncing to
</message> </message>
<message name="IDS_PROFILES_OPEN_SYNC_SETTINGS_BUTTON" desc="Button in the profile menu to open sync settings when sync is on.">
Sync is on
</message>
<message name="IDS_PROFILES_DICE_SIGNIN_BUTTON" desc="Button in the profile user menu to sign in and turn on Sync."> <message name="IDS_PROFILES_DICE_SIGNIN_BUTTON" desc="Button in the profile user menu to sign in and turn on Sync.">
Turn on sync... Turn on sync...
</message> </message>
...@@ -118,6 +121,9 @@ ...@@ -118,6 +121,9 @@
Addresses and more Addresses and more
</message> </message>
<if expr="not use_titlecase"> <if expr="not use_titlecase">
<message name="IDS_PROFILES_OTHER_PROFILES_TITLE" desc="Title in the profile menu of the 'other profiles' section.">
Other people
</message>
<message name="IDS_PROFILES_PROFILE_MANAGE_ACCOUNTS_BUTTON" desc="Button in the avatar menu bubble view used to manage accounts for a profile."> <message name="IDS_PROFILES_PROFILE_MANAGE_ACCOUNTS_BUTTON" desc="Button in the avatar menu bubble view used to manage accounts for a profile.">
Your accounts Your accounts
</message> </message>
...@@ -135,6 +141,9 @@ ...@@ -135,6 +141,9 @@
</message> </message>
</if> </if>
<if expr="use_titlecase"> <if expr="use_titlecase">
<message name="IDS_PROFILES_OTHER_PROFILES_TITLE" desc="Title in the profile menu of the 'other profiles' section.">
Other People
</message>
<message name="IDS_PROFILES_PROFILE_MANAGE_ACCOUNTS_BUTTON" desc="Button in the avatar menu bubble view used to manage accounts for a profile."> <message name="IDS_PROFILES_PROFILE_MANAGE_ACCOUNTS_BUTTON" desc="Button in the avatar menu bubble view used to manage accounts for a profile.">
Your Accounts Your Accounts
</message> </message>
......
...@@ -517,27 +517,25 @@ void ProfileMenuView::BuildSyncInfo() { ...@@ -517,27 +517,25 @@ void ProfileMenuView::BuildSyncInfo() {
sync_ui_util::AvatarSyncErrorType error = sync_ui_util::AvatarSyncErrorType error =
sync_ui_util::GetMessagesForAvatarSyncError( sync_ui_util::GetMessagesForAvatarSyncError(
browser()->profile(), &description_string_id, &button_string_id); browser()->profile(), &description_string_id, &button_string_id);
switch (error) {
case sync_ui_util::NO_SYNC_ERROR: if (error == sync_ui_util::NO_SYNC_ERROR) {
SetSyncInfo( SetSyncInfo(
GetSyncIcon(), GetSyncIcon(),
/*description=*/base::string16(), /*description=*/base::string16(),
l10n_util::GetStringUTF16(IDS_SETTINGS_SYNC_ADVANCED_PAGE_TITLE), l10n_util::GetStringUTF16(IDS_PROFILES_OPEN_SYNC_SETTINGS_BUTTON),
base::BindRepeating(&ProfileMenuView::OnSyncSettingsButtonClicked, base::BindRepeating(&ProfileMenuView::OnSyncSettingsButtonClicked,
base::Unretained(this))); base::Unretained(this)));
break; } else {
case sync_ui_util::MANAGED_USER_UNRECOVERABLE_ERROR: // Overwrite error description with short version for the menu.
case sync_ui_util::UNRECOVERABLE_ERROR: description_string_id = (error == sync_ui_util::AUTH_ERROR)
case sync_ui_util::UPGRADE_CLIENT_ERROR: ? IDS_PROFILES_DICE_SYNC_PAUSED_TITLE
case sync_ui_util::PASSPHRASE_ERROR: : IDS_SYNC_ERROR_USER_MENU_TITLE;
case sync_ui_util::SETTINGS_UNCONFIRMED_ERROR:
case sync_ui_util::AUTH_ERROR: SetSyncInfo(
SetSyncInfo( GetSyncIcon(), l10n_util::GetStringUTF16(description_string_id),
GetSyncIcon(), l10n_util::GetStringUTF16(description_string_id), l10n_util::GetStringUTF16(button_string_id),
l10n_util::GetStringUTF16(button_string_id), base::BindRepeating(&ProfileMenuView::OnSyncErrorButtonClicked,
base::BindRepeating(&ProfileMenuView::OnSyncErrorButtonClicked, base::Unretained(this), error));
base::Unretained(this), error));
break;
} }
return; return;
} }
...@@ -594,7 +592,8 @@ void ProfileMenuView::BuildAccountFeatureButtons() { ...@@ -594,7 +592,8 @@ void ProfileMenuView::BuildAccountFeatureButtons() {
} }
void ProfileMenuView::BuildProfileHeading() { void ProfileMenuView::BuildProfileHeading() {
SetProfileHeading(l10n_util::GetStringUTF16(IDS_PROFILES_OPTIONS_GROUP_NAME)); SetProfileHeading(
l10n_util::GetStringUTF16(IDS_PROFILES_OTHER_PROFILES_TITLE));
} }
void ProfileMenuView::BuildSelectableProfiles() { void ProfileMenuView::BuildSelectableProfiles() {
......
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