[Commits] r1732 - in sandbox/redlining/ux/FeatureEditing/ux/widgets: . form plugins

commits at geoext.org commits at geoext.org
Wed Jan 13 08:33:33 CET 2010


Author: cmoullet
Date: 2010-01-13 08:33:32 +0100 (Wed, 13 Jan 2010)
New Revision: 1732

Modified:
   sandbox/redlining/ux/FeatureEditing/ux/widgets/FeatureEditingControler.js
   sandbox/redlining/ux/FeatureEditing/ux/widgets/form/FeatureEditingPanel.js
   sandbox/redlining/ux/FeatureEditing/ux/widgets/form/FeaturePanel.js
   sandbox/redlining/ux/FeatureEditing/ux/widgets/plugins/ExportFeature.js
   sandbox/redlining/ux/FeatureEditing/ux/widgets/plugins/ExportFeatures.js
   sandbox/redlining/ux/FeatureEditing/ux/widgets/plugins/ImportFeatures.js
Log:
OpenLayers.i18n + minor fix to exportFeature

Modified: sandbox/redlining/ux/FeatureEditing/ux/widgets/FeatureEditingControler.js
===================================================================
--- sandbox/redlining/ux/FeatureEditing/ux/widgets/FeatureEditingControler.js	2010-01-13 07:29:13 UTC (rev 1731)
+++ sandbox/redlining/ux/FeatureEditing/ux/widgets/FeatureEditingControler.js	2010-01-13 07:33:32 UTC (rev 1732)
@@ -165,14 +165,14 @@
 
         var action = new GeoExt.Action({
             //iconCls: "todo",
-            text: "EditFeature",
+            text: OpenLayers.i18n("EditFeature"),
             control: control,
             map: this.map,
             // button options
             toggleGroup: this.map.id,
             allowDepress: false,
             pressed: false,
-            tooltip: "todo",
+            tooltip: OpenLayers.i18n("todo"),
             // check item options
             group: this.map.id,
             checked: false
@@ -250,7 +250,7 @@
                 toggleGroup: this.map.id,
                 allowDepress: false,
                 pressed: false,
-                tooltip: "todo",
+                tooltip: OpenLayers.i18n("todo"),
                 // check item options
                 group: this.map.id,
                 checked: false
@@ -276,7 +276,7 @@
      */
     initDeleteAllAction: function() {
         var action = new Ext.Action({
-            text:'DeleteAll',
+            text: OpenLayers.i18n('DeleteAll'),
             handler: this.deleteAllFeatures,
             scope: this
         });
@@ -385,7 +385,7 @@
         // display the popup
         var popup = new GeoExt.Popup({
             feature: feature,
-            title: 'EditFeature',
+            title: OpenLayers.i18n('EditFeature'),
             controler: this,
                     layout: 'fit',
             items: [this.featurePanel]

Modified: sandbox/redlining/ux/FeatureEditing/ux/widgets/form/FeatureEditingPanel.js
===================================================================
--- sandbox/redlining/ux/FeatureEditing/ux/widgets/form/FeatureEditingPanel.js	2010-01-13 07:29:13 UTC (rev 1731)
+++ sandbox/redlining/ux/FeatureEditing/ux/widgets/form/FeatureEditingPanel.js	2010-01-13 07:33:32 UTC (rev 1732)
@@ -152,7 +152,7 @@
         oItems = [];
         oItems.push({
               id: "testid",
-                    fieldLabel: "myOption",
+                    fieldLabel: OpenLayers.i18n("myOption"),
                     maxLength: 50,
                     xtype: "checkbox"
                 });

Modified: sandbox/redlining/ux/FeatureEditing/ux/widgets/form/FeaturePanel.js
===================================================================
--- sandbox/redlining/ux/FeatureEditing/ux/widgets/form/FeaturePanel.js	2010-01-13 07:29:13 UTC (rev 1731)
+++ sandbox/redlining/ux/FeatureEditing/ux/widgets/form/FeaturePanel.js	2010-01-13 07:33:32 UTC (rev 1732)
@@ -149,7 +149,7 @@
         oGroup = {
             id: this.attributeFieldSetId,
             xtype: 'fieldset',
-            title: 'Attributes',
+            title: OpenLayers.i18n('Attributes'),
             layout: 'form',
             collapsible: true,
             autoHeight: this.autoHeight,
@@ -181,7 +181,7 @@
      */
     initDeleteAction: function() {
         var action = new Ext.Action({
-            text:'Delete',
+            text: OpenLayers.i18n('Delete'),
             handler: this.deleteFeatures,
             scope: this
         });

Modified: sandbox/redlining/ux/FeatureEditing/ux/widgets/plugins/ExportFeature.js
===================================================================
--- sandbox/redlining/ux/FeatureEditing/ux/widgets/plugins/ExportFeature.js	2010-01-13 07:29:13 UTC (rev 1731)
+++ sandbox/redlining/ux/FeatureEditing/ux/widgets/plugins/ExportFeature.js	2010-01-13 07:33:32 UTC (rev 1732)
@@ -8,7 +8,7 @@
         this.controler = form.controler;
 
         var action = new Ext.Action({
-            text: "Export",
+            text: OpenLayers.i18n("Export"),
             handler: this.exportFeatures,
             scope: this
         });
@@ -19,10 +19,9 @@
 
     exportFeatures: function() {
         var map = this.controler.map;
-        var layer = this.editFeatureForm.features[0].layer;
         var features = this.editFeatureForm.features;
 
         this.controler.triggerAutoSave();
-        GeoExt.ux.data.Export.KMLExport(map, layer, features);
+        GeoExt.ux.data.Export.KMLExport(map, null, features);
     }
 });

Modified: sandbox/redlining/ux/FeatureEditing/ux/widgets/plugins/ExportFeatures.js
===================================================================
--- sandbox/redlining/ux/FeatureEditing/ux/widgets/plugins/ExportFeatures.js	2010-01-13 07:29:13 UTC (rev 1731)
+++ sandbox/redlining/ux/FeatureEditing/ux/widgets/plugins/ExportFeatures.js	2010-01-13 07:33:32 UTC (rev 1732)
@@ -6,7 +6,7 @@
         this.controler = form.controler;
 
         var action = new Ext.Action({
-            text: "Export",
+            text: OpenLayers.i18n("Export"),
             handler: this.exportFeatures,
             scope: this
         });

Modified: sandbox/redlining/ux/FeatureEditing/ux/widgets/plugins/ImportFeatures.js
===================================================================
--- sandbox/redlining/ux/FeatureEditing/ux/widgets/plugins/ImportFeatures.js	2010-01-13 07:29:13 UTC (rev 1731)
+++ sandbox/redlining/ux/FeatureEditing/ux/widgets/plugins/ImportFeatures.js	2010-01-13 07:33:32 UTC (rev 1732)
@@ -5,7 +5,7 @@
     init: function(form) {
         this.layer = form.layer;
         var action = new Ext.Action({
-            text: "Import",
+            text: OpenLayers.i18n("Import"),
             handler: this.importFeatures,
             scope: this
         });



More information about the Commits mailing list