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:
authorStefan Giehl <stefan@matomo.org>2022-02-09 05:52:45 +0300
committerGitHub <noreply@github.com>2022-02-09 05:52:45 +0300
commit01ab2224dc5993a881a65ef21b676490e0050357 (patch)
tree4b006e1ed80e27d451a5b9ccdf43794288fe58af /plugins/UserCountryMap/javascripts/visitor-map.js
parentb78406dc327eab70b2a58bc56466e607033e0571 (diff)
Fix translation for unlocated visits in visitor map (#18759)
Diffstat (limited to 'plugins/UserCountryMap/javascripts/visitor-map.js')
-rw-r--r--plugins/UserCountryMap/javascripts/visitor-map.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/UserCountryMap/javascripts/visitor-map.js b/plugins/UserCountryMap/javascripts/visitor-map.js
index 34ae214925..ffbbc236d7 100644
--- a/plugins/UserCountryMap/javascripts/visitor-map.js
+++ b/plugins/UserCountryMap/javascripts/visitor-map.js
@@ -705,10 +705,11 @@
}
$('.unlocated-stats').html(
- $('.unlocated-stats').data('tpl')
- .replace('%s', unlocated)
- .replace('%p', '(' + formatPercentage(unlocated / total) + ')')
- .replace('%c', UserCountryMap.countriesByIso[self.lastSelected].name)
+ _pk_translate('UserCountryMap_Unlocated', [
+ unlocated,
+ '(' + formatPercentage(unlocated / total) + ')',
+ UserCountryMap.countriesByIso[self.lastSelected].name
+ ])
);
$('.UserCountryMap-info-btn').show();