diff options
author | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-09-11 02:58:14 +0400 |
---|---|---|
committer | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-09-11 02:58:14 +0400 |
commit | 2f6866a992bf2f42717bbada07ae867c335f154a (patch) | |
tree | 60baa2388735f8d9b9bc53134b81c482a3af5c02 /plugins/Live | |
parent | 7ea067760f53e0069830469a688fdde32ec67a00 (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.js | 4 | ||||
-rw-r--r-- | plugins/Live/templates/getVisitorProfilePopup.twig | 2 |
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 }}"/> {{ 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({' ': ' '})|raw }})</a> </p> <div class="visitor-profile-map" style="display:none"> {{ userCountryMap|raw }} |