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

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

Issue 2796783005: MD Settings: Google Play Store: Add subpage and polish (Take 2) (Closed)
Patch Set: nit 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 {"androidAppsDisableDialogMessage",
303 IDS_SETTINGS_ANDROID_APPS_DISABLE_DIALOG_MESSAGE}, 305 IDS_SETTINGS_ANDROID_APPS_DISABLE_DIALOG_MESSAGE},
306 {"androidAppsDisableDialogRemove",
307 IDS_SETTINGS_ANDROID_APPS_DISABLE_DIALOG_REMOVE},
304 }; 308 };
305 AddLocalizedStringsBulk(html_source, localized_strings, 309 AddLocalizedStringsBulk(html_source, localized_strings,
306 arraysize(localized_strings)); 310 arraysize(localized_strings));
307 html_source->AddString("androidAppsLearnMoreUrl", 311 html_source->AddString(
308 chrome::kAndroidAppsLearnMoreURL); 312 "androidAppsSubtext",
313 l10n_util::GetStringFUTF16(
314 IDS_SETTINGS_ANDROID_APPS_SUBTEXT,
315 base::ASCIIToUTF16(chrome::kAndroidAppsLearnMoreURL)));
309 } 316 }
310 #endif 317 #endif
311 318
312 void AddAppearanceStrings(content::WebUIDataSource* html_source, 319 void AddAppearanceStrings(content::WebUIDataSource* html_source,
313 Profile* profile) { 320 Profile* profile) {
314 LocalizedString localized_strings[] = { 321 LocalizedString localized_strings[] = {
315 {"appearancePageTitle", IDS_SETTINGS_APPEARANCE}, 322 {"appearancePageTitle", IDS_SETTINGS_APPEARANCE},
316 {"customWebAddress", IDS_SETTINGS_CUSTOM_WEB_ADDRESS}, 323 {"customWebAddress", IDS_SETTINGS_CUSTOM_WEB_ADDRESS},
317 {"enterCustomWebAddress", IDS_SETTINGS_ENTER_CUSTOM_WEB_ADDRESS}, 324 {"enterCustomWebAddress", IDS_SETTINGS_ENTER_CUSTOM_WEB_ADDRESS},
318 {"homeButtonDisabled", IDS_SETTINGS_HOME_BUTTON_DISABLED}, 325 {"homeButtonDisabled", IDS_SETTINGS_HOME_BUTTON_DISABLED},
(...skipping 1706 matching lines...) Expand 10 before | Expand all | Expand 10 after
2025 2032
2026 #if defined(OS_CHROMEOS) 2033 #if defined(OS_CHROMEOS)
2027 chromeos::network_element::AddLocalizedStrings(html_source); 2034 chromeos::network_element::AddLocalizedStrings(html_source);
2028 #endif 2035 #endif
2029 policy_indicator::AddLocalizedStrings(html_source); 2036 policy_indicator::AddLocalizedStrings(html_source);
2030 2037
2031 html_source->SetJsonPath(kLocalizedStringsFile); 2038 html_source->SetJsonPath(kLocalizedStringsFile);
2032 } 2039 }
2033 2040
2034 } // namespace settings 2041 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/settings_resources.grd ('k') | chrome/test/data/webui/settings/android_apps_page_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698