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