Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAltamash Shaikh <altu9594@gmail.com>2022-03-15 12:04:11 +0300
committerGitHub <noreply@github.com>2022-03-15 12:04:11 +0300
commitafbe9c262577864716e3386468f0eb93b79ea2d5 (patch)
tree97a71cde37ecff0b2bca5019ed111394b7f97fed /plugins
parenta29f4580429e52c2bff678c500c69d514087ec9e (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.js2
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;