From bc55610dda2dd62faed272b81315c0e57727e29d Mon Sep 17 00:00:00 2001 From: diosmosis <benaka@piwik.pro> Date: Sat, 13 Sep 2014 20:12:24 -0700 Subject: [PATCH] Use double colon in piwikTranslate directive so filters can be used in replacement text. --- plugins/CoreHome/angularjs/common/directives/translate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/CoreHome/angularjs/common/directives/translate.js b/plugins/CoreHome/angularjs/common/directives/translate.js index 46c2f99ff1..17e0638476 100644 --- a/plugins/CoreHome/angularjs/common/directives/translate.js +++ b/plugins/CoreHome/angularjs/common/directives/translate.js @@ -14,7 +14,7 @@ * * Usage: * <span piwik-translate="Plugin_TranslationToken"> - * first arg:<strong>second arg</strong>:{{ unsafeDataThatWillBeSanitized }} + * first arg::<strong>second arg</strong>::{{ unsafeDataThatWillBeSanitized }} * </span> */ angular.module('piwikApp.directive').directive('piwikTranslate', function() { @@ -24,7 +24,7 @@ angular.module('piwikApp.directive').directive('piwikTranslate', function() { piwikTranslate: '@' }, compile: function(element, attrs) { - var parts = element.html().split(':'), + var parts = element.html().split('::'), translated = _pk_translate(attrs.piwikTranslate, parts); element.html(translated); } -- GitLab