Add vector style management.

This commit is contained in:
David Molineus
2015-01-09 11:53:58 +01:00
parent 9c689b072d
commit 37851110b0
23 changed files with 955 additions and 218 deletions

View File

@@ -1,7 +1,11 @@
<?php
$GLOBALS['TL_LANG']['MOD']['leaflet'][0] = 'Leaflet Maps';
$GLOBALS['TL_LANG']['MOD']['leaflet'][1] = 'Manage Leaflet maps';
$GLOBALS['TL_LANG']['MOD']['leaflet'][0] = 'Leaflet';
$GLOBALS['TL_LANG']['MOD']['leaflet'][1] = 'Leaflet extension for Contao';
$GLOBALS['TL_LANG']['MOD']['leaflet_map'][0] = 'Leaflet Maps';
$GLOBALS['TL_LANG']['MOD']['leaflet_map'][1] = 'Manage Leaflet maps';
$GLOBALS['TL_LANG']['MOD']['leaflet_layer'][0] = 'Map Layers';
$GLOBALS['TL_LANG']['MOD']['leaflet_layer'][1] = 'Manage map layers';
$GLOBALS['TL_LANG']['MOD']['tl_leaflet_map'] = 'Maps';
$GLOBALS['TL_LANG']['MOD']['tl_leaflet_layer'] = 'Layers';

View File

@@ -1,28 +1,30 @@
<?php
$GLOBALS['TL_LANG']['tl_leaflet_icon']['title_legend'] = 'Title';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['title_legend'] = 'Title';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['config_legend'] = 'Configuration';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['shadow_legend'] = 'Shadow';
$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']['layersBtn'][0] = 'Manage layers';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['layersBtn'][1] = 'Manage leaflet layers';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['styles'][0] = 'Manage styles';
$GLOBALS['TL_LANG']['tl_leaflet_icon']['styles'][1] = 'Manage vector styles';
$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'][1] = 'Title of the icon.';

View File

@@ -6,7 +6,9 @@ $GLOBALS['TL_LANG']['tl_leaflet_layer']['active_legend'] = 'Activation';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['map'][0] = 'Manage maps';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['map'][1] = 'Manage leaflet maps';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['icons'][0] = 'Manage icons';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['icons'][1] = 'Manage marker icons.';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['icons'][1] = 'Manage marker icons';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['styles'][0] = 'Manage styles';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['styles'][1] = 'Manage vector styles';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['new'][0] = 'Create layer';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['new'][1] = 'Create new layer';
$GLOBALS['TL_LANG']['tl_leaflet_layer']['edit'][0] = 'Edit layer';

View File

@@ -5,10 +5,8 @@ $GLOBALS['TL_LANG']['tl_leaflet_map']['interaction_legend'] = 'Interaction contr
$GLOBALS['TL_LANG']['tl_leaflet_map']['zoom_legend'] = 'Center and zoom';
$GLOBALS['TL_LANG']['tl_leaflet_map']['controls_legend'] = 'Control widgets';
$GLOBALS['TL_LANG']['tl_leaflet_map']['expert_legend'] = 'Expert settings';
$GLOBALS['TL_LANG']['tl_leaflet_map']['behaviour_legend'] = 'Behaviour';
$GLOBALS['TL_LANG']['tl_leaflet_map']['behaviour_legend'] = 'Behaviour';
$GLOBALS['TL_LANG']['tl_leaflet_map']['layersBtn'][0] = 'Manage layers';
$GLOBALS['TL_LANG']['tl_leaflet_map']['layersBtn'][1] = 'Manage leaflet layers';
$GLOBALS['TL_LANG']['tl_leaflet_map']['new'][0] = 'Create map';
$GLOBALS['TL_LANG']['tl_leaflet_map']['new'][1] = 'Create new map';
$GLOBALS['TL_LANG']['tl_leaflet_map']['edit'][0] = 'Edit map';
@@ -17,8 +15,6 @@ $GLOBALS['TL_LANG']['tl_leaflet_map']['copy'][0] = 'Copy map';
$GLOBALS['TL_LANG']['tl_leaflet_map']['copy'][1] = 'Copy map ID %s';
$GLOBALS['TL_LANG']['tl_leaflet_map']['controls'][0] = 'Manage controls';
$GLOBALS['TL_LANG']['tl_leaflet_map']['controls'][1] = 'Manage controls of map ID %s';
$GLOBALS['TL_LANG']['tl_leaflet_map']['icons'][0] = 'Manage icons';
$GLOBALS['TL_LANG']['tl_leaflet_map']['icons'][1] = 'Manage marker icons.';
$GLOBALS['TL_LANG']['tl_leaflet_map']['delete'][0] = 'Delete map';
$GLOBALS['TL_LANG']['tl_leaflet_map']['delete'][1] = 'Delete map ID %s';
$GLOBALS['TL_LANG']['tl_leaflet_map']['show'][0] = 'Show details';

View File

