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 "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 Loading... |
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 |
OLD | NEW |