//= require leaflet
//= require leaflet.osm
+//= require i18n/translations
window.onload = function () {
+ if (navigator.languages) {
+ I18n.locale = navigator.languages[0];
+ } else if (navigator.language) {
+ I18n.locale = navigator.language;
+ }
+
var query = (window.location.search || '?').substr(1),
args = {};
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) {