[Mapbender-commits] r9190 - trunk/mapbender/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon May 4 08:47:08 PDT 2015


Author: armin11
Date: 2015-05-04 08:47:08 -0700 (Mon, 04 May 2015)
New Revision: 9190

Modified:
   trunk/mapbender/http/plugins/mb_digitize_widget.php
Log:
First translation

Modified: trunk/mapbender/http/plugins/mb_digitize_widget.php
===================================================================
--- trunk/mapbender/http/plugins/mb_digitize_widget.php	2015-05-04 14:11:22 UTC (rev 9189)
+++ trunk/mapbender/http/plugins/mb_digitize_widget.php	2015-05-04 15:47:08 UTC (rev 9190)
@@ -1,3 +1,6 @@
+<?php
+require_once dirname(__FILE__) . "/../../core/globalSettings.php";
+?>
 // -*- mode: js3;-*-
 /**
  * Package: digitize_widget
@@ -67,14 +70,14 @@
 
 var DigitizeApi = function (o) {
 
-    var digitizeHtml = '<div title="Sketch">' +
+    var digitizeHtml = '<div title="<?php echo _mb("Sketch");?>">' +
         '<div class="digitize-image digitize-point"></div>' +
         '<div class="digitize-image digitize-line"></div>' +
         '<div class="digitize-image digitize-polygon"></div>' +
         '<div class="digitize-image digitize-attributes editFeatureCollection"></div>' +
         '</div>';
 
-    var editHtml = '<div title="Edit feature">' +
+    var editHtml = '<div title="<?php echo _mb("Edit feature");?>">' +
         '<div class="digitize-preview"></div>' +
         '<span>my polygon</span><br></br>' +
         '<div class="digitize-image digitize-style"></div>' +
@@ -90,18 +93,18 @@
         '<div class="digitize-image digitize-export digitize-export-edit-dialog"></div>' +
         '</div>';
 
-    var editAttributesHtml = '<div title="Feature attributes">' +
+    var editAttributesHtml = '<div title="<?php echo _mb("Feature attributes");?>">' +
         '<div class="digitize-image digitize-style"></div>' +
         '<div class="digitize-preview"></div><br></br>' +
         // '<div class="attrAccordion">' +
-        '<table><tr><td>Name</td><td><input type="text" name="name" value="Titel"></input></td></tr>' +
-        '<tr><td>Description</td><td><input type="text" name="description" value="Beschreibung CDATA"></input></td></tr>' +
+        '<table><tr><td>Name</td><td><input type="text" name="name" value="<?php echo _mb("Title");?>"></input></td></tr>' +
+        '<tr><td>Description</td><td><input type="text" name="description" value="<?php echo _mb("Description CDATA");?>"></input></td></tr>' +
         '</table><br></br>' +
         '<div class="digitize-image digitize-add"></div>' +
         '<div class="digitize-image digitize-save"></div>' +
         '</div>';
 
-    var tableEditAttributesHtml = '<div title="Feature attributes">' +
+    var tableEditAttributesHtml = '<div title="<?php echo _mb("Feature attributes");?>">' +
         '<div class="digitize-image digitize-style"></div>' +
         '<div class="digitize-preview"></div><br></br>' +
         '<div class="attrAccordion">' +
@@ -110,55 +113,55 @@
         '<div class="digitize-image digitize-save"></div>' +
         '</div>';
 
-    var editStyleHtml = '<div title="Edit style">' +
+    var editStyleHtml = '<div title="<?php echo _mb("Edit style");?>">' +
         '<div class="digitize-preview"></div>' +
-        '<form id="digitize-marker-form"><label><input type="radio" name="marker-type" checked="checked" value="predefined">Predefined</input></label>' +
-        '<label><input type="radio" name="marker-type" value="custom">Custom</input></label></form>' +
-        '<table class="digitize-style-custom"><tr><td>Symbol:</td><td><input type="text" name="marker-symbol" value=""></input></td></tr>' +
-        '<tr><td>Symbol size:</td><td><input type="text" name="marker-size" value=""></input></td></tr>' +
-        '<tr><td>Linienfarbe</td><td><input type="color" name="stroke" value="#000000"></input></td></tr>' +
-        '<tr><td>Liniendeckkraft:</td><td><div class="opacity-slider" data-name="stroke-opacity"></div></td></tr>' +
-        '<tr><td>Liniendicke:</td><td><input type="text" name="stroke-width" value="1"></input></td></tr>' +
-        '<tr><td>Flächenfarbe:</td><td><input type="color" name="fill" value="#ff0000"></input></td></tr>' +
-        '<tr><td>Flächendeckkraft:</td><td><div class="opacity-slider" data-name="fill-opacity"></div></td></tr></table>' +
-        '<table class="digitize-style-predefined"><tr><td>Symbol:</td><td><input type="text" name="marker-symbol" value=""></input></td></tr>' +
-        '<tr><td>Symbol size:</td><td><select name="marker-size" value="medium"><option value="large">large</option><option value="medium" selected="selected">medium</option><option value="small">small</option></select></td></tr>' +
-        '<tr><td>Symbol color:</td><td><input type="color" name="marker-color" value="#ffffff"></input></td></tr>' +
-        '<tr><td>Linienfarbe</td><td><input type="color" name="stroke" value="#000000"></input></td></tr>' +
-        '<tr><td>Liniendeckkraft:</td><td><div class="opacity-slider" data-name="stroke-opacity"></div></td></tr>' +
-        '<tr><td>Liniendicke:</td><td><input type="text" name="stroke-width" value="1"></input></td></tr>' +
-        '<tr><td>Flächenfarbe:</td><td><input type="color" name="fill" value="#ff0000"></input></td></tr>' +
-        '<tr><td>Flächendeckkraft:</td><td><div class="opacity-slider" data-name="fill-opacity"></div></td></tr>' +
+        '<form id="digitize-marker-form"><label><input type="radio" name="marker-type" checked="checked" value="predefined"><?php echo _mb("Predefined");?></input></label>' +
+        '<label><input type="radio" name="marker-type" value="custom"><?php echo _mb("Custom");?></input></label></form>' +
+        '<table class="digitize-style-custom"><tr><td><?php echo _mb("Symbol");?>:</td><td><input type="text" name="marker-symbol" value=""></input></td></tr>' +
+        '<tr><td><?php echo _mb("Symbol size");?>:</td><td><input type="text" name="marker-size" value=""></input></td></tr>' +
+        '<tr><td><?php echo _mb("Line color");?>:</td><td><input type="color" name="stroke" value="#000000"></input></td></tr>' +
+        '<tr><td><?php echo _mb("Line opacity");?>:</td><td><div class="opacity-slider" data-name="stroke-opacity"></div></td></tr>' +
+        '<tr><td><?php echo _mb("Line width");?>:</td><td><input type="text" name="stroke-width" value="1"></input></td></tr>' +
+        '<tr><td><?php echo _mb("Fill color");?>:</td><td><input type="color" name="fill" value="#ff0000"></input></td></tr>' +
+        '<tr><td><?php echo _mb("Fill opacity");?>:</td><td><div class="opacity-slider" data-name="fill-opacity"></div></td></tr></table>' +
+        '<table class="digitize-style-predefined"><tr><td><?php echo _mb("Symbol");?>:</td><td><input type="text" name="marker-symbol" value=""></input></td></tr>' +
+        '<tr><td><?php echo _mb("Symbol size");?>:</td><td><select name="marker-size" value="medium"><option value="large"><?php echo _mb("large");?></option><option value="medium" selected="selected"><?php echo _mb("medium");?></option><option value="small"><?php echo _mb("small");?></option></select></td></tr>' +
+        '<tr><td><?php echo _mb("Symbol color");?>:</td><td><input type="color" name="marker-color" value="#ffffff"></input></td></tr>' +
+        '<tr><td><?php echo _mb("Line color");?>:</td><td><input type="color" name="stroke" value="#000000"></input></td></tr>' +
+        '<tr><td><?php echo _mb("Line opacity");?>:</td><td><div class="opacity-slider" data-name="stroke-opacity"></div></td></tr>' +
+        '<tr><td><?php echo _mb("Line width");?>:</td><td><input type="text" name="stroke-width" value="1"></input></td></tr>' +
+        '<tr><td><?php echo _mb("Fill color");?>:</td><td><input type="color" name="fill" value="#ff0000"></input></td></tr>' +
+        '<tr><td><?php echo _mb("Fill opacity");?>:</td><td><div class="opacity-slider" data-name="fill-opacity"></div></td></tr>' +
         '</table><br></br>' +
         '<div class="digitize-image digitize-save"></div>' +
-        '<button name="digitize-reset-style">Reset</button>' +
+        '<button name="digitize-reset-style"><?php echo _mb("Reset");?></button>' +
         '</div>';
 
     var folderMenu = '<ul class="digitize-contextmenu">' +
-        '<li><div class="digitize-image digitize-pencil"></div>Edit</li>' +
-        '<li><div class="digitize-image digitize-zoomto"></div>Zoom to</li>' +
-        '<li><div class="digitize-image digitize-add"></div>New</li>' +
-        '<li><div class="digitize-image digitize-export"></div>Export</li>' +
-        '<li><div class="digitize-image digitize-remove"></div>Delete</li>' +
-        '<li><div class="digitize-image digitize-close"></div>Close</li>' +
+        '<li><div class="digitize-image digitize-pencil"></div><?php echo _mb("Edit");?></li>' +
+        '<li><div class="digitize-image digitize-zoomto"></div><?php echo _mb("Zoom to");?></li>' +
+        '<li><div class="digitize-image digitize-add"></div><?php echo _mb("New");?></li>' +
+        '<li><div class="digitize-image digitize-export"></div><?php echo _mb("Export");?></li>' +
+        '<li><div class="digitize-image digitize-remove"></div><?php echo _mb("Delete");?></li>' +
+        '<li><div class="digitize-image digitize-close"></div><?php echo _mb("Close");?></li>' +
         '</ul>';
 
     var geomMenu = '<ul class="digitize-contextmenu">' +
-        '<li><div class="digitize-image digitize-pencil"></div>Edit</li>' +
-        '<li><div class="digitize-image digitize-zoomto"></div>Zoom to</li>' +
-        // '<li><div class="digitize-image digitize-add"></div>New</li>' +
-        '<li><div class="digitize-image digitize-export"></div>Export</li>' +
-        '<li><div class="digitize-image digitize-remove"></div>Delete</li>' +
-        '<li><div class="digitize-image digitize-style"></div>Styling</li>' +
-        '<li><div class="digitize-image digitize-close"></div>Close</li>' +
+        '<li><div class="digitize-image digitize-pencil"></div><?php echo _mb("Edit");?></li>' +
+        '<li><div class="digitize-image digitize-zoomto"></div><?php echo _mb("Zoom to");?></li>' +
+        // '<li><div class="digitize-image digitize-add"></div><?php echo _mb("New");?></li>' +
+        '<li><div class="digitize-image digitize-export"></div><?php echo _mb("Export");?></li>' +
+        '<li><div class="digitize-image digitize-remove"></div><?php echo _mb("Delete");?></li>' +
+        '<li><div class="digitize-image digitize-style"></div><?php echo _mb("Styling");?></li>' +
+        '<li><div class="digitize-image digitize-close"></div><?php echo _mb("Close");?></li>' +
         '</ul>';
 
     var geomPartMenu = '<ul class="digitize-contextmenu">' +
-        '<li><div class="digitize-image digitize-pencil"></div>Edit</li>' +
-        '<li><div class="digitize-image digitize-zoomto"></div>Zoom to</li>' +
-        '<li><div class="digitize-image digitize-export"></div>Export</li>' +
-        '<li><div class="digitize-image digitize-remove"></div>Delete</li>' +
-        '<li><div class="digitize-image digitize-close"></div>Close</li>' +
+        '<li><div class="digitize-image digitize-pencil"></div><?php echo _mb("Edit");?></li>' +
+        '<li><div class="digitize-image digitize-zoomto"></div><?php echo _mb("Zoom to");?></li>' +
+        '<li><div class="digitize-image digitize-export"></div><?php echo _mb("Export");?></li>' +
+        '<li><div class="digitize-image digitize-remove"></div><?php echo _mb("Delete");?></li>' +
+        '<li><div class="digitize-image digitize-close"></div><?php echo _mb("Close");?></li>' +
         '</ul>';
 
     var exportHtml = '<div id="export-dialog" title="Export my features">'
@@ -679,13 +682,13 @@
 
                 var geometryDiv = $('<div class= "geometry-div"></div>');
                 // create for each section [#4] one table in a div and put it in html of .attrAccordion
-                var nonEditableRows = '<h3 style="text-align:center;">Fix-Data</h3><div><table class="ftr-data-tbl fix-data">';//</table></div>';
+                var nonEditableRows = '<h3 style="text-align:center;"><?php echo _mb("Fix-Data");?></h3><div><table class="ftr-data-tbl fix-data">';//</table></div>';
                 // var nonEditableRows = '<tr><th>Fix-Data</th></tr>';
-                var editableRows = '<h3 style="text-align:center;">Editable-Data</h3><div><table class="ftr-data-tbl edit-data">';//</table></div>';
+                var editableRows = '<h3 style="text-align:center;"><?php echo _mb("Editable-Data");?></h3><div><table class="ftr-data-tbl edit-data">';//</table></div>';
                 // var editableRows = '<tr><th>Editable-Data</th></tr>';
-                var customRows = '<h3 style="text-align:center;">Custom-Data</h3><div><table class="ftr-data-tbl custom-data">';//</table></div>';
+                var customRows = '<h3 style="text-align:center;"><?php echo _mb("Custom-Data");?></h3><div><table class="ftr-data-tbl custom-data">';//</table></div>';
                 // var customRows = '<tr><th>Custom-Data</th></tr>';
-                var styleRows = '<h3 style="text-align:center;">Style-Data</h3><div><table class="ftr-data-tbl style-data">';//</table></div>';
+                var styleRows = '<h3 style="text-align:center;"><?php echo _mb("Style-Data");?></h3><div><table class="ftr-data-tbl style-data">';//</table></div>';
                 // var divider = "<tr><th>divider</th></tr>";
 
                 console.log(feature.properties);



More information about the Mapbender_commits mailing list