| 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 {"changeHomePage", IDS_SETTINGS_CHANGE_HOME_PAGE}, | 343 {"changeHomePage", IDS_SETTINGS_CHANGE_HOME_PAGE}, |
| 344 {"themesGalleryUrl", IDS_THEMES_GALLERY_URL}, | 344 {"themesGalleryUrl", IDS_THEMES_GALLERY_URL}, |
| 345 {"chooseFromWebStore", IDS_SETTINGS_WEB_STORE}, | 345 {"chooseFromWebStore", IDS_SETTINGS_WEB_STORE}, |
| 346 #if defined(OS_CHROMEOS) | 346 #if defined(OS_CHROMEOS) |
| 347 {"openWallpaperApp", IDS_SETTINGS_OPEN_WALLPAPER_APP}, | 347 {"openWallpaperApp", IDS_SETTINGS_OPEN_WALLPAPER_APP}, |
| 348 {"setWallpaper", IDS_SETTINGS_SET_WALLPAPER}, | 348 {"setWallpaper", IDS_SETTINGS_SET_WALLPAPER}, |
| 349 #endif | 349 #endif |
| 350 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) | 350 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 351 {"showWindowDecorations", IDS_SHOW_WINDOW_DECORATIONS}, | 351 {"showWindowDecorations", IDS_SHOW_WINDOW_DECORATIONS}, |
| 352 #endif | 352 #endif |
| 353 #if defined(OS_MACOSX) |
| 354 // TODO(dbeam): use an IDS_SETTINGS_* string instead. |
| 355 {"tabsToLinks", IDS_OPTIONS_TABS_TO_LINKS_PREF}, |
| 356 #endif |
| 353 }; | 357 }; |
| 354 AddLocalizedStringsBulk(html_source, localized_strings, | 358 AddLocalizedStringsBulk(html_source, localized_strings, |
| 355 arraysize(localized_strings)); | 359 arraysize(localized_strings)); |
| 356 } | 360 } |
| 357 | 361 |
| 358 #if defined(OS_CHROMEOS) | 362 #if defined(OS_CHROMEOS) |
| 359 void AddBluetoothStrings(content::WebUIDataSource* html_source) { | 363 void AddBluetoothStrings(content::WebUIDataSource* html_source) { |
| 360 LocalizedString localized_strings[] = { | 364 LocalizedString localized_strings[] = { |
| 361 {"bluetoothAccept", IDS_OPTIONS_SETTINGS_BLUETOOTH_ACCEPT_PASSKEY}, | 365 {"bluetoothAccept", IDS_OPTIONS_SETTINGS_BLUETOOTH_ACCEPT_PASSKEY}, |
| 362 {"bluetoothConnected", IDS_SETTINGS_BLUETOOTH_CONNECTED}, | 366 {"bluetoothConnected", IDS_SETTINGS_BLUETOOTH_CONNECTED}, |
| (...skipping 1721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2084 | 2088 |
| 2085 #if defined(OS_CHROMEOS) | 2089 #if defined(OS_CHROMEOS) |
| 2086 chromeos::network_element::AddLocalizedStrings(html_source); | 2090 chromeos::network_element::AddLocalizedStrings(html_source); |
| 2087 #endif | 2091 #endif |
| 2088 policy_indicator::AddLocalizedStrings(html_source); | 2092 policy_indicator::AddLocalizedStrings(html_source); |
| 2089 | 2093 |
| 2090 html_source->SetJsonPath(kLocalizedStringsFile); | 2094 html_source->SetJsonPath(kLocalizedStringsFile); |
| 2091 } | 2095 } |
| 2092 | 2096 |
| 2093 } // namespace settings | 2097 } // namespace settings |
| OLD | NEW |