Adding internationalization in links share and layers.

This commit is contained in:
Omar Vega 2013-09-29 11:36:18 -05:00 committed by Tom Hughes
parent 1104165e7b
commit 2d0dcbd9d0
3 changed files with 3 additions and 2 deletions

View file

@ -10,7 +10,7 @@ L.OSM.layers = function(options) {
var button = $('<a>') var button = $('<a>')
.attr('class', 'control-button') .attr('class', 'control-button')
.attr('href', '#') .attr('href', '#')
.attr('title', 'Layers') .attr('title', I18n.t('javascripts.map.layers.title'))
.html('<span class="icon layers"></span>') .html('<span class="icon layers"></span>')
.on('click', toggle) .on('click', toggle)
.appendTo($container); .appendTo($container);

View file

@ -13,7 +13,7 @@ L.OSM.share = function (options) {
var button = $('<a>') var button = $('<a>')
.attr('class', 'control-button') .attr('class', 'control-button')
.attr('href', '#') .attr('href', '#')
.attr('title', 'Share') .attr('title', I18n.t('javascripts.share.title'))
.html('<span class="icon share"></span>') .html('<span class="icon share"></span>')
.on('click', toggle) .on('click', toggle)
.appendTo($container); .appendTo($container);

View file

@ -2137,6 +2137,7 @@ en:
notes: Map Notes notes: Map Notes
data: Map Data data: Map Data
overlays: Enable overlays for troubleshooting the map overlays: Enable overlays for troubleshooting the map
title: "Layers"
copyright: "© <a href='%{copyright_url}'>OpenStreetMap contributors</a>" copyright: "© <a href='%{copyright_url}'>OpenStreetMap contributors</a>"
site: site:
edit_tooltip: Edit the map edit_tooltip: Edit the map