From: Moritz Bunkus Date: Tue, 7 Apr 2015 09:31:46 +0000 (+0200) Subject: javascript_setup: Übersetzungen escapen X-Git-Tag: release-3.2.1~11 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=16a4b26b371125be2c386afdf7a27a579c7a96f4;p=kivitendo-erp.git javascript_setup: Übersetzungen escapen --- diff --git a/templates/webpages/layout/javascript_setup.js b/templates/webpages/layout/javascript_setup.js index 79cc654ac..8deb9e945 100644 --- a/templates/webpages/layout/javascript_setup.js +++ b/templates/webpages/layout/javascript_setup.js @@ -1,10 +1,10 @@ -[%- USE T8 %] +[%- USE LxERP %] [%- USE JavaScript %] [%- USE JSON %] kivi.myconfig = [% JSON.json(MYCONFIG) %]; $(function() { - setupPoints(kivi.myconfig.numberformat, '[% 'wrongformat' | $T8 %]'); - setupDateFormat(kivi.myconfig.dateformat, '[% 'Falsches Datumsformat!' | $T8 %]'); + setupPoints(kivi.myconfig.numberformat, '[% JavaScript.escape(LxERP.t8("wrongformat")) %]'); + setupDateFormat(kivi.myconfig.dateformat, '[% JavaScript.escape(LxERP.t8("Falsches Datumsformat!")) %]'); $.datepicker.setDefaults( $.extend({}, $.datepicker.regional[kivi.myconfig.countrycode], {