| 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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 LocalizedString device_strings[] = { | 405 LocalizedString device_strings[] = { |
| 406 {"devicePageTitle", IDS_SETTINGS_DEVICE_TITLE}, | 406 {"devicePageTitle", IDS_SETTINGS_DEVICE_TITLE}, |
| 407 {"scrollLabel", IDS_SETTINGS_SCROLL_LABEL}, | 407 {"scrollLabel", IDS_SETTINGS_SCROLL_LABEL}, |
| 408 {"traditionalScrollLabel", IDS_SETTINGS_TRADITIONAL_SCROLL_LABEL}, | 408 {"traditionalScrollLabel", IDS_SETTINGS_TRADITIONAL_SCROLL_LABEL}, |
| 409 {"naturalScrollLabel", IDS_SETTINGS_NATURAL_SCROLL_LABEL}, | 409 {"naturalScrollLabel", IDS_SETTINGS_NATURAL_SCROLL_LABEL}, |
| 410 {"naturalScrollLearnMore", IDS_SETTINGS_NATURAL_SCROLL_LEARN_MORE}, | 410 {"naturalScrollLearnMore", IDS_SETTINGS_NATURAL_SCROLL_LEARN_MORE}, |
| 411 }; | 411 }; |
| 412 AddLocalizedStringsBulk(html_source, device_strings, | 412 AddLocalizedStringsBulk(html_source, device_strings, |
| 413 arraysize(device_strings)); | 413 arraysize(device_strings)); |
| 414 | 414 |
| 415 LocalizedString touchpad_strings[] = { | 415 LocalizedString pointers_strings[] = { |
| 416 {"mouseTitle", IDS_SETTINGS_MOUSE_TITLE}, |
| 416 {"touchpadTitle", IDS_SETTINGS_TOUCHPAD_TITLE}, | 417 {"touchpadTitle", IDS_SETTINGS_TOUCHPAD_TITLE}, |
| 418 {"mouseAndTouchpadTitle", IDS_SETTINGS_MOUSE_AND_TOUCHPAD_TITLE}, |
| 417 {"touchpadTapToClickEnabledLabel", | 419 {"touchpadTapToClickEnabledLabel", |
| 418 IDS_SETTINGS_TOUCHPAD_TAP_TO_CLICK_ENABLED_LABEL}, | 420 IDS_SETTINGS_TOUCHPAD_TAP_TO_CLICK_ENABLED_LABEL}, |
| 421 {"touchpadSpeed", IDS_SETTINGS_TOUCHPAD_SPEED_LABEL}, |
| 422 {"pointerSlow", IDS_SETTINGS_POINTER_SPEED_SLOW_LABEL}, |
| 423 {"pointerFast", IDS_SETTINGS_POINTER_SPEED_FAST_LABEL}, |
| 424 {"mouseSpeed", IDS_SETTINGS_MOUSE_SPEED_LABEL}, |
| 425 {"mouseSwapButtons", IDS_SETTINGS_MOUSE_SWAP_BUTTONS_LABEL}, |
| 419 }; | 426 }; |
| 420 AddLocalizedStringsBulk(html_source, touchpad_strings, | 427 AddLocalizedStringsBulk(html_source, pointers_strings, |
| 421 arraysize(touchpad_strings)); | 428 arraysize(pointers_strings)); |
| 422 | 429 |
| 423 LocalizedString keyboard_strings[] = { | 430 LocalizedString keyboard_strings[] = { |
| 424 {"keyboardTitle", IDS_SETTINGS_KEYBOARD_TITLE}, | 431 {"keyboardTitle", IDS_SETTINGS_KEYBOARD_TITLE}, |
| 425 {"keyboardKeySearch", IDS_SETTINGS_KEYBOARD_KEY_SEARCH}, | 432 {"keyboardKeySearch", IDS_SETTINGS_KEYBOARD_KEY_SEARCH}, |
| 426 {"keyboardKeyCtrl", IDS_SETTINGS_KEYBOARD_KEY_LEFT_CTRL}, | 433 {"keyboardKeyCtrl", IDS_SETTINGS_KEYBOARD_KEY_LEFT_CTRL}, |
| 427 {"keyboardKeyAlt", IDS_SETTINGS_KEYBOARD_KEY_LEFT_ALT}, | 434 {"keyboardKeyAlt", IDS_SETTINGS_KEYBOARD_KEY_LEFT_ALT}, |
| 428 {"keyboardKeyCapsLock", IDS_SETTINGS_KEYBOARD_KEY_CAPS_LOCK}, | 435 {"keyboardKeyCapsLock", IDS_SETTINGS_KEYBOARD_KEY_CAPS_LOCK}, |
| 429 {"keyboardKeyDiamond", IDS_SETTINGS_KEYBOARD_KEY_DIAMOND}, | 436 {"keyboardKeyDiamond", IDS_SETTINGS_KEYBOARD_KEY_DIAMOND}, |
| 430 {"keyboardKeyEscape", IDS_SETTINGS_KEYBOARD_KEY_ESCAPE}, | 437 {"keyboardKeyEscape", IDS_SETTINGS_KEYBOARD_KEY_ESCAPE}, |
| 431 {"keyboardKeyDisabled", IDS_SETTINGS_KEYBOARD_KEY_DISABLED}, | 438 {"keyboardKeyDisabled", IDS_SETTINGS_KEYBOARD_KEY_DISABLED}, |
| (...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1278 #endif | 1285 #endif |
| 1279 AddUsersStrings(html_source); | 1286 AddUsersStrings(html_source); |
| 1280 AddWebContentStrings(html_source); | 1287 AddWebContentStrings(html_source); |
| 1281 | 1288 |
| 1282 policy_indicator::AddLocalizedStrings(html_source); | 1289 policy_indicator::AddLocalizedStrings(html_source); |
| 1283 | 1290 |
| 1284 html_source->SetJsonPath(kLocalizedStringsFile); | 1291 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1285 } | 1292 } |
| 1286 | 1293 |
| 1287 } // namespace settings | 1294 } // namespace settings |
| OLD | NEW |