diff options
author | Altamash Shaikh <altu9594@gmail.com> | 2022-03-15 12:04:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-15 12:04:11 +0300 |
commit | afbe9c262577864716e3386468f0eb93b79ea2d5 (patch) | |
tree | 97a71cde37ecff0b2bca5019ed111394b7f97fed /plugins | |
parent | a29f4580429e52c2bff678c500c69d514087ec9e (diff) |
Fix added to replace translation strings with %% to % (#18940)
* Fix added to replace transaltion strings with %% to %
* simplified to else instead of elseIF
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Morpheus/javascripts/piwikHelper.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/Morpheus/javascripts/piwikHelper.js b/plugins/Morpheus/javascripts/piwikHelper.js index 077d698ddf..2c232ea666 100644 --- a/plugins/Morpheus/javascripts/piwikHelper.js +++ b/plugins/Morpheus/javascripts/piwikHelper.js @@ -13,6 +13,8 @@ function _pk_translate(translationStringId, values) { if (typeof values != 'undefined' && values && values.length) { values.unshift(translation); return sprintf.apply(null, values); + } else { + translation = translation.replaceAll('%%', '%'); } return translation; |