| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 | 178 |
| 179 html_source->AddBoolean( | 179 html_source->AddBoolean( |
| 180 "showExperimentalA11yFeatures", | 180 "showExperimentalA11yFeatures", |
| 181 base::CommandLine::ForCurrentProcess()->HasSwitch( | 181 base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 182 chromeos::switches::kEnableExperimentalAccessibilityFeatures)); | 182 chromeos::switches::kEnableExperimentalAccessibilityFeatures)); |
| 183 #endif | 183 #endif |
| 184 } | 184 } |
| 185 | 185 |
| 186 void AddAboutStrings(content::WebUIDataSource* html_source) { | 186 void AddAboutStrings(content::WebUIDataSource* html_source) { |
| 187 LocalizedString localized_strings[] = { | 187 LocalizedString localized_strings[] = { |
| 188 {"aboutProductLogoAlt", IDS_SHORT_PRODUCT_LOGO_ALT_TEXT}, |
| 188 {"aboutPageTitle", IDS_SETTINGS_ABOUT_PROGRAM}, | 189 {"aboutPageTitle", IDS_SETTINGS_ABOUT_PROGRAM}, |
| 189 #if defined(OS_CHROMEOS) | 190 #if defined(OS_CHROMEOS) |
| 190 {"aboutProductTitle", IDS_PRODUCT_OS_NAME}, | 191 {"aboutProductTitle", IDS_PRODUCT_OS_NAME}, |
| 191 #else | 192 #else |
| 192 {"aboutProductTitle", IDS_PRODUCT_NAME}, | 193 {"aboutProductTitle", IDS_PRODUCT_NAME}, |
| 193 #endif | 194 #endif |
| 194 {"aboutGetHelpUsingChrome", IDS_SETTINGS_GET_HELP_USING_CHROME}, | 195 {"aboutGetHelpUsingChrome", IDS_SETTINGS_GET_HELP_USING_CHROME}, |
| 195 | 196 |
| 196 #if defined(GOOGLE_CHROME_BUILD) | 197 #if defined(GOOGLE_CHROME_BUILD) |
| 197 {"aboutReportAnIssue", IDS_SETTINGS_ABOUT_PAGE_REPORT_AN_ISSUE}, | 198 {"aboutReportAnIssue", IDS_SETTINGS_ABOUT_PAGE_REPORT_AN_ISSUE}, |
| (...skipping 1752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1950 | 1951 |
| 1951 #if defined(OS_CHROMEOS) | 1952 #if defined(OS_CHROMEOS) |
| 1952 chromeos::network_element::AddLocalizedStrings(html_source); | 1953 chromeos::network_element::AddLocalizedStrings(html_source); |
| 1953 #endif | 1954 #endif |
| 1954 policy_indicator::AddLocalizedStrings(html_source); | 1955 policy_indicator::AddLocalizedStrings(html_source); |
| 1955 | 1956 |
| 1956 html_source->SetJsonPath(kLocalizedStringsFile); | 1957 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1957 } | 1958 } |
| 1958 | 1959 |
| 1959 } // namespace settings | 1960 } // namespace settings |
| OLD | NEW |