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:
authorBenaka Moorthi <benaka.moorthi@gmail.com>2013-09-11 02:58:14 +0400
committerBenaka Moorthi <benaka.moorthi@gmail.com>2013-09-11 02:58:14 +0400
commit2f6866a992bf2f42717bbada07ae867c335f154a (patch)
tree60baa2388735f8d9b9bc53134b81c482a3af5c02 /plugins/Live
parent7ea067760f53e0069830469a688fdde32ec67a00 (diff)
Make sure 'hide map' and 'show map' have non breaking spaces in them.
Diffstat (limited to 'plugins/Live')
-rw-r--r--plugins/Live/javascripts/visitorProfile.js4
-rw-r--r--plugins/Live/templates/getVisitorProfilePopup.twig2
2 files changed, 4 insertions, 2 deletions
diff --git a/plugins/Live/javascripts/visitorProfile.js b/plugins/Live/javascripts/visitorProfile.js
index a926dba375..12f93c35e5 100644
--- a/plugins/Live/javascripts/visitorProfile.js
+++ b/plugins/Live/javascripts/visitorProfile.js
@@ -125,7 +125,9 @@
$map.slideUp('slow');
var newLabel = 'Live_ShowMap_js';
}
- $(this).text(_pk_translate(newLabel));
+
+ newLabel = _pk_translate(newLabel).replace(' ', '\xA0');
+ $(this).text('(' + newLabel + ')');
return false;
});
diff --git a/plugins/Live/templates/getVisitorProfilePopup.twig b/plugins/Live/templates/getVisitorProfilePopup.twig
index b840c3fe76..8b0fd12dc1 100644
--- a/plugins/Live/templates/getVisitorProfilePopup.twig
+++ b/plugins/Live/templates/getVisitorProfilePopup.twig
@@ -67,7 +67,7 @@
{%- for entry in visitorData.countries -%}
{{- 'Live_VisitsFrom'|translate('<strong>', entry.nb_visits, '</strong>')|raw }} <img src="{{ entry.flag }}" title="{{ entry.prettyName }}"/>&nbsp;{{ entry.prettyName }}{% if not loop.last %}, {% endif %}
{%- endfor %}
- <a class="visitor-profile-show-map" href="#">({{ 'Live_ShowMap_js'|translate }})</a>
+ <a class="visitor-profile-show-map" href="#">({{ 'Live_ShowMap_js'|translate|replace({' ': '&nbsp;'})|raw }})</a>
</p>
<div class="visitor-profile-map" style="display:none">
{{ userCountryMap|raw }}