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

Unified Diff: chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js

Issue 1703703002: MD Settings: Manage search engines, localizing/adding strings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@manage_search_engines_ui1
Patch Set: Update string based on Alan's latest response. Created 4 years, 10 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
Index: chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js
diff --git a/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js b/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js
index 42d344ec57f968231fb98c6d6787d91f3d98e0cd..10e4e29fe21f9751c80ca9edf0f5f4f0f8675ce9 100644
--- a/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js
+++ b/chrome/browser/resources/settings/search_engines_page/search_engine_dialog.js
@@ -55,18 +55,18 @@ Polymer({
/** @override */
ready: function() {
if (this.model) {
- // TODO(dpapad): Localize strings.
- this.dialogTitle_ = 'Edit search engine';
- this.actionButtonText_ = 'Edit';
+ this.dialogTitle_ =
+ loadTimeData.getString('searchEnginesEditSearchEngine');
+ this.actionButtonText_ = loadTimeData.getString('save');
// If editing an existing search engine, pre-populate the input fields.
this.searchEngine_ = this.model.displayName;
this.keyword_ = this.model.keyword;
this.queryUrl_ = this.model.url;
} else {
- // TODO(dpapad): Localize string.
- this.dialogTitle_ = 'Add search engine';
- this.actionButtonText_ = loadTimeData.getString('searchEnginesAdd');
+ this.dialogTitle_ =
+ loadTimeData.getString('searchEnginesAddSearchEngine');
+ this.actionButtonText_ = loadTimeData.getString('add');
}
},

Powered by Google App Engine
This is Rietveld 408576698