| 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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 LocalizedString device_strings[] = { | 440 LocalizedString device_strings[] = { |
| 441 {"devicePageTitle", IDS_SETTINGS_DEVICE_TITLE}, | 441 {"devicePageTitle", IDS_SETTINGS_DEVICE_TITLE}, |
| 442 {"scrollLabel", IDS_SETTINGS_SCROLL_LABEL}, | 442 {"scrollLabel", IDS_SETTINGS_SCROLL_LABEL}, |
| 443 {"traditionalScrollLabel", IDS_SETTINGS_TRADITIONAL_SCROLL_LABEL}, | 443 {"traditionalScrollLabel", IDS_SETTINGS_TRADITIONAL_SCROLL_LABEL}, |
| 444 {"naturalScrollLabel", IDS_SETTINGS_NATURAL_SCROLL_LABEL}, | 444 {"naturalScrollLabel", IDS_SETTINGS_NATURAL_SCROLL_LABEL}, |
| 445 {"naturalScrollLearnMore", IDS_SETTINGS_NATURAL_SCROLL_LEARN_MORE}, | 445 {"naturalScrollLearnMore", IDS_SETTINGS_NATURAL_SCROLL_LEARN_MORE}, |
| 446 }; | 446 }; |
| 447 AddLocalizedStringsBulk(html_source, device_strings, | 447 AddLocalizedStringsBulk(html_source, device_strings, |
| 448 arraysize(device_strings)); | 448 arraysize(device_strings)); |
| 449 | 449 |
| 450 LocalizedString touchpad_strings[] = { | 450 LocalizedString pointers_strings[] = { |
| 451 {"mouseTitle", IDS_SETTINGS_MOUSE_TITLE}, |
| 451 {"touchpadTitle", IDS_SETTINGS_TOUCHPAD_TITLE}, | 452 {"touchpadTitle", IDS_SETTINGS_TOUCHPAD_TITLE}, |
| 453 {"mouseAndTouchpadTitle", IDS_SETTINGS_MOUSE_AND_TOUCHPAD_TITLE}, |
| 452 {"touchpadTapToClickEnabledLabel", | 454 {"touchpadTapToClickEnabledLabel", |
| 453 IDS_SETTINGS_TOUCHPAD_TAP_TO_CLICK_ENABLED_LABEL}, | 455 IDS_SETTINGS_TOUCHPAD_TAP_TO_CLICK_ENABLED_LABEL}, |
| 456 {"touchpadSpeed", IDS_SETTINGS_TOUCHPAD_SPEED_LABEL}, |
| 457 {"pointerSlow", IDS_SETTINGS_POINTER_SPEED_SLOW_LABEL}, |
| 458 {"pointerFast", IDS_SETTINGS_POINTER_SPEED_FAST_LABEL}, |
| 459 {"mouseSpeed", IDS_SETTINGS_MOUSE_SPEED_LABEL}, |
| 460 {"mouseSwapButtons", IDS_SETTINGS_MOUSE_SWAP_BUTTONS_LABEL}, |
| 454 }; | 461 }; |
| 455 AddLocalizedStringsBulk(html_source, touchpad_strings, | 462 AddLocalizedStringsBulk(html_source, pointers_strings, |
| 456 arraysize(touchpad_strings)); | 463 arraysize(pointers_strings)); |
| 457 | 464 |
| 458 LocalizedString keyboard_strings[] = { | 465 LocalizedString keyboard_strings[] = { |
| 459 {"keyboardTitle", IDS_SETTINGS_KEYBOARD_TITLE}, | 466 {"keyboardTitle", IDS_SETTINGS_KEYBOARD_TITLE}, |
| 460 {"keyboardKeySearch", IDS_SETTINGS_KEYBOARD_KEY_SEARCH}, | 467 {"keyboardKeySearch", IDS_SETTINGS_KEYBOARD_KEY_SEARCH}, |
| 461 {"keyboardKeyCtrl", IDS_SETTINGS_KEYBOARD_KEY_LEFT_CTRL}, | 468 {"keyboardKeyCtrl", IDS_SETTINGS_KEYBOARD_KEY_LEFT_CTRL}, |
| 462 {"keyboardKeyAlt", IDS_SETTINGS_KEYBOARD_KEY_LEFT_ALT}, | 469 {"keyboardKeyAlt", IDS_SETTINGS_KEYBOARD_KEY_LEFT_ALT}, |
| 463 {"keyboardKeyCapsLock", IDS_SETTINGS_KEYBOARD_KEY_CAPS_LOCK}, | 470 {"keyboardKeyCapsLock", IDS_SETTINGS_KEYBOARD_KEY_CAPS_LOCK}, |
| 464 {"keyboardKeyDiamond", IDS_SETTINGS_KEYBOARD_KEY_DIAMOND}, | 471 {"keyboardKeyDiamond", IDS_SETTINGS_KEYBOARD_KEY_DIAMOND}, |
| 465 {"keyboardKeyEscape", IDS_SETTINGS_KEYBOARD_KEY_ESCAPE}, | 472 {"keyboardKeyEscape", IDS_SETTINGS_KEYBOARD_KEY_ESCAPE}, |
| 466 {"keyboardKeyDisabled", IDS_SETTINGS_KEYBOARD_KEY_DISABLED}, | 473 {"keyboardKeyDisabled", IDS_SETTINGS_KEYBOARD_KEY_DISABLED}, |
| (...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1336 #endif | 1343 #endif |
| 1337 AddUsersStrings(html_source); | 1344 AddUsersStrings(html_source); |
| 1338 AddWebContentStrings(html_source); | 1345 AddWebContentStrings(html_source); |
| 1339 | 1346 |
| 1340 policy_indicator::AddLocalizedStrings(html_source); | 1347 policy_indicator::AddLocalizedStrings(html_source); |
| 1341 | 1348 |
| 1342 html_source->SetJsonPath(kLocalizedStringsFile); | 1349 html_source->SetJsonPath(kLocalizedStringsFile); |
| 1343 } | 1350 } |
| 1344 | 1351 |
| 1345 } // namespace settings | 1352 } // namespace settings |
| OLD | NEW |