Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Side by Side Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 2785013003: MD Settings: Google Play Store: Add subpage and polish (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide r.h" 5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide r.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/i18n/number_formatting.h" 10 #include "base/i18n/number_formatting.h"
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 void AddAccountUITweaksStrings(content::WebUIDataSource* html_source, 284 void AddAccountUITweaksStrings(content::WebUIDataSource* html_source,
285 Profile* profile) { 285 Profile* profile) {
286 base::DictionaryValue localized_values; 286 base::DictionaryValue localized_values;
287 chromeos::AddAccountUITweaksLocalizedValues(&localized_values, profile); 287 chromeos::AddAccountUITweaksLocalizedValues(&localized_values, profile);
288 html_source->AddLocalizedStrings(localized_values); 288 html_source->AddLocalizedStrings(localized_values);
289 } 289 }
290 290
291 void AddAndroidAppStrings(content::WebUIDataSource* html_source) { 291 void AddAndroidAppStrings(content::WebUIDataSource* html_source) {
292 LocalizedString localized_strings[] = { 292 LocalizedString localized_strings[] = {
293 {"androidAppsPageTitle", IDS_SETTINGS_ANDROID_APPS_TITLE}, 293 {"androidAppsPageTitle", IDS_SETTINGS_ANDROID_APPS_TITLE},
294 {"androidAppsEnabled", IDS_SETTINGS_ANDROID_APPS_ENABLE}, 294 {"androidAppsEnable", IDS_SETTINGS_ANDROID_APPS_ENABLE},
295 {"androidAppsManageApps", IDS_SETTINGS_ANDROID_APPS_MANAGE_APPS}, 295 {"androidAppsManageApps", IDS_SETTINGS_ANDROID_APPS_MANAGE_APPS},
296 {"androidAppsRemove", IDS_SETTINGS_ANDROID_APPS_REMOVE},
296 {"androidAppsLearnMore", IDS_SETTINGS_ANDROID_APPS_LEARN_MORE}, 297 {"androidAppsLearnMore", IDS_SETTINGS_ANDROID_APPS_LEARN_MORE},
297 {"androidAppsDisableDialogTitle", 298 {"androidAppsDisableDialogTitle",
298 IDS_SETTINGS_ANDROID_APPS_DISABLE_DIALOG_TITLE}, 299 IDS_SETTINGS_ANDROID_APPS_DISABLE_DIALOG_TITLE},
299 {"androidAppsDisableDialogMessage",
300 IDS_SETTINGS_ANDROID_APPS_DISABLE_DIALOG_MESSAGE},
301 }; 300 };
302 AddLocalizedStringsBulk(html_source, localized_strings, 301 AddLocalizedStringsBulk(html_source, localized_strings,
303 arraysize(localized_strings)); 302 arraysize(localized_strings));
304 html_source->AddString("androidAppsLearnMoreUrl", 303 html_source->AddString(
305 chrome::kAndroidAppsLearnMoreURL); 304 "androidAppsSubtext",
305 l10n_util::GetStringFUTF16(
306 IDS_SETTINGS_ANDROID_APPS_SUBTEXT,
307 base::ASCIIToUTF16(chrome::kAndroidAppsLearnMoreURL)));
308 html_source->AddString(
309 "androidAppsDisableDialogMessage",
310 l10n_util::GetStringFUTF16(
311 IDS_SETTINGS_ANDROID_APPS_DISABLE_DIALOG_MESSAGE,
312 base::ASCIIToUTF16(chrome::kAndroidAppsLearnMoreURL)));
306 } 313 }
307 #endif 314 #endif
308 315
309 void AddAppearanceStrings(content::WebUIDataSource* html_source, 316 void AddAppearanceStrings(content::WebUIDataSource* html_source,
310 Profile* profile) { 317 Profile* profile) {
311 LocalizedString localized_strings[] = { 318 LocalizedString localized_strings[] = {
312 {"appearancePageTitle", IDS_SETTINGS_APPEARANCE}, 319 {"appearancePageTitle", IDS_SETTINGS_APPEARANCE},
313 {"customWebAddress", IDS_SETTINGS_CUSTOM_WEB_ADDRESS}, 320 {"customWebAddress", IDS_SETTINGS_CUSTOM_WEB_ADDRESS},
314 {"enterCustomWebAddress", IDS_SETTINGS_ENTER_CUSTOM_WEB_ADDRESS}, 321 {"enterCustomWebAddress", IDS_SETTINGS_ENTER_CUSTOM_WEB_ADDRESS},
315 {"homeButtonDisabled", IDS_SETTINGS_HOME_BUTTON_DISABLED}, 322 {"homeButtonDisabled", IDS_SETTINGS_HOME_BUTTON_DISABLED},
(...skipping 1702 matching lines...) Expand 10 before | Expand all | Expand 10 after
2018 2025
2019 #if defined(OS_CHROMEOS) 2026 #if defined(OS_CHROMEOS)
2020 chromeos::network_element::AddLocalizedStrings(html_source); 2027 chromeos::network_element::AddLocalizedStrings(html_source);
2021 #endif 2028 #endif
2022 policy_indicator::AddLocalizedStrings(html_source); 2029 policy_indicator::AddLocalizedStrings(html_source);
2023 2030
2024 html_source->SetJsonPath(kLocalizedStringsFile); 2031 html_source->SetJsonPath(kLocalizedStringsFile);
2025 } 2032 }
2026 2033
2027 } // namespace settings 2034 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698