diff options
author | Stefan Giehl <stefan@matomo.org> | 2022-02-09 05:52:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-09 05:52:45 +0300 |
commit | 01ab2224dc5993a881a65ef21b676490e0050357 (patch) | |
tree | 4b006e1ed80e27d451a5b9ccdf43794288fe58af /plugins/UserCountryMap/javascripts/visitor-map.js | |
parent | b78406dc327eab70b2a58bc56466e607033e0571 (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.js | 9 |
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(); |