[Commits] r2084 - sandbox/cmoullet/ux/OpenAddressesSearchCombo/lib/GeoExt.ux.openaddresses

commits at geoext.org commits at geoext.org
Thu Apr 15 20:42:16 CEST 2010


Author: cmoullet
Date: 2010-04-15 20:42:16 +0200 (Thu, 15 Apr 2010)
New Revision: 2084

Modified:
   sandbox/cmoullet/ux/OpenAddressesSearchCombo/lib/GeoExt.ux.openaddresses/OpenAddressesSearchCombo.js
Log:
Allow translation

Modified: sandbox/cmoullet/ux/OpenAddressesSearchCombo/lib/GeoExt.ux.openaddresses/OpenAddressesSearchCombo.js
===================================================================
--- sandbox/cmoullet/ux/OpenAddressesSearchCombo/lib/GeoExt.ux.openaddresses/OpenAddressesSearchCombo.js	2010-04-13 12:00:23 UTC (rev 2083)
+++ sandbox/cmoullet/ux/OpenAddressesSearchCombo/lib/GeoExt.ux.openaddresses/OpenAddressesSearchCombo.js	2010-04-15 18:42:16 UTC (rev 2084)
@@ -37,18 +37,6 @@
      */
     listWidth: 350,
 
-    /** api: config[loadingText]
-     *  See http://www.extjs.com/deploy/dev/docs/source/Combo.html#cfg-Ext.form.ComboBox-loadingText,
-     *  default value is "Search in OpenAddresses...".
-     */
-    loadingText: OpenLayers.i18n('Search in OpenAddresses...'),
-
-    /** api: config[emptyText]
-     *  See http://www.extjs.com/deploy/dev/docs/source/TextField.html#cfg-Ext.form.TextField-emptyText,
-     *  default value is "Search location in Geonames".
-     */
-    emptyText: OpenLayers.i18n('Search address in OpenAddresses'),
-
     /** api: config[zoom]
      *  ``Number`` Zoom level for recentering the map after search, if set to
      *  a negative number the map isn't recentered, defaults to 8.
@@ -108,6 +96,8 @@
     /** private: constructor
      */
     initComponent: function() {
+        this.emptyText =  OpenLayers.i18n('Search address in OpenAddresses');
+        this.loadingText = OpenLayers.i18n('Search in OpenAddresses...');
         GeoExt.ux.openaddresses.OpenAddressesSearchCombo.superclass.initComponent.apply(this, arguments);
         
         this.store = new Ext.data.Store({



More information about the Commits mailing list