Add translations.

This commit is contained in:
David Molineus
2015-01-08 12:27:08 +01:00
parent 91674e2f8d
commit 977ff01ced
10 changed files with 212 additions and 47 deletions

View File

@@ -1,5 +1,7 @@
<?php <?php
\Controller::loadLanguageFile('leaflet');
$GLOBALS['TL_DCA']['tl_leaflet_control'] = array $GLOBALS['TL_DCA']['tl_leaflet_control'] = array
( (
'config' => array( 'config' => array(
@@ -157,8 +159,10 @@ $GLOBALS['TL_DCA']['tl_leaflet_control'] = array
'includeBlankOption' => true, 'includeBlankOption' => true,
'submitOnChange' => true, 'submitOnChange' => true,
'chosen' => true, 'chosen' => true,
'helpwizard' => true,
), ),
'options' => $GLOBALS['LEAFLET_CONTROLS'], 'options' => $GLOBALS['LEAFLET_CONTROLS'],
'reference' => &$GLOBALS['TL_LANG']['leaflet_control'],
'sql' => "varchar(32) NOT NULL default ''" 'sql' => "varchar(32) NOT NULL default ''"
), ),
'position' => array 'position' => array
@@ -323,7 +327,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_control'] = array
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['separate'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_control']['separate'],
'exclude' => true, 'exclude' => true,
'inputType' => 'checkbox', 'inputType' => 'checkbox',
'eval' => array('tl_class' => 'w50'), 'eval' => array('tl_class' => 'w50 m12'),
'sql' => "char(1) NOT NULL default ''" 'sql' => "char(1) NOT NULL default ''"
), ),
'zoomControl' => array 'zoomControl' => array

View File

@@ -1,5 +1,7 @@
<?php <?php
\Controller::loadLanguageFile('leaflet');
$GLOBALS['TL_DCA']['tl_leaflet_layer'] = array $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array
( (
'config' => array( 'config' => array(
@@ -189,6 +191,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_layer'] = array
'includeBlankOption' => true, 'includeBlankOption' => true,
'submitOnChange' => true, 'submitOnChange' => true,
'chosen' => true, 'chosen' => true,
'helpwizard' => true,
), ),
'options' => array_keys($GLOBALS['LEAFLET_LAYERS']), 'options' => array_keys($GLOBALS['LEAFLET_LAYERS']),
'reference' => &$GLOBALS['TL_LANG']['leaflet_layer'], 'reference' => &$GLOBALS['TL_LANG']['leaflet_layer'],

View File

@@ -1,5 +1,8 @@
<?php <?php
\Controller::loadLanguageFile('leaflet');
$GLOBALS['TL_DCA']['tl_leaflet_marker'] = array $GLOBALS['TL_DCA']['tl_leaflet_marker'] = array
( (
'config' => array( 'config' => array(
@@ -12,7 +15,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = array
( (
'id' => 'primary' 'id' => 'primary'
) )
) ),
), ),
'list' => array 'list' => array
@@ -202,7 +205,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = array
), ),
'icon' => array 'icon' => array
( (
'label' => &$GLOBALS['TL_LANG']['tl_content']['icon'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['icon'],
'exclude' => true, 'exclude' => true,
'inputType' => 'select', 'inputType' => 'select',
'options_callback' => array('Netzmacht\Contao\Leaflet\Dca\Marker', 'getIcons'), 'options_callback' => array('Netzmacht\Contao\Leaflet\Dca\Marker', 'getIcons'),
@@ -218,7 +221,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = array
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['draggable'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['draggable'],
'exclude' => true, 'exclude' => true,
'inputType' => 'checkbox', 'inputType' => 'checkbox',
'default' => true, 'default' => false,
'eval' => array('tl_class' => 'w50'), 'eval' => array('tl_class' => 'w50'),
'sql' => "char(1) NOT NULL default ''" 'sql' => "char(1) NOT NULL default ''"
), ),
@@ -242,12 +245,12 @@ $GLOBALS['TL_DCA']['tl_leaflet_marker'] = array
), ),
'zIndexOffset' => array 'zIndexOffset' => array
( (
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_map']['zIndexOffset'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_marker']['zIndexOffset'],
'exclude' => true, 'exclude' => true,
'inputType' => 'text', 'inputType' => 'text',
'default' => 0, 'default' => 0,
'eval' => array('mandatory' => true, 'maxlength' => 4, 'rgxp' => 'digit', 'tl_class' => 'clr w50'), 'eval' => array('maxlength' => 5, 'rgxp' => 'digit', 'tl_class' => 'clr w50', 'nullIfEmpty' => true),
'sql' => "int(4) NOT NULL default '0'" 'sql' => "int(5) NULL"
), ),
), ),
); );

