[Commits] r2193 - sandbox/cmoullet/ux/OpenAddressesSearchCombo/lib/GeoExt.ux
commits at geoext.org
commits at geoext.org
Mon May 17 09:34:13 CEST 2010
Author: elemoine
Date: 2010-05-17 09:34:13 +0200 (Mon, 17 May 2010)
New Revision: 2193
Modified:
sandbox/cmoullet/ux/OpenAddressesSearchCombo/lib/GeoExt.ux/OpenAddressesSearchCombo.js
Log:
set emptyText and loadingText in the prototype so they can be overriden at instantiation time
Modified: sandbox/cmoullet/ux/OpenAddressesSearchCombo/lib/GeoExt.ux/OpenAddressesSearchCombo.js
===================================================================
--- sandbox/cmoullet/ux/OpenAddressesSearchCombo/lib/GeoExt.ux/OpenAddressesSearchCombo.js 2010-05-13 18:02:58 UTC (rev 2192)
+++ sandbox/cmoullet/ux/OpenAddressesSearchCombo/lib/GeoExt.ux/OpenAddressesSearchCombo.js 2010-05-17 07:34:13 UTC (rev 2193)
@@ -15,6 +15,23 @@
Ext.namespace("GeoExt.ux");
GeoExt.ux.OpenAddressesSearchCombo = Ext.extend(Ext.form.ComboBox, {
+
+ /* i18n begin */
+
+ /** api: config[emptyText]
+ * ``String`` The default text to place into an empty field. Defaults to
+ * "Search address in OpenAddresses".
+ */
+ emptyText: OpenLayers.i18n('Search address in OpenAddresses'),
+
+ /** api: config[loadingText]
+ * ``String`` The text to display in the dropdown list while data is
+ * loading. Defaults to "Search in OpenAddresses...".
+ */
+ loadingText: OpenLayers.i18n('Search in OpenAddresses...'),
+
+ /* i18n end */
+
/** api: config[map]
* ``OpenLayers.Map or Object`` A configured map or a configuration object
* for the map constructor, required only if :attr:`zoom` is set to
@@ -95,8 +112,6 @@
/** private: constructor
*/
initComponent: function() {
- this.emptyText = OpenLayers.i18n('Search address in OpenAddresses');
- this.loadingText = OpenLayers.i18n('Search in OpenAddresses...');
GeoExt.ux.OpenAddressesSearchCombo.superclass.initComponent.apply(this, arguments);
this.store = new Ext.data.Store({
More information about the Commits
mailing list