@@ -0,0 +1,49 @@
<?php
$GLOBALS['TL_LANG']['tl_leaflet_style']['title_legend'] = 'Title and type';
$GLOBALS['TL_LANG']['tl_leaflet_style']['active_legend'] = 'Activation';
$GLOBALS['TL_LANG']['tl_leaflet_style']['config_legend'] = 'Configuration';
$GLOBALS['TL_LANG']['tl_leaflet_style']['layersBtn'][0] = 'Manage layers';
$GLOBALS['TL_LANG']['tl_leaflet_style']['layersBtn'][1] = 'Manage leaflet layers';
$GLOBALS['TL_LANG']['tl_leaflet_style']['icons'][0] = 'Manage icons';
$GLOBALS['TL_LANG']['tl_leaflet_style']['icons'][1] = 'Manage marker icons';
$GLOBALS['TL_LANG']['tl_leaflet_style']['new'][0] = 'Create style';
$GLOBALS['TL_LANG']['tl_leaflet_style']['new'][1] = 'Create new style';
$GLOBALS['TL_LANG']['tl_leaflet_style']['edit'][0] = 'Edit style';
$GLOBALS['TL_LANG']['tl_leaflet_style']['edit'][1] = 'Edit style ID %s';
$GLOBALS['TL_LANG']['tl_leaflet_style']['copy'][0] = 'Copy style';
$GLOBALS['TL_LANG']['tl_leaflet_style']['copy'][1] = 'Copy style ID %s';
$GLOBALS['TL_LANG']['tl_leaflet_style']['delete'][0] = 'Delete style';
$GLOBALS['TL_LANG']['tl_leaflet_style']['delete'][1] = 'Delete style ID %s';
$GLOBALS['TL_LANG']['tl_leaflet_style']['show'][0] = 'Show details';
$GLOBALS['TL_LANG']['tl_leaflet_style']['show'][1] = 'Show style ID %s details';
$GLOBALS['TL_LANG']['tl_leaflet_style']['toggle'][0] = 'Toggle activation';
$GLOBALS['TL_LANG']['tl_leaflet_style']['toggle'][1] = 'Toggle style ID %s activation';
$GLOBALS['TL_LANG']['tl_leaflet_style']['title'][0] = 'Title';
$GLOBALS['TL_LANG']['tl_leaflet_style']['title'][1] = 'Title of the style.';
$GLOBALS['TL_LANG']['tl_leaflet_style']['alias'][0] = 'Alias';
$GLOBALS['TL_LANG']['tl_leaflet_style']['alias'][1] = 'Alias of the style.';
$GLOBALS['TL_LANG']['tl_leaflet_style']['type'][0] = 'Type';
$GLOBALS['TL_LANG']['tl_leaflet_style']['type'][1] = 'Choose the style type.';
$GLOBALS['TL_LANG']['tl_leaflet_style']['stroke'][0] = 'Draw a stroke';
$GLOBALS['TL_LANG']['tl_leaflet_style']['stroke'][1] = 'Whether to draw stroke along the path. Disable it to hide borders on polygons or circles.';
$GLOBALS['TL_LANG']['tl_leaflet_style']['color'][0] = 'Stroke color';
$GLOBALS['TL_LANG']['tl_leaflet_style']['color'][1] = 'Custom stroke color. Leaf empty to use default. Value is a ful hex value (with #).';
$GLOBALS['TL_LANG']['tl_leaflet_style']['weight'][0] = 'Stroke width';
$GLOBALS['TL_LANG']['tl_leaflet_style']['weight'][1] = 'Stroke width in pixels.';
$GLOBALS['TL_LANG']['tl_leaflet_style']['opacity'][0] = 'Stroke opacity';
$GLOBALS['TL_LANG']['tl_leaflet_style']['opacity'][1] = 'Stroke opacity as a value between 0 and 1.';
$GLOBALS['TL_LANG']['tl_leaflet_style']['dashArray'][0] = 'Stroke dash pattern';
$GLOBALS['TL_LANG']['tl_leaflet_style']['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_style']['fill'][0] = 'Fill vector';
$GLOBALS['TL_LANG']['tl_leaflet_style']['fill'][1] = 'Whether to fill the path with color.';
$GLOBALS['TL_LANG']['tl_leaflet_style']['fillColor'][0] = 'Fill color';
$GLOBALS['TL_LANG']['tl_leaflet_style']['fillColor'][1] = 'Custom stroke color. Leaf empty to use default. Value is a ful hex value (with #).';
$GLOBALS['TL_LANG']['tl_leaflet_style']['fillOpacity'][0] = 'Fill opacity';
$GLOBALS['TL_LANG']['tl_leaflet_style']['fillOpacity'][1] = 'Fill opacity as a value between 0 and 1.';
$GLOBALS['TL_LANG']['tl_leaflet_style']['lineCap'][0] = 'Stroke line cap';
$GLOBALS['TL_LANG']['tl_leaflet_style']['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_style']['lineJoin'][0] = 'Stroke line join';
$GLOBALS['TL_LANG']['tl_leaflet_style']['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.';

View File

@@ -4,23 +4,22 @@ $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']['popup_legend'] = 'Popup';
$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']['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.';
@@ -32,26 +31,6 @@ $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';