View File

@@ -1,5 +1,7 @@
<?php <?php
\Controller::loadLanguageFile('leaflet');
$GLOBALS['TL_DCA']['tl_leaflet_vector'] = array $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array
( (
'config' => array( 'config' => array(
@@ -54,6 +56,13 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array
'href' => 'act=copy', 'href' => 'act=copy',
'icon' => 'copy.gif' 'icon' => 'copy.gif'
), ),
'cut' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['cut'],
'href' => 'act=paste&amp;mode=cut',
'icon' => 'cut.gif',
'attributes' => 'onclick="Backend.getScrollOffset()"',
),
'delete' => array 'delete' => array
( (
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['delete'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['delete'],
@@ -61,13 +70,6 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array
'icon' => 'delete.gif', 'icon' => 'delete.gif',
'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] . '\'))return false;Backend.getScrollOffset()"' 'attributes' => 'onclick="if(!confirm(\'' . $GLOBALS['TL_LANG']['MSC']['deleteConfirm'] . '\'))return false;Backend.getScrollOffset()"'
), ),
'cut' => array
(
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['cut'],
'href' => 'act=paste&amp;mode=cut',
'icon' => 'cut.gif',
'attributes' => 'onclick="Backend.getScrollOffset()"',
),
'toggle' => array 'toggle' => array
( (
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['toggle'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['toggle'],
@@ -95,17 +97,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array
'default' => array( 'default' => array(
'title' => array('title', 'alias', 'type'), 'title' => array('title', 'alias', 'type'),
'data' => array(), 'data' => array(),
'style' => array( 'style' => array(':hide', 'stroke', 'fill'),
':hide',
'stroke',
'color',
'weight',
'opacity',
'dashArray',
'fill',
'lineCap',
'lineJoin',
),
'popup' => array(':hide','addPopup'), 'popup' => array(':hide','addPopup'),
'config' => array(':hide', 'clickable', 'className'), 'config' => array(':hide', 'clickable', 'className'),
'active' => array('active') 'active' => array('active')
@@ -136,7 +128,8 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array
'circleMarker extends circle' => array(), 'circleMarker extends circle' => array(),
), ),
'metasubpalettes' => array( 'metasubpalettes' => array(
'addPopup' => array('popupContent'), 'addPopup' => array('popupContent'),
'stroke' => array('color', 'weight', 'opacity', 'dashArray', 'lineCap', 'lineJoin'),
'fill' => array('fillColor', 'fillOpacity',) 'fill' => array('fillColor', 'fillOpacity',)
), ),
@@ -176,7 +169,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array
), ),
'type' => array 'type' => array
( (
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_layer']['type'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['type'],
'exclude' => true, 'exclude' => true,
'inputType' => 'select', 'inputType' => 'select',
'eval' => array( 'eval' => array(
@@ -185,9 +178,10 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array
'includeBlankOption' => true, 'includeBlankOption' => true,
'submitOnChange' => true, 'submitOnChange' => true,
'chosen' => true, 'chosen' => true,
'helpwizard' => true,
), ),
'options' => &$GLOBALS['LEAFLET_VECTORS'], 'options' => &$GLOBALS['LEAFLET_VECTORS'],
'reference' => &$GLOBALS['TL_LANG']['leaflet_layer'], 'reference' => &$GLOBALS['TL_LANG']['leaflet_vector'],
'sql' => "varchar(32) NOT NULL default ''" 'sql' => "varchar(32) NOT NULL default ''"
), ),
'active' => array 'active' => array
@@ -221,7 +215,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array
'exclude' => true, 'exclude' => true,
'inputType' => 'checkbox', 'inputType' => 'checkbox',
'default' => true, 'default' => true,
'eval' => array('tl_class' => 'w50 m12'), 'eval' => array('tl_class' => 'w50', 'submitOnChange' => true),
'sql' => "char(1) NOT NULL default '1'" 'sql' => "char(1) NOT NULL default '1'"
), ),
'color' => array 'color' => array
@@ -233,7 +227,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array
\Netzmacht\Contao\DevTools\Dca::createColorPickerCallback(), \Netzmacht\Contao\DevTools\Dca::createColorPickerCallback(),
), ),
'eval' => array( 'eval' => array(
'tl_class' => 'w50 wizard', 'tl_class' => 'w50 wizard clr',
'maxlength' => 7, 'maxlength' => 7,
'decodeEntities' => true 'decodeEntities' => true
), ),
@@ -245,7 +239,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array
'exclude' => true, 'exclude' => true,
'inputType' => 'text', 'inputType' => 'text',
'default' => 5, 'default' => 5,
'eval' => array('mandatory' => false, 'maxlength' => 4, 'rgxp' => 'digit', 'tl_class' => 'clr w50'), 'eval' => array('mandatory' => false, 'maxlength' => 4, 'rgxp' => 'digit', 'tl_class' => 'w50'),
'sql' => "int(4) NOT NULL default '5'" 'sql' => "int(4) NOT NULL default '5'"
), ),
'opacity' => array 'opacity' => array
@@ -262,7 +256,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['fill'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['fill'],
'exclude' => true, 'exclude' => true,
'inputType' => 'checkbox', 'inputType' => 'checkbox',
'eval' => array('tl_class' => 'w50 m12', 'submitOnChange' => true), 'eval' => array('tl_class' => 'clr w50', 'submitOnChange' => true),
'sql' => "char(1) NOT NULL default ''" 'sql' => "char(1) NOT NULL default ''"
), ),
'fillColor' => array 'fillColor' => array
@@ -282,7 +276,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array
), ),
'fillOpacity' => array 'fillOpacity' => array
( (
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['weight'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['fillOpacity'],
'exclude' => true, 'exclude' => true,
'inputType' => 'text', 'inputType' => 'text',
'default' => '0.2', 'default' => '0.2',
@@ -294,7 +288,7 @@ $GLOBALS['TL_DCA']['tl_leaflet_vector'] = array
'label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['dashArray'], 'label' => &$GLOBALS['TL_LANG']['tl_leaflet_vector']['dashArray'],
'exclude' => true, 'exclude' => true,
'inputType' => 'text', 'inputType' => 'text',
'eval' => array('mandatory' => false, 'maxlength' => 32, 'tl_class' => 'w50 clr'), 'eval' => array('mandatory' => false, 'maxlength' => 32, 'tl_class' => 'w50'),
'sql' => "varchar(32) NOT NULL default ''" 'sql' => "varchar(32) NOT NULL default ''"
), ),
'lineCap' => array 'lineCap' => array

View File

@@ -0,0 +1,36 @@
<?php
$GLOBALS['TL_LANG']['leaflet_control']['zoom'][0] = 'Zoom control';
$GLOBALS['TL_LANG']['leaflet_control']['zoom'][1] = 'A basic zoom control. For more details read the <a href="http://leafletjs.com/reference.html#control-zoom" target="_blank">Leaflet documentation</a>.';
$GLOBALS['TL_LANG']['leaflet_control']['attribution'][0] = 'Attribution control';
$GLOBALS['TL_LANG']['leaflet_control']['attribution'][1] = 'The attribution control allows you to display attribution data in a small text box on a map. For more details read the <a href="http://leafletjs.com/reference.html#control-attribution" target="_blank">Leaflet documentation</a>.';
$GLOBALS['TL_LANG']['leaflet_control']['layers'][0] = 'Layers control';
$GLOBALS['TL_LANG']['leaflet_control']['layers'][1] = 'The layers control gives users the ability to switch between different base layers and switch overlays on/off. For more details read the <a href="http://leafletjs.com/reference.html#control-layers" target="_blank">Leaflet documentation</a>.';
$GLOBALS['TL_LANG']['leaflet_control']['scale'][0] = 'Scale control';
$GLOBALS['TL_LANG']['leaflet_control']['scale'][1] = 'A simple scale control that shows the scale of the current center of the screen. For more details read the <a href="http://leafletjs.com/reference.html#control-scale" target="_blank">Leaflet documentation</a>.';
$GLOBALS['TL_LANG']['leaflet_control']['loading'][0] = 'Loading indicator';
$GLOBALS['TL_LANG']['leaflet_control']['loading'][1] = 'Leaflet.loading is a simple loading indicator implemented as control. For more details read the <a href="https://github.com/ebrelsford/Leaflet.loading" target="_blank">Plugin documentation</a>.';
$GLOBALS['TL_LANG']['leaflet_layer']['provider'][0] = 'Leaflet provider';
$GLOBALS['TL_LANG']['leaflet_layer']['provider'][1] = 'Leaflet tile provider. For more details read the <a href="https://github.com/leaflet-extras/leaflet-providers" target="_blank">plugin documentation</a>.';
$GLOBALS['TL_LANG']['leaflet_layer']['group'][0] = 'Layer group';
$GLOBALS['TL_LANG']['leaflet_layer']['group'][1] = 'Layer groups combines different layers. For more details read the <a href="http://leafletjs.com/reference.html#layergroup" target="_blank">Leaflet documentation</a>. ';
$GLOBALS['TL_LANG']['leaflet_layer']['markers'][0] = 'Markers';
$GLOBALS['TL_LANG']['leaflet_layer']['markers'][1] = 'Layer containing Markers.';
$GLOBALS['TL_LANG']['leaflet_layer']['vectors'][0] = 'Vectors';
$GLOBALS['TL_LANG']['leaflet_layer']['vectors'][1] = 'Vectors layer containing vectors like polygons, polylines, etc.';
$GLOBALS['TL_LANG']['leaflet_vector']['polyline'][0] = 'Polyline';
$GLOBALS['TL_LANG']['leaflet_vector']['polyline'][1] = 'Polyline overlay. For more details read the <a href="http://leafletjs.com/reference.html#polyline" target="_blank">Leaflet documentation</a>.';
$GLOBALS['TL_LANG']['leaflet_vector']['multiPolyline'][0] = 'Multi polylines';
$GLOBALS['TL_LANG']['leaflet_vector']['multiPolyline'][1] = 'Multi polylines with shared styling. For more details read the <a href="http://leafletjs.com/reference.html#multipolyline" target="_blank">Leaflet documentation</a>.';
$GLOBALS['TL_LANG']['leaflet_vector']['polygon'][0] = 'Polygon';
$GLOBALS['TL_LANG']['leaflet_vector']['polygon'][1] = 'Polygon overlay. For more details read the <a href="http://leafletjs.com/reference.html#polygon" target="_blank">Leaflet documentation</a>.';
$GLOBALS['TL_LANG']['leaflet_vector']['multiPolygon'][0] = 'Multi polygons';
$GLOBALS['TL_LANG']['leaflet_vector']['multiPolygon'][1] = 'Multi polygons with shared styling. For more details read the <a href="http://leafletjs.com/reference.html#multipolygon" target="_blank">Leaflet documentation</a>.';
$GLOBALS['TL_LANG']['leaflet_vector']['circle'][0] = 'Circle';
$GLOBALS['TL_LANG']['leaflet_vector']['circle'][1] = 'Circle overlay. For more details read the <a href="http://leafletjs.com/reference.html#circle" target="_blank">Leaflet documentation</a>.';
$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']['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>.';

View File

@@ -1,8 +0,0 @@
<?php
$GLOBALS['TL_LANG']['leaflet_layer']['provider'][0] = 'Leaflet provider';
$GLOBALS['TL_LANG']['leaflet_layer']['provider'][1] = 'Leaflet tile provider';
$GLOBALS['TL_LANG']['leaflet_layer']['group'][0] = 'Layer group';
$GLOBALS['TL_LANG']['leaflet_layer']['group'][1] = 'Layers group';
$GLOBALS['TL_LANG']['leaflet_layer']['markers'][0] = 'Markers';
$GLOBALS['TL_LANG']['leaflet_layer']['markers'][1] = 'Marker collection';

View File

@@ -5,6 +5,25 @@ $GLOBALS['TL_LANG']['tl_leaflet_icon']['config_legend'] = 'Configuration';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['shadow_legend'] = 'Shadow'; $GLOBALS['TL_LANG']['tl_leaflet_icon']['shadow_legend'] = 'Shadow';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['active_legend'] = 'Activation'; $GLOBALS['TL_LANG']['tl_leaflet_icon']['active_legend'] = 'Activation';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['layersBtn'][0] = 'Manage layers';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['layersBtn'][1] = 'Manage leaflet layers';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['new'][0] = 'Create icon';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['new'][1] = 'Create new icon';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['edit'][0] = 'Edit icon';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['edit'][1] = 'Edit icon ID %s';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['copy'][0] = 'Copy icon';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['copy'][1] = 'Copy icon ID %s';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['controls'][0] = 'Manage controls';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['controls'][1] = 'Manage controls of icon ID %s';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['map'][0] = 'Manage maps';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['map'][1] = 'Manage leaflet maps.';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['delete'][0] = 'Delete icon';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['delete'][1] = 'Delete icon ID %s';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['show'][0] = 'Show details';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['show'][1] = 'Show icon ID %s details';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['toggle'][0] = 'Toggle activation';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['toggle'][1] = 'Toggle icon ID %s activation';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['title'][0] = 'Title'; $GLOBALS['TL_LANG']['tl_leaflet_icon']['title'][0] = 'Title';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['title'][1] = 'Title of the icon.'; $GLOBALS['TL_LANG']['tl_leaflet_icon']['title'][1] = 'Title of the icon.';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['alias'][0] = 'Alias'; $GLOBALS['TL_LANG']['tl_leaflet_icon']['alias'][0] = 'Alias';

View File

@@ -0,0 +1,48 @@
<?php
$GLOBALS['TL_LANG']['tl_leaflet_marker']['title_legend'] = 'Title and type';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['content_legend'] = 'Content';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['config_legend'] = 'Configuration';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['active_legend'] = 'Activation';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['new'][0] = 'Create marker';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['new'][1] = 'Create new marker';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['edit'][0] = 'Edit marker';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['edit'][1] = 'Edit marker ID %s';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['copy'][0] = 'Copy marker';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['copy'][1] = 'Copy marker ID %s';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['delete'][0] = 'Delete marker';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['delete'][1] = 'Delete marker ID %s';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['show'][0] = 'Show details';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['show'][1] = 'Show marker ID %s details';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['toggle'][0] = 'Toggle activation';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['toggle'][1] = 'Toggle marker ID %s activation';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['title'][0] = 'Title';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['title'][1] = 'Title of the map.';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['alias'][0] = 'Alias';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['alias'][1] = 'Alias of the map.';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['coordinates'][0] = 'Coordinates';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['coordinates'][1] = 'Coordinates of the marker as comma separated value (Latitude, longitude [, altitude]).';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['tooltip'][0] = 'Tooltip';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['tooltip'][1] = 'Marker tooltip rendered as title attribute.';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['alt'][0] = 'Alternative text';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['alt'][1] = 'Text for the alt attribute of the icon image (useful for accessibility).';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['addPopup'][0] = 'Add popup';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['addPopup'][1] = 'Add a popup for the marker';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['popupContent'][0] = 'Popup content';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['popupContent'][1] = 'Content of the popup. Insert tags are replaced.';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['clickable'][0] = 'Clickable';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['clickable'][1] = 'If deactivated, the marker will not emit mouse events and will act as a part of the underlying map.';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['draggable'][0] = 'Draggable';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['draggable'][1] = 'Whether the marker is draggable with mouse/touch or not.';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['keyboard'][0] = 'Keyboard navigation';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['keyboard'][1] = 'Whether the marker can be tabbed to with a keyboard and clicked by pressing enter.';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['zIndexOffset'][0] = 'ZIndex offset';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['zIndexOffset'][1] = 'By default, marker images zIndex is set automatically based on its latitude. Use this option if you want to put the marker on top of all others (or below), specifying a high value like 1000 (or high negative value, respectively).';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['customIcon'][0] = 'Custom icon';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['customIcon'][1] = 'Use a custom icon.';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['icon'][0] = 'Icon';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['icon'][1] = 'Select a custom icon.';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['active'][0] = 'Activate marker';
$GLOBALS['TL_LANG']['tl_leaflet_marker']['active'][1] = 'Only activated markers are rendered on the map.';

View File

@@ -0,0 +1,70 @@
<?php
$GLOBALS['TL_LANG']['tl_leaflet_vector']['title_legend'] = 'Title and type';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['active_legend'] = 'Activation';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['config_legend'] = 'Configuration';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['data_legend'] = 'Vector data';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['popup_legend'] = 'Popup';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['style_legend'] = 'Styling';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['new'][0] = 'Create vector';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['new'][1] = 'Create new vector';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['edit'][0] = 'Edit vector';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['edit'][1] = 'Edit vector ID %s';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['copy'][0] = 'Copy vector';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['copy'][1] = 'Copy vector ID %s';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['delete'][0] = 'Delete vector';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['delete'][1] = 'Delete vector ID %s';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['show'][0] = 'Show details';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['show'][1] = 'Show vector ID %s details';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['cut'][0] = 'Move vector';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['cut'][1] = 'Move vector ID %s';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['toggle'][0] = 'Toggle activation';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['toggle'][1] = 'Toggle vector ID %s activation';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['title'][0] = 'Title';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['title'][1] = 'Title of the vector.';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['alias'][0] = 'Alias';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['alias'][1] = 'Alias of the vector.';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['type'][0] = 'Type';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['type'][1] = 'Choose the vector type.';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['type'][0] = 'Type';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['type'][1] = 'Choose the vector type.';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['data'][0] = 'Vector data';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['data'][1] = 'Define each coordinate of the vector on a line. Each line is a comma separated value (latitude, longitude [, altitude]).';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['stroke'][0] = 'Draw a stroke';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['stroke'][1] = 'Whether to draw stroke along the path. Disable it to hide borders on polygons or circles.';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['color'][0] = 'Stroke color';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['color'][1] = 'Custom stroke color. Leaf empty to use default. Value is a ful hex value (with #).';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['weight'][0] = 'Stroke width';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['weight'][1] = 'Stroke width in pixels.';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['opacity'][0] = 'Stroke opacity';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['opacity'][1] = 'Stroke opacity as a value between 0 and 1.';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['dashArray'][0] = 'Stroke dash pattern';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['dashArray'][1] = 'A string that defines the stroke <a href="https://developer.mozilla.org/en/SVG/Attribute/stroke-dasharray" target="_blank">dash pattern</a>.';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['fill'][0] = 'Fill vector';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['fill'][1] = 'Whether to fill the path with color.';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['fillColor'][0] = 'Fill color';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['fillColor'][1] = 'Custom stroke color. Leaf empty to use default. Value is a ful hex value (with #).';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['fillOpacity'][0] = 'Fill opacity';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['fillOpacity'][1] = 'Fill opacity as a value between 0 and 1.';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['lineCap'][0] = 'Stroke line cap';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['lineCap'][1] = 'A string that defines <a href="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linecap" target="_blank">shape to be used at the end</a> of the stroke.';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['lineJoin'][0] = 'Stroke line join';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['lineJoin'][1] = 'A string that defines <a href="https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke-linejoin" target="_blank">shape to be used at the corners</a> of the stroke.';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['addPopup'][0] = 'Add popup';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['addPopup'][1] = 'Add a popup to the vector.';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['popupContent'][0] = 'Popup content';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['popupContent'][1] = 'Content of the popup. Insert tags are replaced.';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['clickable'][0] = 'Clickable';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['clickable'][1] = 'If deactivated, the vector will not emit mouse events and will act as a part of the underlying map.';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['active'][0] = 'Activate vector';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['active'][1] = 'Only activated vector are rendered on the map.';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['className'][0] = 'Class name';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['className'][1] = 'Custom class name set on an element.';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['coordinates'][0] = 'Coordinates';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['coordinates'][1] = 'Coordinates of the vector as comma separated value (Latitude, longitude [, altitude]).';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['radius'][0] = 'Radius';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['radius'][1] = 'Radius of the element. For a circle its defined in meters, for a circle marker in pixels.';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['bounds'][0] = 'Bounds';
$GLOBALS['TL_LANG']['tl_leaflet_vector']['bounds'][1] = 'Each field defines a corner of the bounds as comma separated value (Latitude, longitude [, altitude]).';

View File

@@ -44,10 +44,6 @@ class Layer
? $row['type'] ? $row['type']
: $GLOBALS['TL_LANG']['leaflet_layer'][$row['type']][0]; : $GLOBALS['TL_LANG']['leaflet_layer'][$row['type']][0];
$title = empty($GLOBALS['TL_LANG']['leaflet_layer'][$row['type']][1])
? $row['type']
: $GLOBALS['TL_LANG']['leaflet_layer'][$row['type']][1];
if (!empty($this->layers[$row['type']]['icon'])) { if (!empty($this->layers[$row['type']]['icon'])) {
$src = $this->layers[$row['type']]['icon']; $src = $this->layers[$row['type']]['icon'];
@@ -59,7 +55,7 @@ class Layer
$src = preg_replace('/(\.[^\.]+)$/', '_1$1', $src); $src = preg_replace('/(\.[^\.]+)$/', '_1$1', $src);
} }
$icon = \Image::getHtml($src, $alt, sprintf('title="%s"', $title)); $icon = \Image::getHtml($src, $alt, sprintf('title="%s"', strip_tags($alt)));
return $icon . ' ' . $label; return $icon . ' ' . $label;
} }