| 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 {"homePageNtp", IDS_SETTINGS_HOME_PAGE_NTP}, | 212 {"homePageNtp", IDS_SETTINGS_HOME_PAGE_NTP}, |
| 213 {"other", IDS_SETTINGS_OTHER}, | 213 {"other", IDS_SETTINGS_OTHER}, |
| 214 {"changeHomePage", IDS_SETTINGS_CHANGE_HOME_PAGE}, | 214 {"changeHomePage", IDS_SETTINGS_CHANGE_HOME_PAGE}, |
| 215 {"themesGalleryUrl", IDS_THEMES_GALLERY_URL}, | 215 {"themesGalleryUrl", IDS_THEMES_GALLERY_URL}, |
| 216 {"chooseFromWebStore", IDS_SETTINGS_WEB_STORE}, | 216 {"chooseFromWebStore", IDS_SETTINGS_WEB_STORE}, |
| 217 {"chooseFontsAndEncoding", IDS_SETTINGS_CHOOSE_FONTS_AND_ENCODING}, | 217 {"chooseFontsAndEncoding", IDS_SETTINGS_CHOOSE_FONTS_AND_ENCODING}, |
| 218 #if defined(OS_CHROMEOS) | 218 #if defined(OS_CHROMEOS) |
| 219 {"openWallpaperApp", IDS_SETTINGS_OPEN_WALLPAPER_APP}, | 219 {"openWallpaperApp", IDS_SETTINGS_OPEN_WALLPAPER_APP}, |
| 220 {"setWallpaper", IDS_SETTINGS_SET_WALLPAPER}, | 220 {"setWallpaper", IDS_SETTINGS_SET_WALLPAPER}, |
| 221 #endif | 221 #endif |
| 222 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 223 {"showWindowDecorations", IDS_SHOW_WINDOW_DECORATIONS}, |
| 224 #endif |
| 222 }; | 225 }; |
| 223 AddLocalizedStringsBulk(html_source, localized_strings, | 226 AddLocalizedStringsBulk(html_source, localized_strings, |
| 224 arraysize(localized_strings)); | 227 arraysize(localized_strings)); |
| 225 } | 228 } |
| 226 | 229 |
| 227 #if defined(OS_CHROMEOS) | 230 #if defined(OS_CHROMEOS) |
| 228 void AddBluetoothStrings(content::WebUIDataSource* html_source) { | 231 void AddBluetoothStrings(content::WebUIDataSource* html_source) { |
| 229 LocalizedString localized_strings[] = { | 232 LocalizedString localized_strings[] = { |
| 230 {"bluetoothPageTitle", IDS_SETTINGS_BLUETOOTH}, | 233 {"bluetoothPageTitle", IDS_SETTINGS_BLUETOOTH}, |
| 231 {"bluetoothAddDevicePageTitle", IDS_SETTINGS_BLUETOOTH_ADD_DEVICE}, | 234 {"bluetoothAddDevicePageTitle", IDS_SETTINGS_BLUETOOTH_ADD_DEVICE}, |
| (...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1208 #endif | 1211 #endif |
| 1209 AddUsersStrings(html_source); | 1212 AddUsersStrings(html_source); |
| 1210 AddWebContentStrings(html_source); | 1213 AddWebContentStrings(html_source); |
| 1211 | 1214 |
| 1212 policy_indicator::AddLocalizedStrings(html_source); | 1215 policy_indicator::AddLocalizedStrings(html_source); |
| 1213 | 1216 |
| 1214 html_source->SetJsonPath(kLocalizedStringsFile); | 1217 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1215 } | 1218 } |
| 1216 | 1219 |
| 1217 } // namespace settings | 1220 } // namespace settings |
| OLD | NEW |