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

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

Issue 1753653002: MD Settings: First half of Device > Keyboard sub-page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 4 years, 9 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
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 <string> 7 #include <string>
8 8
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 "scrollLabel", IDS_SETTINGS_SCROLL_LABEL); 297 "scrollLabel", IDS_SETTINGS_SCROLL_LABEL);
298 html_source->AddString( 298 html_source->AddString(
299 "naturalScrollLabel", 299 "naturalScrollLabel",
300 l10n_util::GetStringFUTF16( 300 l10n_util::GetStringFUTF16(
301 IDS_SETTINGS_NATURAL_SCROLL_LABEL, 301 IDS_SETTINGS_NATURAL_SCROLL_LABEL,
302 base::ASCIIToUTF16(chrome::kNaturalScrollHelpURL))); 302 base::ASCIIToUTF16(chrome::kNaturalScrollHelpURL)));
303 html_source->AddLocalizedString( 303 html_source->AddLocalizedString(
304 "traditionalScrollLabel", IDS_SETTINGS_TRADITIONAL_SCROLL_LABEL); 304 "traditionalScrollLabel", IDS_SETTINGS_TRADITIONAL_SCROLL_LABEL);
305 html_source->AddLocalizedString( 305 html_source->AddLocalizedString(
306 "keyboardTitle", IDS_SETTINGS_KEYBOARD_TITLE); 306 "keyboardTitle", IDS_SETTINGS_KEYBOARD_TITLE);
307 html_source->AddLocalizedString(
308 "keyboardKeySearchLabel", IDS_SETTINGS_KEYBOARD_KEY_SEARCH_LABEL);
309 html_source->AddLocalizedString(
310 "keyboardKeyCtrlLabel", IDS_SETTINGS_KEYBOARD_KEY_LEFT_CTRL_LABEL);
311 html_source->AddLocalizedString(
312 "keyboardKeyAltLabel", IDS_SETTINGS_KEYBOARD_KEY_LEFT_ALT_LABEL);
313 html_source->AddLocalizedString(
314 "keyboardKeyCapsLockLabel", IDS_SETTINGS_KEYBOARD_KEY_CAPS_LOCK_LABEL);
315 html_source->AddLocalizedString(
316 "keyboardKeyDiamondLabel",
317 IDS_SETTINGS_KEYBOARD_KEY_DIAMOND_LABEL);
318 html_source->AddLocalizedString(
319 "keyboardKeySearch", IDS_SETTINGS_KEYBOARD_KEY_SEARCH);
320 html_source->AddLocalizedString(
321 "keyboardKeyCtrl", IDS_SETTINGS_KEYBOARD_KEY_LEFT_CTRL);
322 html_source->AddLocalizedString(
323 "keyboardKeyAlt", IDS_SETTINGS_KEYBOARD_KEY_LEFT_ALT);
324 html_source->AddLocalizedString(
325 "keyboardKeyDisabled", IDS_SETTINGS_KEYBOARD_KEY_DISABLED);
326 html_source->AddLocalizedString(
327 "keyboardKeyCapsLock", IDS_SETTINGS_KEYBOARD_KEY_CAPS_LOCK);
328 html_source->AddLocalizedString(
329 "keyboardKeyEscape", IDS_SETTINGS_KEYBOARD_KEY_ESCAPE);
330 html_source->AddLocalizedString(
331 "keyboardSendFunctionKeys", IDS_SETTINGS_KEYBOARD_SEND_FUNCTION_KEYS);
332 html_source->AddLocalizedString(
333 "keyboardSendFunctionKeysDescription",
334 IDS_SETTINGS_KEYBOARD_SEND_FUNCTION_KEYS_DESCRIPTION);
307 } 335 }
308 #endif 336 #endif
309 337
310 void AddDownloadsStrings(content::WebUIDataSource* html_source) { 338 void AddDownloadsStrings(content::WebUIDataSource* html_source) {
311 html_source->AddLocalizedString( 339 html_source->AddLocalizedString(
312 "downloadsPageTitle", IDS_SETTINGS_DOWNLOADS); 340 "downloadsPageTitle", IDS_SETTINGS_DOWNLOADS);
313 html_source->AddLocalizedString( 341 html_source->AddLocalizedString(
314 "downloadLocation", IDS_SETTINGS_DOWNLOAD_LOCATION); 342 "downloadLocation", IDS_SETTINGS_DOWNLOAD_LOCATION);
315 html_source->AddLocalizedString( 343 html_source->AddLocalizedString(
316 "changeDownloadLocation", IDS_SETTINGS_CHANGE_DOWNLOAD_LOCATION); 344 "changeDownloadLocation", IDS_SETTINGS_CHANGE_DOWNLOAD_LOCATION);
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
959 AddSiteSettingsStrings(html_source); 987 AddSiteSettingsStrings(html_source);
960 AddUsersStrings(html_source); 988 AddUsersStrings(html_source);
961 AddWebContentStrings(html_source); 989 AddWebContentStrings(html_source);
962 990
963 policy_indicator::AddLocalizedStrings(html_source); 991 policy_indicator::AddLocalizedStrings(html_source);
964 992
965 html_source->SetJsonPath(kLocalizedStringsFile); 993 html_source->SetJsonPath(kLocalizedStringsFile);
966 } 994 }
967 995
968 } // namespace settings 996 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698