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

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: Restore some strings 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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 void AddAccountUITweaksStrings(content::WebUIDataSource* html_source, 287 void AddAccountUITweaksStrings(content::WebUIDataSource* html_source,
288 Profile* profile) { 288 Profile* profile) {
289 base::DictionaryValue localized_values; 289 base::DictionaryValue localized_values;
290 chromeos::AddAccountUITweaksLocalizedValues(&localized_values, profile); 290 chromeos::AddAccountUITweaksLocalizedValues(&localized_values, profile);
291 html_source->AddLocalizedStrings(localized_values); 291 html_source->AddLocalizedStrings(localized_values);
292 } 292 }
293 293
294 void AddAndroidAppStrings(content::WebUIDataSource* html_source) { 294 void AddAndroidAppStrings(content::WebUIDataSource* html_source) {
295 LocalizedString localized_strings[] = { 295 LocalizedString localized_strings[] = {
296 {"androidAppsPageTitle", IDS_SETTINGS_ANDROID_APPS_TITLE}, 296 {"androidAppsPageTitle", IDS_SETTINGS_ANDROID_APPS_TITLE},
297 {"androidAppsEnabled", IDS_SETTINGS_ANDROID_APPS_ENABLE}, 297 {"androidAppsPageLabel", IDS_SETTINGS_ANDROID_APPS_LABEL},
298 {"androidAppsEnable", IDS_SETTINGS_ANDROID_APPS_ENABLE},
298 {"androidAppsManageApps", IDS_SETTINGS_ANDROID_APPS_MANAGE_APPS}, 299 {"androidAppsManageApps", IDS_SETTINGS_ANDROID_APPS_MANAGE_APPS},
300 {"androidAppsRemove", IDS_SETTINGS_ANDROID_APPS_REMOVE},
299 {"androidAppsLearnMore", IDS_SETTINGS_ANDROID_APPS_LEARN_MORE}, 301 {"androidAppsLearnMore", IDS_SETTINGS_ANDROID_APPS_LEARN_MORE},
300 {"androidAppsDisableDialogTitle", 302 {"androidAppsDisableDialogTitle",
301 IDS_SETTINGS_ANDROID_APPS_DISABLE_DIALOG_TITLE}, 303 IDS_SETTINGS_ANDROID_APPS_DISABLE_DIALOG_TITLE},
302 {"androidAppsDisableDialogMessage", 304 {"androidAppsDisableDialogRemove",
303 IDS_SETTINGS_ANDROID_APPS_DISABLE_DIALOG_MESSAGE}, 305 IDS_SETTINGS_ANDROID_APPS_DISABLE_DIALOG_REMOVE},
304 }; 306 };
305 AddLocalizedStringsBulk(html_source, localized_strings, 307 AddLocalizedStringsBulk(html_source, localized_strings,
306 arraysize(localized_strings)); 308 arraysize(localized_strings));
307 html_source->AddString("androidAppsLearnMoreUrl", 309 html_source->AddString(
308 chrome::kAndroidAppsLearnMoreURL); 310 "androidAppsSubtext",
311 l10n_util::GetStringFUTF16(
312 IDS_SETTINGS_ANDROID_APPS_SUBTEXT,
313 base::ASCIIToUTF16(chrome::kAndroidAppsLearnMoreURL)));
314 html_source->AddString(
315 "androidAppsDisableDialogMessage",
316 l10n_util::GetStringFUTF16(
317 IDS_SETTINGS_ANDROID_APPS_DISABLE_DIALOG_MESSAGE,
318 base::ASCIIToUTF16(chrome::kAndroidAppsLearnMoreURL)));
309 } 319 }
310 #endif 320 #endif
311 321
312 void AddAppearanceStrings(content::WebUIDataSource* html_source, 322 void AddAppearanceStrings(content::WebUIDataSource* html_source,
313 Profile* profile) { 323 Profile* profile) {
314 LocalizedString localized_strings[] = { 324 LocalizedString localized_strings[] = {
315 {"appearancePageTitle", IDS_SETTINGS_APPEARANCE}, 325 {"appearancePageTitle", IDS_SETTINGS_APPEARANCE},
316 {"customWebAddress", IDS_SETTINGS_CUSTOM_WEB_ADDRESS}, 326 {"customWebAddress", IDS_SETTINGS_CUSTOM_WEB_ADDRESS},
317 {"enterCustomWebAddress", IDS_SETTINGS_ENTER_CUSTOM_WEB_ADDRESS}, 327 {"enterCustomWebAddress", IDS_SETTINGS_ENTER_CUSTOM_WEB_ADDRESS},
318 {"homeButtonDisabled", IDS_SETTINGS_HOME_BUTTON_DISABLED}, 328 {"homeButtonDisabled", IDS_SETTINGS_HOME_BUTTON_DISABLED},
(...skipping 1706 matching lines...) Expand 10 before | Expand all | Expand 10 after
2025 2035
2026 #if defined(OS_CHROMEOS) 2036 #if defined(OS_CHROMEOS)
2027 chromeos::network_element::AddLocalizedStrings(html_source); 2037 chromeos::network_element::AddLocalizedStrings(html_source);
2028 #endif 2038 #endif
2029 policy_indicator::AddLocalizedStrings(html_source); 2039 policy_indicator::AddLocalizedStrings(html_source);
2030 2040
2031 html_source->SetJsonPath(kLocalizedStringsFile); 2041 html_source->SetJsonPath(kLocalizedStringsFile);
2032 } 2042 }
2033 2043
2034 } // namespace settings 2044 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698