Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(648)

Side by Side Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 1061703003: Localize the Accessibility Page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable CrOS-only settings when not on CrOS. Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/resources/settings/a11y_page/a11y_page.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "chrome/grit/generated_resources.h" 7 #include "chrome/grit/generated_resources.h"
8 #include "content/public/browser/web_ui_data_source.h" 8 #include "content/public/browser/web_ui_data_source.h"
9 9
10 namespace { 10 namespace {
11 11
12 // Note that md_settings.html contains a <script> tag which imports a script of 12 // Note that md_settings.html contains a <script> tag which imports a script of
13 // the following name. These names must be kept in sync. 13 // the following name. These names must be kept in sync.
14 const char kLocalizedStringsFile[] = "strings.js"; 14 const char kLocalizedStringsFile[] = "strings.js";
15 15
16 } // namespace 16 } // namespace
17 17
18 namespace settings { 18 namespace settings {
19 19
20 void AddLocalizedStrings(content::WebUIDataSource* html_source) { 20 void AddLocalizedStrings(content::WebUIDataSource* html_source) {
21 html_source->AddLocalizedString( 21 html_source->AddLocalizedString(
22 "a11yPageTitle", IDS_MD_SETTINGS_ACCESSIBILITY_PAGE_TITLE); 22 "a11yPageTitle", IDS_MD_SETTINGS_ACCESSIBILITY_PAGE_TITLE);
23 html_source->AddLocalizedString( 23 html_source->AddLocalizedString(
24 "downloadsPageTitle", IDS_MD_SETTINGS_DOWNLOADS_PAGE_TITLE); 24 "downloadsPageTitle", IDS_MD_SETTINGS_DOWNLOADS_PAGE_TITLE);
25 html_source->AddLocalizedString(
James Hawkins 2015/04/06 19:04:38 Let's break this up into subfunctions.
Kyle Horimoto 2015/04/06 20:15:46 Done.
26 "accessibilityMoreFeaturesLink",
27 IDS_MD_SETTINGS_ACCESSIBILITY_MORE_FEATURES_LINK);
28 html_source->AddLocalizedString(
29 "accessibilityOptionsInMenuLabel",
30 IDS_MD_SETTINGS_ACCESSIBILITY_OPTIONS_IN_MENU_LABEL);
31 html_source->AddLocalizedString(
32 "accessibilityLargeMouseCursorLabel",
33 IDS_MD_SETTINGS_ACCESSIBILITY_LARGE_MOUSE_CURSOR_LABEL);
34 html_source->AddLocalizedString(
35 "accessibilityHighContrastLabel",
36 IDS_MD_SETTINGS_ACCESSIBILITY_HIGH_CONTRAST_LABEL);
37 html_source->AddLocalizedString(
38 "accessibilityStickyKeysLabel",
39 IDS_MD_SETTINGS_ACCESSIBILITY_STICKY_KEYS_LABEL);
40 html_source->AddLocalizedString(
41 "accessibilityStickyKeysSublabel",
42 IDS_MD_SETTINGS_ACCESSIBILITY_STICKY_KEYS_SUBLABEL);
43 html_source->AddLocalizedString(
44 "accessibilityChromeVoxLabel",
45 IDS_MD_SETTINGS_ACCESSIBILITY_CHROMEVOX_LABEL);
46 html_source->AddLocalizedString(
47 "accessibilityChromeVoxSublabel",
48 IDS_MD_SETTINGS_ACCESSIBILITY_CHROMEVOX_SUBLABEL);
49 html_source->AddLocalizedString(
50 "accessibilityScreenMagnifierLabel",
51 IDS_MD_SETTINGS_ACCESSIBILITY_SCREEN_MAGNIFIER_LABEL);
52 html_source->AddLocalizedString(
53 "accessibilityTapDraggingLabel",
54 IDS_MD_SETTINGS_ACCESSIBILITY_TAP_DRAGGING_LABEL);
55 html_source->AddLocalizedString(
56 "accessibilityClickOnStopLabel",
57 IDS_MD_SETTINGS_ACCESSIBILITY_CLICK_ON_STOP_LABEL);
58 html_source->AddLocalizedString(
59 "accessibilityDelayBeforeClickLabel",
60 IDS_MD_SETTINGS_ACCESSIBILITY_DELAY_BEFORE_CLICK_LABEL);
61 html_source->AddLocalizedString(
62 "accessibilityDelayBeforeClickExtremelyShort",
63 IDS_MD_SETTINGS_ACCESSIBILITY_DELAY_BEFORE_CLICK_EXTREMELY_SHORT);
64 html_source->AddLocalizedString(
65 "accessibilityDelayBeforeClickVeryShort",
66 IDS_MD_SETTINGS_ACCESSIBILITY_DELAY_BEFORE_CLICK_VERY_SHORT);
67 html_source->AddLocalizedString(
68 "accessibilityDelayBeforeClickShort",
69 IDS_MD_SETTINGS_ACCESSIBILITY_DELAY_BEFORE_CLICK_SHORT);
70 html_source->AddLocalizedString(
71 "accessibilityDelayBeforeClickLong",
72 IDS_MD_SETTINGS_ACCESSIBILITY_DELAY_BEFORE_CLICK_LONG);
73 html_source->AddLocalizedString(
74 "accessibilityDelayBeforeClickVeryLong",
75 IDS_MD_SETTINGS_ACCESSIBILITY_DELAY_BEFORE_CLICK_VERY_LONG);
76 html_source->AddLocalizedString(
77 "accessibilityOnScreenKeyboardLabel",
78 IDS_MD_SETTINGS_ACCESSIBILITY_ON_SCREEN_KEYBOARD_LABEL);
25 79
26 html_source->SetJsonPath(kLocalizedStringsFile); 80 html_source->SetJsonPath(kLocalizedStringsFile);
27 } 81 }
28 82
29 } // namespace settings 83 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/a11y_page/a11y_page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698