Fixes the naming in the About page of CrOS.

Introduces a new constant IDS_SHORT_PRODUCT_OS_NAME (i.e., Chrome OS), and changes the old constant IDS_PRODUCT_OS_NAME to be the full name (i.e., Google Chrome OS) to remain in sync with the other string names. Changes previous references to IDS_PRODUCT_OS_NAME to IDS_SHORT_PRODUCT_OS_NAME.

BUG=122645
TEST=look at help page on CrOS and see that text says Google Chrome OS


Review URL: https://chromiumcodereview.appspot.com/10388120

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137195 0039d316-1c4b-4281-b951-d872f2087c98
parent c5f311e8
......@@ -215,6 +215,9 @@ be available for now. -->
<message name="IDS_PRODUCT_OS_NAME" desc="The Chrome OS application name">
Chromium OS
</message>
<message name="IDS_SHORT_PRODUCT_OS_NAME" desc="The Chrome OS application short name">
Chromium OS
</message>
</if>
<if expr="is_win">
<message name="IDS_PRODUCT_FRAME_NAME" desc="The Chrome Frame application name">
......
......@@ -136,6 +136,9 @@ Chrome supports. -->
</message>
<if expr="pp_ifdef('chromeos')">
<message name="IDS_PRODUCT_OS_NAME" desc="The Chrome OS application name">
Google Chrome OS
</message>
<message name="IDS_SHORT_PRODUCT_OS_NAME" desc="The Chrome OS application short name">
Chrome OS
</message>
</if>
......
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
......@@ -124,7 +124,7 @@ void NetworkScreen::OnConnectionTimeout() {
actor_->ShowError(
l10n_util::GetStringFUTF16(
IDS_NETWORK_SELECTION_ERROR,
l10n_util::GetStringUTF16(IDS_PRODUCT_OS_NAME),
l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_OS_NAME),
network_id_));
}
}
......
......@@ -99,7 +99,7 @@ void WebUILoginDisplay::ShowError(int error_msg_id,
switch (error_msg_id) {
case IDS_LOGIN_ERROR_AUTHENTICATING_HOSTED:
error_text = l10n_util::GetStringFUTF8(
error_msg_id, l10n_util::GetStringUTF16(IDS_PRODUCT_OS_NAME));
error_msg_id, l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_OS_NAME));
break;
case IDS_LOGIN_ERROR_CAPTIVE_PORTAL:
error_text = l10n_util::GetStringFUTF8(
......
......@@ -32,7 +32,7 @@ void UpdateRecommendedMessageBox::Show(gfx::NativeWindow parent_window) {
UpdateRecommendedMessageBox::UpdateRecommendedMessageBox() {
const int kDialogWidth = 400;
#if defined(OS_CHROMEOS)
const int kProductNameID = IDS_PRODUCT_OS_NAME;
const int kProductNameID = IDS_SHORT_PRODUCT_OS_NAME;
#else
const int kProductNameID = IDS_PRODUCT_NAME;
#endif
......
......@@ -124,7 +124,11 @@ void HelpHandler::GetLocalizedValues(DictionaryValue* localized_strings) {
static L10nResources resources[] = {
{ "helpTitle", IDS_HELP_TITLE },
{ "aboutTitle", IDS_ABOUT_TAB_TITLE },
#if defined(OS_CHROMEOS)
{ "aboutProductTitle", IDS_PRODUCT_OS_NAME },
#else
{ "aboutProductTitle", IDS_PRODUCT_NAME },
#endif
{ "aboutProductDescription", IDS_ABOUT_PRODUCT_DESCRIPTION },
{ "relaunch", IDS_RELAUNCH_BUTTON },
{ "productName", IDS_PRODUCT_NAME },
......
......@@ -205,7 +205,7 @@ ListValue* CrosLanguageOptionsHandler::GetLanguageList(
}
string16 CrosLanguageOptionsHandler::GetProductName() {
return l10n_util::GetStringUTF16(IDS_PRODUCT_OS_NAME);
return l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_OS_NAME);
}
void CrosLanguageOptionsHandler::SetApplicationLocale(
......
......@@ -91,9 +91,9 @@ ChromeWebUIDataSource* CreateUberFrameHTMLSource(Profile* profile) {
source->add_resource_path("uber_frame.js", IDR_UBER_FRAME_JS);
source->set_default_resource(IDR_UBER_FRAME_HTML);
// TODO(jhawkins): Attempt to get rid of IDS_PRODUCT_OS_NAME.
// TODO(jhawkins): Attempt to get rid of IDS_SHORT_PRODUCT_OS_NAME.
#if defined(OS_CHROMEOS)
source->AddLocalizedString("shortProductName", IDS_PRODUCT_OS_NAME);
source->AddLocalizedString("shortProductName", IDS_SHORT_PRODUCT_OS_NAME);
#else
source->AddLocalizedString("shortProductName", IDS_SHORT_PRODUCT_NAME);
#endif // defined(OS_CHROMEOS)
......
......@@ -119,7 +119,7 @@ std::string VersionInfo::OSType() const {
return "Mac OS X";
#elif defined(OS_CHROMEOS)
if (ui::ResourceBundle::HasSharedInstance())
return UTF16ToASCII(l10n_util::GetStringUTF16(IDS_PRODUCT_OS_NAME));
return UTF16ToASCII(l10n_util::GetStringUTF16(IDS_SHORT_PRODUCT_OS_NAME));
else
return "Chromium OS";
#elif defined(OS_LINUX)
......
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