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

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: 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 71797005c8bd5353de2f5327d75fd5ce8f31db9f..e6d77494fdf658c20e908bb5044765ca321ab514 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
@@ -50,18 +50,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