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

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

Issue 1060163002: Localize the Downloads page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/downloads_page/downloads_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 {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 "accessibilityDelayBeforeClickVeryLong", 68 "accessibilityDelayBeforeClickVeryLong",
69 IDS_SETTINGS_ACCESSIBILITY_DELAY_BEFORE_CLICK_VERY_LONG); 69 IDS_SETTINGS_ACCESSIBILITY_DELAY_BEFORE_CLICK_VERY_LONG);
70 html_source->AddLocalizedString( 70 html_source->AddLocalizedString(
71 "accessibilityOnScreenKeyboardLabel", 71 "accessibilityOnScreenKeyboardLabel",
72 IDS_SETTINGS_ACCESSIBILITY_ON_SCREEN_KEYBOARD_LABEL); 72 IDS_SETTINGS_ACCESSIBILITY_ON_SCREEN_KEYBOARD_LABEL);
73 } 73 }
74 74
75 void AddDownloadsStrings(content::WebUIDataSource* html_source) { 75 void AddDownloadsStrings(content::WebUIDataSource* html_source) {
76 html_source->AddLocalizedString( 76 html_source->AddLocalizedString(
77 "downloadsPageTitle", IDS_MD_SETTINGS_DOWNLOADS_PAGE_TITLE); 77 "downloadsPageTitle", IDS_MD_SETTINGS_DOWNLOADS_PAGE_TITLE);
78 html_source->AddLocalizedString(
79 "downloadsLocationLabel", IDS_SETTINGS_DOWNLOADS_LOCATION_LABEL);
80 html_source->AddLocalizedString(
81 "downloadsChangeLocationButton",
82 IDS_SETTINGS_DOWNLOADS_CHANGE_LOCATION_BUTTON);
83 html_source->AddLocalizedString(
84 "downloadsPromptForDownloadLabel",
85 IDS_SETTINGS_DOWNLOADS_PROMPT_FOR_DOWNLOAD_LABEL);
78 } 86 }
79 87
80 } // namespace 88 } // namespace
81 89
82 namespace settings { 90 namespace settings {
83 91
84 void AddLocalizedStrings(content::WebUIDataSource* html_source) { 92 void AddLocalizedStrings(content::WebUIDataSource* html_source) {
85 AddA11yStrings(html_source); 93 AddA11yStrings(html_source);
86 AddDownloadsStrings(html_source); 94 AddDownloadsStrings(html_source);
87 95
88 html_source->SetJsonPath(kLocalizedStringsFile); 96 html_source->SetJsonPath(kLocalizedStringsFile);
89 } 97 }
90 98
91 } // namespace settings 99 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/downloads_page/downloads_page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698