summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbinji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-05 01:35:49 +0000
committerbinji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-05 01:35:49 +0000
commitddf5209ff75d2eeb5cba93152e217fec56188c89 (patch)
tree5f67e63baf4efa2ca639d7628bd5f808743d8eee
parentfaca14f13afee818cfcefd91734f44da98e91b18 (diff)
downloadchromium_src-ddf5209ff75d2eeb5cba93152e217fec56188c89.zip
chromium_src-ddf5209ff75d2eeb5cba93152e217fec56188c89.tar.gz
chromium_src-ddf5209ff75d2eeb5cba93152e217fec56188c89.tar.bz2
Revert 102834 - Revert 102806 - [Sync Setup UI] String changes. "Sync" -> "Sign In" and others.
I was asked to revert this by a sheriff on a failing mac test, but I've successfully retried, so I think it was flake. BUG=93176, 97523 TEST=manual Review URL: http://codereview.chromium.org/7977029 TBR=binji@chromium.org Review URL: http://codereview.chromium.org/8028049 TBR=binji@chromium.org Review URL: http://codereview.chromium.org/8143010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104047 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/app/generated_resources.grd29
-rw-r--r--chrome/browser/resources/options/personal_options.html4
-rw-r--r--chrome/browser/ui/webui/options/personal_options_handler.cc9
-rw-r--r--chrome/browser/ui/webui/options/stop_syncing_handler.cc3
-rw-r--r--chrome/common/url_constants.cc3
-rw-r--r--chrome/common/url_constants.h3
6 files changed, 28 insertions, 23 deletions
diff --git a/chrome/app/generated_resources.grd b/chrome/app/generated_resources.grd
index f630138..c61c96d 100644
--- a/chrome/app/generated_resources.grd
+++ b/chrome/app/generated_resources.grd
@@ -9649,12 +9649,12 @@ Keep your key file in a safe place. You will need it to create new versions of y
<!-- Sync options dialog strings -->
<if expr="not pp_ifdef('use_titlecase')">
<message name="IDS_SYNC_OPTIONS_GROUP_NAME" desc="The name of the sync group in the options dialog.">
- Sync
+ Sign in
</message>
</if>
<if expr="pp_ifdef('use_titlecase')">
<message name="IDS_SYNC_OPTIONS_GROUP_NAME" desc="In Title Case: The name of the sync group in the options dialog.">
- Sync
+ Sign In
</message>
</if>
<if expr="not pp_ifdef('use_titlecase')">
@@ -9671,19 +9671,16 @@ Keep your key file in a safe place. You will need it to create new versions of y
Everything
</message>
<message name="IDS_SYNC_OVERVIEW" desc="The message that appears in the options dialog when sync has not been set up by the user.">
- <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> securely syncs your data with your Google account.
- </message>
- <message name="IDS_SYNC_FURTHER_OVERVIEW" desc="The second message that appears in the options dialog when sync has not been set up by the user.">
- Keep everything synced or choose what data to sync from this computer.
+ Sign into <ph name="PRODUCT_NAME">$1<ex>Chrome</ex></ph> with your Google Account to save your personalized browser features to the web and access them from <ph name="PRODUCT_NAME">$1<ex>Chrome</ex></ph> on any computer. You'll also be automatically signed into your favorite Google services.
</message>
<if expr="not pp_ifdef('use_titlecase')">
<message name="IDS_SYNC_START_SYNC_BUTTON_LABEL" desc="The label that appears on the sync button in the options dialog when sync has not been set up by the user.">
- Set up sync...
+ Sign into <ph name="PRODUCT_NAME">$1<ex>Chrome</ex></ph>
</message>
</if>
<if expr="pp_ifdef('use_titlecase')">
<message name="IDS_SYNC_START_SYNC_BUTTON_LABEL" desc="In Title Case. The label that appears on the sync button in the options dialog when sync has not been set up by the user.">
- Set Up Sync...
+ Sign Into <ph name="PRODUCT_NAME">$1<ex>Chrome</ex></ph>
</message>
</if>
<message name="IDS_SYNC_SETUP_ERROR" desc="The message displayed when an unspecified but unrecoverable error occurs during sync setup.">
@@ -9696,7 +9693,7 @@ Keep your key file in a safe place. You will need it to create new versions of y
Synced as <ph name="USER_EMAIL_ADDRESS">$1<ex>foo@gmail.com</ex></ph>. Last synced: <ph name="LAST_SYNC_TIME">$2<ex>12 seconds ago</ex></ph>
</message>
<message name="IDS_SYNC_ACCOUNT_SYNCING_TO_USER" desc="The message that appears in the options dialog indicating that account is syncing to a user with the given email address.">
- Last synced as <ph name="USER_EMAIL_ADDRESS">$1<ex>foo@gmail.com</ex></ph>. Manage sync data on <ph name="BEGIN_LINK">&lt;a href="$2"&gt;</ph>Google Dashboard<ph name="END_LINK">&lt;/a&gt;.</ph>
+ Signed into <ph name="USER_EMAIL_ADDRESS">$1<ex>foo@gmail.com</ex></ph>. Manage your synced data on <ph name="BEGIN_LINK">&lt;a href="$2"&gt;</ph>Google Dashboard<ph name="END_LINK">&lt;/a&gt;.</ph>
</message>
<message name="IDS_SYNC_ACCOUNT_DETAILS_NOT_ENTERED" desc="The sync setup is underway and the user has not yet entered credentials.">
Account sign-in details are not yet entered.
@@ -9781,36 +9778,36 @@ Keep your key file in a safe place. You will need it to create new versions of y
Sign in again
</message>
<message name="IDS_SYNC_PRIVACY_DASHBOARD_LINK_LABEL" desc="The label on a link that brings users to the Google Privacy Dashboard to control sync">
- Remove synced data on Google Dashboard
+ Manage your synced data on the Google Dashboard
</message>
<message name="IDS_SYNC_CUSTOMIZE_BUTTON_LABEL" desc="The text to display on the button to customize which data types the user is syncing.">
Customize...
</message>
<if expr="not pp_ifdef('use_titlecase')">
<message name="IDS_SYNC_STOP_SYNCING_BUTTON_LABEL" desc="The text to display on the button to indicate stop syncing functionality.">
- Stop syncing this account...
+ Disconnect your Google Account
</message>
</if>
<if expr="pp_ifdef('use_titlecase')">
<message name="IDS_SYNC_STOP_SYNCING_BUTTON_LABEL" desc="In title case: the text to display on the button to indicate stop syncing functionality.">
- Stop Syncing This Account...
+ Disconnect Your Google Account
</message>
</if>
<message name="IDS_SYNC_STOP_SYNCING_CONFIRM_BUTTON_LABEL" desc="The text to display on the button to confirm the user wishes to stop syncing.">
- Stop syncing
+ Disconnect account
</message>
<if expr="not pp_ifdef('use_titlecase')">
<message name="IDS_SYNC_STOP_SYNCING_DIALOG_TITLE" desc="The title of the dialog that explains what 'stop syncing' means.">
- Stop syncing this account
+ Disconnect your Google Account
</message>
</if>
<if expr="pp_ifdef('use_titlecase')">
<message name="IDS_SYNC_STOP_SYNCING_DIALOG_TITLE" desc="In title case: the title of the dialog that explains what 'stop syncing' means.">
- Stop Syncing This Account
+ Disconnect Your Google Account
</message>
</if>
<message name="IDS_SYNC_STOP_SYNCING_EXPLANATION_LABEL" desc="The text to display below the 'Stop syncing this account' button on the options pane, explaining what the button does.">
- If you stop syncing, the data stored on this computer as well as the data stored in your Google Account will remain in both places. However, new data or changes you make to your data will not be synchronized between them.
+ By disconnecting your Google Account from <ph name="PRODUCT_NAME">$1<ex>Chrome</ex></ph>, changes to your data on this computer will no longer be synced to your Google Account. Data already stored in your Google Account will remain there.
</message>
<!-- Sync time strings -->
<message name="IDS_SYNC_TIME_NEVER" desc="Indicates that the first sync has never completed.">
diff --git a/chrome/browser/resources/options/personal_options.html b/chrome/browser/resources/options/personal_options.html
index 3309031..59ff5a7 100644
--- a/chrome/browser/resources/options/personal_options.html
+++ b/chrome/browser/resources/options/personal_options.html
@@ -22,8 +22,8 @@
<h3 i18n-content="syncSection"></h3>
<div>
<div id="sync-overview" hidden>
- <div i18n-content="syncOverview"></div>
- <div i18n-content="syncFurtherOverview"></div>
+ <span i18n-content="syncOverview"></span>
+ <a i18n-values="href:syncLearnMoreURL" i18n-content="learnMore"></a>
</div>
<div id="sync-status" hidden>
<span id="sync-status-text"></span>
diff --git a/chrome/browser/ui/webui/options/personal_options_handler.cc b/chrome/browser/ui/webui/options/personal_options_handler.cc
index 30e574d..2127495 100644
--- a/chrome/browser/ui/webui/options/personal_options_handler.cc
+++ b/chrome/browser/ui/webui/options/personal_options_handler.cc
@@ -17,6 +17,7 @@
#include "base/values.h"
#include "build/build_config.h"
#include "chrome/browser/browser_process.h"
+#include "chrome/browser/google/google_util.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_info_cache.h"
#include "chrome/browser/profiles/profile_manager.h"
@@ -78,13 +79,12 @@ void PersonalOptionsHandler::GetLocalizedValues(
"syncOverview",
l10n_util::GetStringFUTF16(IDS_SYNC_OVERVIEW,
l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)));
- localized_strings->SetString(
- "syncFurtherOverview",
- l10n_util::GetStringUTF16(IDS_SYNC_FURTHER_OVERVIEW));
localized_strings->SetString("syncSection",
l10n_util::GetStringUTF16(IDS_SYNC_OPTIONS_GROUP_NAME));
localized_strings->SetString("customizeSync",
l10n_util::GetStringUTF16(IDS_SYNC_CUSTOMIZE_BUTTON_LABEL));
+ localized_strings->SetString("syncLearnMoreURL",
+ google_util::StringAppendGoogleLocaleParam(chrome::kSyncLearnMoreURL));
localized_strings->SetString("profiles",
l10n_util::GetStringUTF16(IDS_PROFILES_OPTIONS_GROUP_NAME));
@@ -265,7 +265,8 @@ void PersonalOptionsHandler::OnStateChanged() {
is_start_stop_button_enabled = false;
} else {
start_stop_button_label =
- l10n_util::GetStringUTF16(IDS_SYNC_START_SYNC_BUTTON_LABEL);
+ l10n_util::GetStringFUTF16(IDS_SYNC_START_SYNC_BUTTON_LABEL,
+ l10n_util::GetStringUTF16(IDS_PRODUCT_NAME));
is_start_stop_button_visible = true;
is_start_stop_button_enabled = !managed;
}
diff --git a/chrome/browser/ui/webui/options/stop_syncing_handler.cc b/chrome/browser/ui/webui/options/stop_syncing_handler.cc
index 79e5568e..2aed31a 100644
--- a/chrome/browser/ui/webui/options/stop_syncing_handler.cc
+++ b/chrome/browser/ui/webui/options/stop_syncing_handler.cc
@@ -24,7 +24,8 @@ void StopSyncingHandler::GetLocalizedValues(
DictionaryValue* localized_strings) {
DCHECK(localized_strings);
localized_strings->SetString("stopSyncingExplanation",
- l10n_util::GetStringUTF16(IDS_SYNC_STOP_SYNCING_EXPLANATION_LABEL));
+ l10n_util::GetStringFUTF16(IDS_SYNC_STOP_SYNCING_EXPLANATION_LABEL,
+ l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)));
localized_strings->SetString("stopSyncingTitle",
l10n_util::GetStringUTF16(IDS_SYNC_STOP_SYNCING_DIALOG_TITLE));
localized_strings->SetString("stopSyncingConfirm",
diff --git a/chrome/common/url_constants.cc b/chrome/common/url_constants.cc
index a6859a3..e9589d6 100644
--- a/chrome/common/url_constants.cc
+++ b/chrome/common/url_constants.cc
@@ -300,6 +300,9 @@ const char kSpeechInputAboutURL[] =
const char kLearnMoreRegisterProtocolHandlerURL[] =
"http://www.google.com/support/chrome/bin/answer.py?answer=1382847";
+const char kSyncLearnMoreURL[] =
+ "http://www.google.com/support/chrome/bin/answer.py?answer=165139";
+
#if defined(OS_CHROMEOS)
const char kCloudPrintLearnMoreURL[] =
"https://www.google.com/support/chromeos/bin/topic.py?topic=29023";
diff --git a/chrome/common/url_constants.h b/chrome/common/url_constants.h
index 00d92fa..ec26e0e 100644
--- a/chrome/common/url_constants.h
+++ b/chrome/common/url_constants.h
@@ -277,6 +277,9 @@ extern const char kSpeechInputAboutURL[];
// The URL for the "Learn more" page for register protocol handler infobars.
extern const char kLearnMoreRegisterProtocolHandlerURL[];
+// The URL for the "Learn more" page for sync setup on the personal stuff page.
+extern const char kSyncLearnMoreURL[];
+
// "Debug" pages which are dangerous and not for general consumption.
extern const char* const kChromeDebugURLs[];
extern int kNumberOfChromeDebugURLs;