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

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

Issue 2758073002: MD Settings: Strings sweep. (Closed)
Patch Set: Created 3 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/command_line.h" 9 #include "base/command_line.h"
10 #include "base/i18n/number_formatting.h" 10 #include "base/i18n/number_formatting.h"
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 {"bluetoothStartConnecting", IDS_SETTINGS_BLUETOOTH_START_CONNECTING}, 361 {"bluetoothStartConnecting", IDS_SETTINGS_BLUETOOTH_START_CONNECTING},
362 {"bluetoothEnterKey", IDS_OPTIONS_SETTINGS_BLUETOOTH_ENTER_KEY}, 362 {"bluetoothEnterKey", IDS_OPTIONS_SETTINGS_BLUETOOTH_ENTER_KEY},
363 // These ids are generated in JS using 'bluetooth_' + a value from 363 // These ids are generated in JS using 'bluetooth_' + a value from
364 // bluetoothPrivate.PairingEventType (see bluetooth_private.idl). 364 // bluetoothPrivate.PairingEventType (see bluetooth_private.idl).
365 // 'keysEntered', and 'requestAuthorization' have no associated message. 365 // 'keysEntered', and 'requestAuthorization' have no associated message.
366 {"bluetooth_requestPincode", IDS_SETTINGS_BLUETOOTH_REQUEST_PINCODE}, 366 {"bluetooth_requestPincode", IDS_SETTINGS_BLUETOOTH_REQUEST_PINCODE},
367 {"bluetooth_displayPincode", IDS_SETTINGS_BLUETOOTH_DISPLAY_PINCODE}, 367 {"bluetooth_displayPincode", IDS_SETTINGS_BLUETOOTH_DISPLAY_PINCODE},
368 {"bluetooth_requestPasskey", IDS_SETTINGS_BLUETOOTH_REQUEST_PASSKEY}, 368 {"bluetooth_requestPasskey", IDS_SETTINGS_BLUETOOTH_REQUEST_PASSKEY},
369 {"bluetooth_displayPasskey", IDS_SETTINGS_BLUETOOTH_DISPLAY_PASSKEY}, 369 {"bluetooth_displayPasskey", IDS_SETTINGS_BLUETOOTH_DISPLAY_PASSKEY},
370 {"bluetooth_confirmPasskey", IDS_SETTINGS_BLUETOOTH_CONFIRM_PASSKEY}, 370 {"bluetooth_confirmPasskey", IDS_SETTINGS_BLUETOOTH_CONFIRM_PASSKEY},
371 // These ids are generated in JS using 'bluetooth_result_' + a value from 371 // These ids are generated in JS using 'bluetooth_connect_' + a value from
372 // bluetoothPrivate.ConnectResultType (see bluetooth_private.idl). 372 // bluetoothPrivate.ConnectResultType (see bluetooth_private.idl).
373 {"bluetooth_connect_attributeLengthInvalid", 373 {"bluetooth_connect_attributeLengthInvalid",
374 IDS_SETTINGS_BLUETOOTH_CONNECT_ATTRIBUTE_LENGTH_INVALID}, 374 IDS_SETTINGS_BLUETOOTH_CONNECT_ATTRIBUTE_LENGTH_INVALID},
375 {"bluetooth_connect_authCanceled", 375 {"bluetooth_connect_authCanceled",
376 IDS_SETTINGS_BLUETOOTH_CONNECT_AUTH_CANCELED}, 376 IDS_SETTINGS_BLUETOOTH_CONNECT_AUTH_CANCELED},
377 {"bluetooth_connect_authFailed", 377 {"bluetooth_connect_authFailed",
378 IDS_SETTINGS_BLUETOOTH_CONNECT_AUTH_FAILED}, 378 IDS_SETTINGS_BLUETOOTH_CONNECT_AUTH_FAILED},
379 {"bluetooth_connect_authRejected", 379 {"bluetooth_connect_authRejected",
380 IDS_SETTINGS_BLUETOOTH_CONNECT_AUTH_REJECTED}, 380 IDS_SETTINGS_BLUETOOTH_CONNECT_AUTH_REJECTED},
381 {"bluetooth_connect_authTimeout", 381 {"bluetooth_connect_authTimeout",
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after
1502 1502
1503 void AddSearchStrings(content::WebUIDataSource* html_source) { 1503 void AddSearchStrings(content::WebUIDataSource* html_source) {
1504 LocalizedString localized_strings[] = { 1504 LocalizedString localized_strings[] = {
1505 {"searchPageTitle", IDS_SETTINGS_SEARCH}, 1505 {"searchPageTitle", IDS_SETTINGS_SEARCH},
1506 {"searchEnginesManage", IDS_SETTINGS_SEARCH_MANAGE_SEARCH_ENGINES}, 1506 {"searchEnginesManage", IDS_SETTINGS_SEARCH_MANAGE_SEARCH_ENGINES},
1507 {"searchOkGoogleLabel", IDS_SETTINGS_SEARCH_OK_GOOGLE_LABEL}, 1507 {"searchOkGoogleLabel", IDS_SETTINGS_SEARCH_OK_GOOGLE_LABEL},
1508 {"searchOkGoogleSubtextAlwaysOn", 1508 {"searchOkGoogleSubtextAlwaysOn",
1509 IDS_SETTINGS_SEARCH_OK_GOOGLE_SUBTEXT_ALWAYS_ON}, 1509 IDS_SETTINGS_SEARCH_OK_GOOGLE_SUBTEXT_ALWAYS_ON},
1510 {"searchOkGoogleSubtextNoHardware", 1510 {"searchOkGoogleSubtextNoHardware",
1511 IDS_SETTINGS_SEARCH_OK_GOOGLE_SUBTEXT_NO_HARDWARE}, 1511 IDS_SETTINGS_SEARCH_OK_GOOGLE_SUBTEXT_NO_HARDWARE},
1512 {"searchOkGoogleLearnMore", IDS_SETTINGS_SEARCH_OK_GOOGLE_LEARN_MORE},
hcarmona 2017/03/20 18:19:30 How did you find this string was no longer used?
scottchen 2017/03/20 21:54:00 I manually checked the usages of every single-sent
1513 {"searchOkGoogleAudioHistoryLabel", 1512 {"searchOkGoogleAudioHistoryLabel",
1514 IDS_SETTINGS_SEARCH_OK_GOOGLE_AUDIO_HISTORY_LABEL}, 1513 IDS_SETTINGS_SEARCH_OK_GOOGLE_AUDIO_HISTORY_LABEL},
1515 {"searchOkGoogleAudioHistorySubtext", 1514 {"searchOkGoogleAudioHistorySubtext",
1516 IDS_SETTINGS_SEARCH_OK_GOOGLE_AUDIO_HISTORY_SUBTEXT}, 1515 IDS_SETTINGS_SEARCH_OK_GOOGLE_AUDIO_HISTORY_SUBTEXT},
1517 {"searchOkGoogleRetrain", IDS_SETTINGS_SEARCH_OK_GOOGLE_RETRAIN}, 1516 {"searchOkGoogleRetrain", IDS_SETTINGS_SEARCH_OK_GOOGLE_RETRAIN},
1518 {"searchEnableGoogleNowLabel", IDS_SETTINGS_SEARCH_ENABLE_GOOGLE_NOW}, 1517 {"searchEnableGoogleNowLabel", IDS_SETTINGS_SEARCH_ENABLE_GOOGLE_NOW},
1519 }; 1518 };
1520 AddLocalizedStringsBulk(html_source, localized_strings, 1519 AddLocalizedStringsBulk(html_source, localized_strings,
1521 arraysize(localized_strings)); 1520 arraysize(localized_strings));
1522 html_source->AddString("hotwordLearnMoreUrl", 1521 html_source->AddString("hotwordLearnMoreUrl",
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
1984 1983
1985 #if defined(OS_CHROMEOS) 1984 #if defined(OS_CHROMEOS)
1986 chromeos::network_element::AddLocalizedStrings(html_source); 1985 chromeos::network_element::AddLocalizedStrings(html_source);
1987 #endif 1986 #endif
1988 policy_indicator::AddLocalizedStrings(html_source); 1987 policy_indicator::AddLocalizedStrings(html_source);
1989 1988
1990 html_source->SetJsonPath(kLocalizedStringsFile); 1989 html_source->SetJsonPath(kLocalizedStringsFile);
1991 } 1990 }
1992 1991
1993 } // namespace settings 1992 } // namespace settings
OLDNEW
« chrome/app/settings_strings.grdp ('K') | « chrome/app/settings_strings.grdp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698