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

Unified 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: jhawkins nit. 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
diff --git a/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc b/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
index 033387991bec58e61248b704a1e0ea6e23d03872..10c74f1ac3db43a86cb032345a6d0ccdca98be77 100644
--- a/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
+++ b/chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc
@@ -13,15 +13,77 @@ namespace {
// the following name. These names must be kept in sync.
const char kLocalizedStringsFile[] = "strings.js";
+void AddA11yStrings(content::WebUIDataSource* html_source) {
+ html_source->AddLocalizedString(
+ "a11yPageTitle", IDS_MD_SETTINGS_ACCESSIBILITY_PAGE_TITLE);
+ html_source->AddLocalizedString(
+ "accessibilityMoreFeaturesLink",
+ IDS_SETTINGS_ACCESSIBILITY_MORE_FEATURES_LINK);
+ html_source->AddLocalizedString(
+ "accessibilityOptionsInMenuLabel",
+ IDS_SETTINGS_ACCESSIBILITY_OPTIONS_IN_MENU_LABEL);
+ html_source->AddLocalizedString(
+ "accessibilityLargeMouseCursorLabel",
+ IDS_SETTINGS_ACCESSIBILITY_LARGE_MOUSE_CURSOR_LABEL);
+ html_source->AddLocalizedString(
+ "accessibilityHighContrastLabel",
+ IDS_SETTINGS_ACCESSIBILITY_HIGH_CONTRAST_LABEL);
+ html_source->AddLocalizedString(
+ "accessibilityStickyKeysLabel",
+ IDS_SETTINGS_ACCESSIBILITY_STICKY_KEYS_LABEL);
+ html_source->AddLocalizedString(
+ "accessibilityStickyKeysSublabel",
+ IDS_SETTINGS_ACCESSIBILITY_STICKY_KEYS_SUBLABEL);
+ html_source->AddLocalizedString(
+ "accessibilityChromeVoxLabel",
+ IDS_SETTINGS_ACCESSIBILITY_CHROMEVOX_LABEL);
+ html_source->AddLocalizedString(
+ "accessibilityChromeVoxSublabel",
+ IDS_SETTINGS_ACCESSIBILITY_CHROMEVOX_SUBLABEL);
+ html_source->AddLocalizedString(
+ "accessibilityScreenMagnifierLabel",
+ IDS_SETTINGS_ACCESSIBILITY_SCREEN_MAGNIFIER_LABEL);
+ html_source->AddLocalizedString(
+ "accessibilityTapDraggingLabel",
+ IDS_SETTINGS_ACCESSIBILITY_TAP_DRAGGING_LABEL);
+ html_source->AddLocalizedString(
+ "accessibilityClickOnStopLabel",
+ IDS_SETTINGS_ACCESSIBILITY_CLICK_ON_STOP_LABEL);
+ html_source->AddLocalizedString(
+ "accessibilityDelayBeforeClickLabel",
+ IDS_SETTINGS_ACCESSIBILITY_DELAY_BEFORE_CLICK_LABEL);
+ html_source->AddLocalizedString(
+ "accessibilityDelayBeforeClickExtremelyShort",
+ IDS_SETTINGS_ACCESSIBILITY_DELAY_BEFORE_CLICK_EXTREMELY_SHORT);
+ html_source->AddLocalizedString(
+ "accessibilityDelayBeforeClickVeryShort",
+ IDS_SETTINGS_ACCESSIBILITY_DELAY_BEFORE_CLICK_VERY_SHORT);
+ html_source->AddLocalizedString(
+ "accessibilityDelayBeforeClickShort",
+ IDS_SETTINGS_ACCESSIBILITY_DELAY_BEFORE_CLICK_SHORT);
+ html_source->AddLocalizedString(
+ "accessibilityDelayBeforeClickLong",
+ IDS_SETTINGS_ACCESSIBILITY_DELAY_BEFORE_CLICK_LONG);
+ html_source->AddLocalizedString(
+ "accessibilityDelayBeforeClickVeryLong",
+ IDS_SETTINGS_ACCESSIBILITY_DELAY_BEFORE_CLICK_VERY_LONG);
+ html_source->AddLocalizedString(
+ "accessibilityOnScreenKeyboardLabel",
+ IDS_SETTINGS_ACCESSIBILITY_ON_SCREEN_KEYBOARD_LABEL);
+}
+
+void AddDownloadsStrings(content::WebUIDataSource* html_source) {
+ html_source->AddLocalizedString(
+ "downloadsPageTitle", IDS_MD_SETTINGS_DOWNLOADS_PAGE_TITLE);
+}
+
} // namespace
namespace settings {
void AddLocalizedStrings(content::WebUIDataSource* html_source) {
- html_source->AddLocalizedString(
- "a11yPageTitle", IDS_MD_SETTINGS_ACCESSIBILITY_PAGE_TITLE);
- html_source->AddLocalizedString(
- "downloadsPageTitle", IDS_MD_SETTINGS_DOWNLOADS_PAGE_TITLE);
+ AddA11yStrings(html_source);
+ AddDownloadsStrings(html_source);
html_source->SetJsonPath(kLocalizedStringsFile);
}
« 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