diff options
author | diosmosis <benaka@piwik.pro> | 2014-09-14 07:12:24 +0400 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-09-14 07:12:24 +0400 |
commit | bc55610dda2dd62faed272b81315c0e57727e29d (patch) | |
tree | a6477002ee12e13861661c42e79776b8d95a8029 /plugins/CoreHome/angularjs/common/directives | |
parent | ade74a4def787b234e6e79a1a6e0a055accfa6ba (diff) |
Use double colon in piwikTranslate directive so filters can be used in replacement text.
Diffstat (limited to 'plugins/CoreHome/angularjs/common/directives')
-rw-r--r-- | plugins/CoreHome/angularjs/common/directives/translate.js | 4 |
1 files 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); } |