forked from Snck3rs/contao-leaflet-maps
Update translations.
This commit is contained in:
@@ -9,6 +9,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
\Controller::loadLanguageFile('leaflet');
|
||||||
|
|
||||||
$GLOBALS['TL_DCA']['tl_leaflet_map'] = array
|
$GLOBALS['TL_DCA']['tl_leaflet_map'] = array
|
||||||
(
|
(
|
||||||
'config' => array(
|
'config' => array(
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
|
|
||||||
\Controller::loadLanguageFile('leaflet');
|
\Controller::loadLanguageFile('leaflet');
|
||||||
|
|
||||||
|
|
||||||
$GLOBALS['TL_DCA']['tl_leaflet_marker'] = array
|
$GLOBALS['TL_DCA']['tl_leaflet_marker'] = array
|
||||||
(
|
(
|
||||||
'config' => array(
|
'config' => array(
|
||||||
|
|||||||
@@ -36,3 +36,6 @@ $GLOBALS['TL_LANG']['leaflet_vector']['circleMarker'][0] = 'Circle marker';
|
|||||||
$GLOBALS['TL_LANG']['leaflet_vector']['circleMarker'][1] = 'Circle marker with fixed pixel width. For more details read the <a href="http://leafletjs.com/reference.html#circlemarker" target="_blank">Leaflet documentation</a>.';
|
$GLOBALS['TL_LANG']['leaflet_vector']['circleMarker'][1] = 'Circle marker with fixed pixel width. For more details read the <a href="http://leafletjs.com/reference.html#circlemarker" target="_blank">Leaflet documentation</a>.';
|
||||||
$GLOBALS['TL_LANG']['leaflet_vector']['rectangle'][0] = 'Rectangle';
|
$GLOBALS['TL_LANG']['leaflet_vector']['rectangle'][0] = 'Rectangle';
|
||||||
$GLOBALS['TL_LANG']['leaflet_vector']['rectangle'][1] = 'Rectangle overlay. For more details read the <a href="http://leafletjs.com/reference.html#rectangle" target="_blank">Leaflet documentation</a>.';
|
$GLOBALS['TL_LANG']['leaflet_vector']['rectangle'][1] = 'Rectangle overlay. For more details read the <a href="http://leafletjs.com/reference.html#rectangle" target="_blank">Leaflet documentation</a>.';
|
||||||
|
|
||||||
|
$GLOBALS['TL_LANG']['leaflet']['searchPosition'] = 'Search location';
|
||||||
|
$GLOBALS['TL_LANG']['leaflet']['applyPosition'] = 'Apply position';
|
||||||
|
|||||||
@@ -71,6 +71,3 @@ $GLOBALS['TL_LANG']['tl_leaflet_map']['zoomValues']['1'][0] = 'Enable';
|
|||||||
$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomValues']['1'][1] = 'Enable zoom function.';
|
$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomValues']['1'][1] = 'Enable zoom function.';
|
||||||
$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomValues']['center'][0] = 'Center';
|
$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomValues']['center'][0] = 'Center';
|
||||||
$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomValues']['center'][1] = 'If passed \'center\', it will zoom to the center of the view regardless of where the mouse was.';
|
$GLOBALS['TL_LANG']['tl_leaflet_map']['zoomValues']['center'][1] = 'If passed \'center\', it will zoom to the center of the view regardless of where the mouse was.';
|
||||||
|
|
||||||
$GLOBALS['TL_LANG']['tl_leaflet_map']['searchPosition'] = 'Search';
|
|
||||||
$GLOBALS['TL_LANG']['tl_leaflet_map']['applyPosition'] = 'Apply position';
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
}).addTo(map);
|
}).addTo(map);
|
||||||
var geocoder = L.Control.geocoder({
|
var geocoder = L.Control.geocoder({
|
||||||
collapsed: false,
|
collapsed: false,
|
||||||
placeholder: '<?php echo $GLOBALS['TL_LANG']['tl_leaflet_map']['searchPosition']; ?>'
|
placeholder: '<?php echo $GLOBALS['TL_LANG']['leaflet']['searchPosition']; ?>'
|
||||||
}).addTo(map);
|
}).addTo(map);
|
||||||
|
|
||||||
geocoder.markGeocode = function(result) {
|
geocoder.markGeocode = function(result) {
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
var element = $('<?php echo $this->field; ?>');
|
var element = $('<?php echo $this->field; ?>');
|
||||||
|
|
||||||
link.set('style', 'margin-left: 10px;');
|
link.set('style', 'margin-left: 10px;');
|
||||||
link.appendText('<?php echo $GLOBALS['TL_LANG']['tl_leaflet_map']['applyPosition']; ?>');
|
link.appendText('<?php echo $GLOBALS['TL_LANG']['leaflet']['applyPosition']; ?>');
|
||||||
link.addEvent('click', function(e) {
|
link.addEvent('click', function(e) {
|
||||||
e.stop();
|
e.stop();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user