]> git.openstreetmap.org Git - rails.git/commitdiff
Fix "view larger map" link in HTML sharing
authorTom Hughes <tom@compton.nu>
Sun, 11 Aug 2013 23:24:32 +0000 (00:24 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 11 Aug 2013 23:24:32 +0000 (00:24 +0100)
app/assets/javascripts/leaflet.share.js
config/locales/en.yml

index b53524f25cae13b97b7d3521d4bb8be22f83c223..b5f45e01d3c683b68d0607b4e051676df15281cc 100644 (file)
@@ -304,7 +304,8 @@ L.OSM.share = function (options) {
         '<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="' +
           escapeHTML('http://' + OSM.SERVER_URL + '/export/embed.html?' + $.param(params)) +
           '" style="border: 1px solid black"></iframe><br/>' +
-          '<small><a href="' + escapeHTML(map.getUrl(marker)) + '</a></small>');
+          '<small><a href="' + escapeHTML(map.getUrl(marker)) + '">' +
+          escapeHTML(I18n.t('javascripts.share.view_larger_map')) + '</a></small>');
 
       // Image
 
index c01abe71a133a33beed599c54a26c8618138b276..adc98d58506bfd8d1092e76c19bc3626b6cce648 100644 (file)
@@ -459,7 +459,6 @@ en:
       click_add_marker: "Click on the map to add a marker"
       change_marker: "Change marker position"
       add_marker: "Add a marker to the map"
-      view_larger_map: "View Larger Map"
   geocoder:
     search:
       title:
@@ -2065,6 +2064,7 @@ en:
       include_marker: "Include marker"
       center_marker: "Center map on marker"
       paste_html: "Paste HTML to embed in website"
+      view_larger_map: "View Larger Map"
     key:
       title: "Map Key"
       tooltip: "Map Key"