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

Unified Diff: ui/webui/resources/js/i18n_behavior.js

Issue 1842403004: MD Settings: Certificate manager, move "Import" button to the tab level. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comment. Created 4 years, 8 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
« no previous file with comments | « chrome/test/data/webui/settings/certificate_manager_page_test.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/js/i18n_behavior.js
diff --git a/ui/webui/resources/js/i18n_behavior.js b/ui/webui/resources/js/i18n_behavior.js
index 9bb488da93c718df87f9ccf2c0a05672bd6469f0..c6b06a418bc59aa1ae79dada2e9f9a17e15c99b8 100644
--- a/ui/webui/resources/js/i18n_behavior.js
+++ b/ui/webui/resources/js/i18n_behavior.js
@@ -17,10 +17,11 @@
var I18nBehavior = {
/**
* @param {string} id The ID of the string to translate.
- * @param {...string} var_args Placeholders required by the string ($1-9).
+ * @param {...string=} var_args Placeholders required by the string ($0-9).
michaelpg 2016/04/05 04:46:02 (ERROR) Error in: i18n_behavior.js ## /usr/local/g
dpapad 2016/04/05 16:50:44 This is addressed by https://codereview.chromium.o
* @return {string} A translated, substituted string.
*/
i18n: function(id, var_args) {
- return loadTimeData.getStringF.apply(loadTimeData, arguments);
+ return arguments.length == 1 ? loadTimeData.getString(id) :
+ loadTimeData.getStringF.apply(loadTimeData, arguments);
},
};
« no previous file with comments | « chrome/test/data/webui/settings/certificate_manager_page_test.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698