| 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 AddLocalizedStringsBulk(html_source, localized_strings, | 312 AddLocalizedStringsBulk(html_source, localized_strings, |
| 313 arraysize(localized_strings)); | 313 arraysize(localized_strings)); |
| 314 | 314 |
| 315 html_source->AddBoolean("isSupervised", profile->IsSupervised()); | 315 html_source->AddBoolean("isSupervised", profile->IsSupervised()); |
| 316 } | 316 } |
| 317 | 317 |
| 318 #if defined(OS_CHROMEOS) | 318 #if defined(OS_CHROMEOS) |
| 319 void AddBluetoothStrings(content::WebUIDataSource* html_source) { | 319 void AddBluetoothStrings(content::WebUIDataSource* html_source) { |
| 320 LocalizedString localized_strings[] = { | 320 LocalizedString localized_strings[] = { |
| 321 {"bluetoothAccept", IDS_OPTIONS_SETTINGS_BLUETOOTH_ACCEPT_PASSKEY}, | 321 {"bluetoothAccept", IDS_OPTIONS_SETTINGS_BLUETOOTH_ACCEPT_PASSKEY}, |
| 322 {"bluetoothConnected", IDS_SETTINGS_BLUETOOTH_CONNECTED}, |
| 322 {"bluetoothConnecting", IDS_SETTINGS_BLUETOOTH_CONNECTING}, | 323 {"bluetoothConnecting", IDS_SETTINGS_BLUETOOTH_CONNECTING}, |
| 323 {"bluetoothDisabled", IDS_SETTINGS_BLUETOOTH_DISABLED}, | 324 {"bluetoothDisabled", IDS_SETTINGS_BLUETOOTH_DISABLED}, |
| 324 {"bluetoothDisconnect", IDS_OPTIONS_SETTINGS_BLUETOOTH_DISCONNECT}, | 325 {"bluetoothDisconnect", IDS_OPTIONS_SETTINGS_BLUETOOTH_DISCONNECT}, |
| 325 {"bluetoothDismiss", IDS_OPTIONS_SETTINGS_BLUETOOTH_DISMISS_ERROR}, | 326 {"bluetoothDismiss", IDS_OPTIONS_SETTINGS_BLUETOOTH_DISMISS_ERROR}, |
| 326 {"bluetoothEnabled", IDS_SETTINGS_BLUETOOTH_ENABLED}, | 327 {"bluetoothEnabled", IDS_SETTINGS_BLUETOOTH_ENABLED}, |
| 327 {"bluetoothExpandA11yLabel", | 328 {"bluetoothExpandA11yLabel", |
| 328 IDS_SETTINGS_BLUETOOTH_EXPAND_ACCESSIBILITY_LABEL}, | 329 IDS_SETTINGS_BLUETOOTH_EXPAND_ACCESSIBILITY_LABEL}, |
| 329 {"bluetoothNoDevices", IDS_SETTINGS_BLUETOOTH_NO_DEVICES}, | 330 {"bluetoothNoDevices", IDS_SETTINGS_BLUETOOTH_NO_DEVICES}, |
| 331 {"bluetoothNotConnected", IDS_SETTINGS_BLUETOOTH_NOT_CONNECTED}, |
| 330 {"bluetoothPageTitle", IDS_SETTINGS_BLUETOOTH}, | 332 {"bluetoothPageTitle", IDS_SETTINGS_BLUETOOTH}, |
| 331 {"bluetoothPair", IDS_SETTINGS_BLUETOOTH_PAIR}, | 333 {"bluetoothPair", IDS_SETTINGS_BLUETOOTH_PAIR}, |
| 332 {"bluetoothPairDevice", IDS_SETTINGS_BLUETOOTH_PAIR_DEVICE}, | 334 {"bluetoothPairDevice", IDS_SETTINGS_BLUETOOTH_PAIR_DEVICE}, |
| 333 {"bluetoothPairDevicePageTitle", | 335 {"bluetoothPairDevicePageTitle", |
| 334 IDS_SETTINGS_BLUETOOTH_PAIR_DEVICE_TITLE}, | 336 IDS_SETTINGS_BLUETOOTH_PAIR_DEVICE_TITLE}, |
| 335 {"bluetoothReject", IDS_OPTIONS_SETTINGS_BLUETOOTH_REJECT_PASSKEY}, | 337 {"bluetoothReject", IDS_OPTIONS_SETTINGS_BLUETOOTH_REJECT_PASSKEY}, |
| 336 {"bluetoothRemove", IDS_SETTINGS_BLUETOOTH_REMOVE}, | 338 {"bluetoothRemove", IDS_SETTINGS_BLUETOOTH_REMOVE}, |
| 337 {"bluetoothScanning", IDS_SETTINGS_BLUETOOTH_SCANNING}, | 339 {"bluetoothScanning", IDS_SETTINGS_BLUETOOTH_SCANNING}, |
| 338 // Device connecting and pairing. | 340 // Device connecting and pairing. |
| 339 {"bluetoothStartConnecting", IDS_SETTINGS_BLUETOOTH_START_CONNECTING}, | 341 {"bluetoothStartConnecting", IDS_SETTINGS_BLUETOOTH_START_CONNECTING}, |
| (...skipping 1534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1874 #if defined(USE_NSS_CERTS) | 1876 #if defined(USE_NSS_CERTS) |
| 1875 AddCertificateManagerStrings(html_source); | 1877 AddCertificateManagerStrings(html_source); |
| 1876 #endif | 1878 #endif |
| 1877 | 1879 |
| 1878 policy_indicator::AddLocalizedStrings(html_source); | 1880 policy_indicator::AddLocalizedStrings(html_source); |
| 1879 | 1881 |
| 1880 html_source->SetJsonPath(kLocalizedStringsFile); | 1882 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1881 } | 1883 } |
| 1882 | 1884 |
| 1883 } // namespace settings | 1885 } // namespace settings |
| OLD | NEW |