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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon May 4 23:11:28 PDT 2015


Author: armin11
Date: 2015-05-04 23:11:28 -0700 (Mon, 04 May 2015)
New Revision: 9191

Modified:
   trunk/mapbender/http/plugins/mb_digitize_widget.php
Log:
Some more translations

Modified: trunk/mapbender/http/plugins/mb_digitize_widget.php
===================================================================
--- trunk/mapbender/http/plugins/mb_digitize_widget.php	2015-05-04 15:47:08 UTC (rev 9190)
+++ trunk/mapbender/http/plugins/mb_digitize_widget.php	2015-05-05 06:11:28 UTC (rev 9191)
@@ -97,8 +97,8 @@
         '<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="<?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><tr><td><?php echo _mb("Name");?></td><td><input type="text" name="name" value="<?php echo _mb("Name");?>"></input></td></tr>' +
+        '<tr><td><?php echo _mb("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>' +
@@ -164,7 +164,7 @@
         '<li><div class="digitize-image digitize-close"></div><?php echo _mb("Close");?></li>' +
         '</ul>';
 
-    var exportHtml = '<div id="export-dialog" title="Export my features">'
+    var exportHtml = '<div id="export-dialog" title="<?php echo _mb("Export my features");?>">'
                      + '<form>'
                      + '<label class="export-format-kml">KML<input type="radio" name="export-format" value="kml" checked="checked"></input></label>'
                      + '<label class="export-format-gpx">GPX<input type="radio" name="export-format" value="gpx"></input></label>'
@@ -596,7 +596,7 @@
                     // kml = $('#mapframe1').data('kml');
                     var oldCollectionName = feature['@context'].title;
                     var featureCollAttrDlg = $('<div id="featureCollAttrDlg"></div>').dialog({
-                        title: "Featurecollection attributes ",// of "+ url,
+                        title: "<?php echo _mb("Featurecollection attributes");?> ",// of "+ url,
                         width: 400,
                         // height: 212,
                         position: {
@@ -691,7 +691,7 @@
                 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);
+                //console.log(feature.properties);
 
                 $.each(feature.properties, function(k, v) {
                     console.log(k, v);
@@ -811,7 +811,7 @@
                 $(this).next().toggleClass('digitize-hidden');
             });
             editDialog.find('.digitize-remove').bind('click', function() {
-                if(confirm('Do you really want to delete this feature? If you have no other copy all information will be lost. There is no backup option!')) {
+                if(confirm('<?php echo _mb("Do you really want to delete this feature? If you have no other copy all information will be lost. There is no backup option!");?>')) {
                     var kml = $('#mapframe1').data('kml');
                     var url = $link.parent().parent().attr('title');
                     var ids = [];
@@ -972,7 +972,7 @@
         that.deactivate();
         that.activate();
     };
-
+//TODO: exchange the use of proj4js with postgis transform funktion!
  var featureModified = function() {
 
         var kml = $('#mapframe1').data('kml');
@@ -1021,7 +1021,7 @@
                 success: function(data) {
 
                     if (geom.geomType == 'polygon') {
-
+			//TODO: use attributes area and length - not complex strings!
                         editedFeature.properties['Area [m²]'] = data[0];
                         editedFeature.properties['Boundary-Length [m]'] = data[1];
 



More information about the Mapbender_commits mailing list