| 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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 } | 298 } |
| 299 #endif | 299 #endif |
| 300 | 300 |
| 301 void AddAppearanceStrings(content::WebUIDataSource* html_source, | 301 void AddAppearanceStrings(content::WebUIDataSource* html_source, |
| 302 Profile* profile) { | 302 Profile* profile) { |
| 303 LocalizedString localized_strings[] = { | 303 LocalizedString localized_strings[] = { |
| 304 {"appearancePageTitle", IDS_SETTINGS_APPEARANCE}, | 304 {"appearancePageTitle", IDS_SETTINGS_APPEARANCE}, |
| 305 {"customWebAddress", IDS_SETTINGS_CUSTOM_WEB_ADDRESS}, | 305 {"customWebAddress", IDS_SETTINGS_CUSTOM_WEB_ADDRESS}, |
| 306 {"enterCustomWebAddress", IDS_SETTINGS_ENTER_CUSTOM_WEB_ADDRESS}, | 306 {"enterCustomWebAddress", IDS_SETTINGS_ENTER_CUSTOM_WEB_ADDRESS}, |
| 307 {"homeButtonDisabled", IDS_SETTINGS_HOME_BUTTON_DISABLED}, | 307 {"homeButtonDisabled", IDS_SETTINGS_HOME_BUTTON_DISABLED}, |
| 308 {"homeUrlNotValid", IDS_SETTINGS_HOME_URL_NOT_VALID}, |
| 308 {"themes", IDS_SETTINGS_THEMES}, | 309 {"themes", IDS_SETTINGS_THEMES}, |
| 309 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) | 310 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 310 {"systemTheme", IDS_SETTINGS_SYSTEM_THEME}, | 311 {"systemTheme", IDS_SETTINGS_SYSTEM_THEME}, |
| 311 {"useSystemTheme", IDS_SETTINGS_USE_SYSTEM_THEME}, | 312 {"useSystemTheme", IDS_SETTINGS_USE_SYSTEM_THEME}, |
| 312 {"classicTheme", IDS_SETTINGS_CLASSIC_THEME}, | 313 {"classicTheme", IDS_SETTINGS_CLASSIC_THEME}, |
| 313 {"useClassicTheme", IDS_SETTINGS_USE_CLASSIC_THEME}, | 314 {"useClassicTheme", IDS_SETTINGS_USE_CLASSIC_THEME}, |
| 314 #else | 315 #else |
| 315 {"resetToDefaultTheme", IDS_SETTINGS_RESET_TO_DEFAULT_THEME}, | 316 {"resetToDefaultTheme", IDS_SETTINGS_RESET_TO_DEFAULT_THEME}, |
| 316 #endif | 317 #endif |
| 317 {"showHomeButton", IDS_SETTINGS_SHOW_HOME_BUTTON}, | 318 {"showHomeButton", IDS_SETTINGS_SHOW_HOME_BUTTON}, |
| (...skipping 1686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2004 | 2005 |
| 2005 #if defined(OS_CHROMEOS) | 2006 #if defined(OS_CHROMEOS) |
| 2006 chromeos::network_element::AddLocalizedStrings(html_source); | 2007 chromeos::network_element::AddLocalizedStrings(html_source); |
| 2007 #endif | 2008 #endif |
| 2008 policy_indicator::AddLocalizedStrings(html_source); | 2009 policy_indicator::AddLocalizedStrings(html_source); |
| 2009 | 2010 |
| 2010 html_source->SetJsonPath(kLocalizedStringsFile); | 2011 html_source->SetJsonPath(kLocalizedStringsFile); |
| 2011 } | 2012 } |
| 2012 | 2013 |
| 2013 } // namespace settings | 2014 } // namespace settings |
| OLD | NEW |