| 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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 } | 317 } |
| 318 | 318 |
| 319 #if defined(OS_CHROMEOS) | 319 #if defined(OS_CHROMEOS) |
| 320 void AddBluetoothStrings(content::WebUIDataSource* html_source) { | 320 void AddBluetoothStrings(content::WebUIDataSource* html_source) { |
| 321 LocalizedString localized_strings[] = { | 321 LocalizedString localized_strings[] = { |
| 322 {"bluetoothAccept", IDS_OPTIONS_SETTINGS_BLUETOOTH_ACCEPT_PASSKEY}, | 322 {"bluetoothAccept", IDS_OPTIONS_SETTINGS_BLUETOOTH_ACCEPT_PASSKEY}, |
| 323 {"bluetoothAddDevice", IDS_OPTIONS_SETTINGS_ADD_BLUETOOTH_DEVICE}, | 323 {"bluetoothAddDevice", IDS_OPTIONS_SETTINGS_ADD_BLUETOOTH_DEVICE}, |
| 324 {"bluetoothAddDevicePageTitle", IDS_SETTINGS_BLUETOOTH_ADD_DEVICE}, | 324 {"bluetoothAddDevicePageTitle", IDS_SETTINGS_BLUETOOTH_ADD_DEVICE}, |
| 325 {"bluetoothConnect", IDS_OPTIONS_SETTINGS_BLUETOOTH_CONNECT}, | 325 {"bluetoothConnect", IDS_OPTIONS_SETTINGS_BLUETOOTH_CONNECT}, |
| 326 {"bluetoothConnecting", IDS_SETTINGS_BLUETOOTH_CONNECTING}, | 326 {"bluetoothConnecting", IDS_SETTINGS_BLUETOOTH_CONNECTING}, |
| 327 {"bluetoothDisabled", IDS_SETTINGS_BLUETOOTH_DISABLED}, |
| 327 {"bluetoothDisconnect", IDS_OPTIONS_SETTINGS_BLUETOOTH_DISCONNECT}, | 328 {"bluetoothDisconnect", IDS_OPTIONS_SETTINGS_BLUETOOTH_DISCONNECT}, |
| 328 {"bluetoothDismiss", IDS_OPTIONS_SETTINGS_BLUETOOTH_DISMISS_ERROR}, | 329 {"bluetoothDismiss", IDS_OPTIONS_SETTINGS_BLUETOOTH_DISMISS_ERROR}, |
| 329 {"bluetoothEnable", IDS_SETTINGS_BLUETOOTH_ENABLE}, | 330 {"bluetoothEnabled", IDS_SETTINGS_BLUETOOTH_ENABLED}, |
| 330 {"bluetoothExpandA11yLabel", | 331 {"bluetoothExpandA11yLabel", |
| 331 IDS_SETTINGS_BLUETOOTH_EXPAND_ACCESSIBILITY_LABEL}, | 332 IDS_SETTINGS_BLUETOOTH_EXPAND_ACCESSIBILITY_LABEL}, |
| 332 {"bluetoothNoDevices", IDS_OPTIONS_SETTINGS_BLUETOOTH_NO_DEVICES}, | 333 {"bluetoothNoDevices", IDS_OPTIONS_SETTINGS_BLUETOOTH_NO_DEVICES}, |
| 333 {"bluetoothPageTitle", IDS_SETTINGS_BLUETOOTH}, | 334 {"bluetoothPageTitle", IDS_SETTINGS_BLUETOOTH}, |
| 334 {"bluetoothPairDevicePageTitle", IDS_SETTINGS_BLUETOOTH_PAIR_DEVICE}, | 335 {"bluetoothPairDevicePageTitle", IDS_SETTINGS_BLUETOOTH_PAIR_DEVICE}, |
| 335 {"bluetoothReject", IDS_OPTIONS_SETTINGS_BLUETOOTH_REJECT_PASSKEY}, | 336 {"bluetoothReject", IDS_OPTIONS_SETTINGS_BLUETOOTH_REJECT_PASSKEY}, |
| 336 {"bluetoothRemove", IDS_SETTINGS_BLUETOOTH_REMOVE}, | 337 {"bluetoothRemove", IDS_SETTINGS_BLUETOOTH_REMOVE}, |
| 337 {"bluetoothScanning", IDS_OPTIONS_SETTINGS_BLUETOOTH_SCANNING}, | 338 {"bluetoothScanning", IDS_OPTIONS_SETTINGS_BLUETOOTH_SCANNING}, |
| 338 // Device connecting and pairing. | 339 // Device connecting and pairing. |
| 339 {"bluetoothStartConnecting", IDS_SETTINGS_BLUETOOTH_START_CONNECTING}, | 340 {"bluetoothStartConnecting", IDS_SETTINGS_BLUETOOTH_START_CONNECTING}, |
| (...skipping 1511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1851 #if defined(USE_NSS_CERTS) | 1852 #if defined(USE_NSS_CERTS) |
| 1852 AddCertificateManagerStrings(html_source); | 1853 AddCertificateManagerStrings(html_source); |
| 1853 #endif | 1854 #endif |
| 1854 | 1855 |
| 1855 policy_indicator::AddLocalizedStrings(html_source); | 1856 policy_indicator::AddLocalizedStrings(html_source); |
| 1856 | 1857 |
| 1857 html_source->SetJsonPath(kLocalizedStringsFile); | 1858 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1858 } | 1859 } |
| 1859 | 1860 |
| 1860 } // namespace settings | 1861 } // namespace settings |
| OLD | NEW |