| 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/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 } | 126 } |
| 127 | 127 |
| 128 void AddAboutStrings(content::WebUIDataSource* html_source) { | 128 void AddAboutStrings(content::WebUIDataSource* html_source) { |
| 129 LocalizedString localized_strings[] = { | 129 LocalizedString localized_strings[] = { |
| 130 {"aboutPageTitle", IDS_SETTINGS_ABOUT_PROGRAM}, | 130 {"aboutPageTitle", IDS_SETTINGS_ABOUT_PROGRAM}, |
| 131 #if defined(OS_CHROMEOS) | 131 #if defined(OS_CHROMEOS) |
| 132 {"aboutProductTitle", IDS_PRODUCT_OS_NAME}, | 132 {"aboutProductTitle", IDS_PRODUCT_OS_NAME}, |
| 133 #else | 133 #else |
| 134 {"aboutProductTitle", IDS_PRODUCT_NAME}, | 134 {"aboutProductTitle", IDS_PRODUCT_NAME}, |
| 135 #endif | 135 #endif |
| 136 {"aboutGetHelpUsingChrome", IDS_SETTINGS_GET_HELP_USING_CHROME}, |
| 137 |
| 138 #if defined(GOOGLE_CHROME_BUILD) |
| 139 {"aboutReportAnIssue", IDS_SETTINGS_ABOUT_PAGE_REPORT_AN_ISSUE}, |
| 140 #endif |
| 136 | 141 |
| 137 #if defined(OS_CHROMEOS) | 142 #if defined(OS_CHROMEOS) |
| 138 {"aboutChannelStable", IDS_SETTINGS_ABOUT_PAGE_CURRENT_CHANNEL_STABLE}, | 143 {"aboutChannelStable", IDS_SETTINGS_ABOUT_PAGE_CURRENT_CHANNEL_STABLE}, |
| 139 {"aboutChannelBeta", IDS_SETTINGS_ABOUT_PAGE_CURRENT_CHANNEL_BETA}, | 144 {"aboutChannelBeta", IDS_SETTINGS_ABOUT_PAGE_CURRENT_CHANNEL_BETA}, |
| 140 {"aboutChannelDev", IDS_SETTINGS_ABOUT_PAGE_CURRENT_CHANNEL_DEV}, | 145 {"aboutChannelDev", IDS_SETTINGS_ABOUT_PAGE_CURRENT_CHANNEL_DEV}, |
| 141 {"aboutCurrentlyOnChannel", IDS_SETTINGS_ABOUT_PAGE_CURRENT_CHANNEL}, | 146 {"aboutCurrentlyOnChannel", IDS_SETTINGS_ABOUT_PAGE_CURRENT_CHANNEL}, |
| 142 #endif | 147 #endif |
| 143 | 148 |
| 144 }; | 149 }; |
| 145 AddLocalizedStringsBulk(html_source, localized_strings, | 150 AddLocalizedStringsBulk(html_source, localized_strings, |
| (...skipping 853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 999 #endif | 1004 #endif |
| 1000 AddUsersStrings(html_source); | 1005 AddUsersStrings(html_source); |
| 1001 AddWebContentStrings(html_source); | 1006 AddWebContentStrings(html_source); |
| 1002 | 1007 |
| 1003 policy_indicator::AddLocalizedStrings(html_source); | 1008 policy_indicator::AddLocalizedStrings(html_source); |
| 1004 | 1009 |
| 1005 html_source->SetJsonPath(kLocalizedStringsFile); | 1010 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1006 } | 1011 } |
| 1007 | 1012 |
| 1008 } // namespace settings | 1013 } // namespace settings |
| OLD | NEW |