From 89469d38ae581f5f426d9566852df844071e315c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 30 Nov 2018 17:06:07 +0100 Subject: [PATCH] printer safety: Fix localization of warning --- .../printer_safety_check/static/js/printer_safety_check.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/plugins/printer_safety_check/static/js/printer_safety_check.js b/src/octoprint/plugins/printer_safety_check/static/js/printer_safety_check.js index 34e75aa97..64a7cb855 100644 --- a/src/octoprint/plugins/printer_safety_check/static/js/printer_safety_check.js +++ b/src/octoprint/plugins/printer_safety_check/static/js/printer_safety_check.js @@ -23,7 +23,7 @@ $(function() { self.fromResponse = function(data) { var warnings = []; _.each(data, function(message, warning_type) { - warnings.push({type: warning_type, message: message}); + warnings.push({type: warning_type, message: gettext(message)}); }); self.warnings(warnings); };