]> git.openstreetmap.org Git - rails.git/commitdiff
Make "Report a problem" link in embeddable map translateable
authorFlorian Schäfer <florian@schaeferban.de>
Fri, 15 Jan 2016 21:05:46 +0000 (22:05 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 9 Mar 2016 19:26:59 +0000 (19:26 +0000)
app/assets/javascripts/embed.js.erb
config/locales/en.yml

index 256b47146b70f430108b0da9b190731c054c078d..a8fe29fce9d96cc75902762f8ab63b3954430ea6 100644 (file)
@@ -58,7 +58,7 @@ window.onload = function () {
 L.Control.OSMReportAProblem = L.Control.Attribution.extend({
   options: {
     position: 'bottomright',
-    prefix: '<a href="http://www.openstreetmap.org/fixthemap?lat={x}&lon={y}&zoom={z}" target="_blank">Report a problem</a>'
+    prefix: '<a href="http://www.openstreetmap.org/fixthemap?lat={x}&lon={y}&zoom={z}" target="_blank">'+I18n.t('javascripts.embed.report_problem')+'</a>'
   },
 
   onAdd: function (map) {
index 102a13d020cc67b1b21dffec10a71b35382e5f0b..776fae2dae7861496f8b2dc671bc35d2d5e690ec 100644 (file)
@@ -2172,6 +2172,8 @@ en:
       center_marker: "Center map on marker"
       paste_html: "Paste HTML to embed in website"
       view_larger_map: "View Larger Map"
+    embed:
+      report_problem: "Report a problem"
     key:
       title: "Map Key"
       tooltip: "Map Key"