From 0e9b2163b3b9a437f95216ae5dfd4eff6ca668b4 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Thu, 11 Feb 2016 14:09:05 +0000 Subject: [PATCH] Fixed entities in strings with .nocopy Closes #1060 --- app/js/lib/i18n.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/js/lib/i18n.js b/app/js/lib/i18n.js index 03db0d12..da3fe49b 100644 --- a/app/js/lib/i18n.js +++ b/app/js/lib/i18n.js @@ -114,10 +114,11 @@ angular.module('myApp.i18n', ['izhukov.utils']) formats.each(function(index, element) { var format = angular.element(element); var msgid = format.attr("my-i18n") || format.attr("msgid") || format.attr("my-i18n-format") || format.html().replace(/\s+/g, ' ').trim(); - var msgstr = _(msgid, params); if (format.hasClass('nocopy')) { + var msgstr = _(msgid + '_raw', params); format.attr('data-content', msgstr); } else { + var msgstr = _(msgid, params); format.html(msgstr); } });