Hi list!

I'm added some code for show a message if the search is empty and 'es','ca'
and 'en' translations in the diff attached.

Cheers.
-- 

Alejandro Díaz Torres
Área de Proyectos
Emergya ConsultoríaTfno: +34 954 51 75 77
Fax: +34 954 51 64 73www.emergya.es
Index: geoext.ux/ux/GeoNamesSearchCombo/lib/locale/GeoNamesSearchCombo-en.js
===================================================================
--- geoext.ux/ux/GeoNamesSearchCombo/lib/locale/GeoNamesSearchCombo-en.js	(revisión: 0)
+++ geoext.ux/ux/GeoNamesSearchCombo/lib/locale/GeoNamesSearchCombo-en.js	(revisión: 0)
@@ -0,0 +1,19 @@
+/**
+ * Copyright (c) 2008-2010 The Open Source Geospatial Foundation
+ *
+ * Published under the BSD license.
+ * See http://svn.geoext.org/core/trunk/geoext/license.txt for the full text
+ * of the license.
+ */
+
+/**
+ * @requires GeoExt/Lang.js
+ */
+
+GeoExt.Lang.add("en", {
+    "GeoExt.ux.GeoNamesSearchCombo.prototype":{
+    	loadingText: 'Search in Geonames...',
+    	emptyText: 'Search location in Geonames',
+    	listEmptyText: "Geoname not found"
+    }
+});
Index: geoext.ux/ux/GeoNamesSearchCombo/lib/locale/GeoNamesSearchCombo-ca.js
===================================================================
--- geoext.ux/ux/GeoNamesSearchCombo/lib/locale/GeoNamesSearchCombo-ca.js	(revisión: 0)
+++ geoext.ux/ux/GeoNamesSearchCombo/lib/locale/GeoNamesSearchCombo-ca.js	(revisión: 0)
@@ -0,0 +1,19 @@
+/**
+ * Copyright (c) 2008-2010 The Open Source Geospatial Foundation
+ *
+ * Published under the BSD license.
+ * See http://svn.geoext.org/core/trunk/geoext/license.txt for the full text
+ * of the license.
+ */
+
+/**
+ * @requires GeoExt/Lang.js
+ */
+
+GeoExt.Lang.add("ca", {
+    "GeoExt.ux.GeoNamesSearchCombo.prototype":{
+    	loadingText: 'Buscant ...',
+        emptyText: 'Tecleja per cercar per nom',
+        listEmptyText: 'No s\'han trobat resultats'
+    }
+});
Index: geoext.ux/ux/GeoNamesSearchCombo/lib/locale/GeoNamesSearchCombo-es.js
===================================================================
--- geoext.ux/ux/GeoNamesSearchCombo/lib/locale/GeoNamesSearchCombo-es.js	(revisión: 0)
+++ geoext.ux/ux/GeoNamesSearchCombo/lib/locale/GeoNamesSearchCombo-es.js	(revisión: 0)
@@ -0,0 +1,19 @@
+/**
+ * Copyright (c) 2008-2010 The Open Source Geospatial Foundation
+ *
+ * Published under the BSD license.
+ * See http://svn.geoext.org/core/trunk/geoext/license.txt for the full text
+ * of the license.
+ */
+
+/**
+ * @requires GeoExt/Lang.js
+ */
+
+GeoExt.Lang.add("es", {
+    "GeoExt.ux.GeoNamesSearchCombo.prototype":{
+    	loadingText: 'Buscando...',
+    	emptyText: 'Teclea para buscar por nombre',
+    	listEmptyText: 'No se han encontrado resultados'
+    }
+});
Index: geoext.ux/ux/GeoNamesSearchCombo/lib/GeoExt.ux/GeoNamesSearchCombo.js
===================================================================
--- geoext.ux/ux/GeoNamesSearchCombo/lib/GeoExt.ux/GeoNamesSearchCombo.js	(revisión: 2841)
+++ geoext.ux/ux/GeoNamesSearchCombo/lib/GeoExt.ux/GeoNamesSearchCombo.js	(copia de trabajo)
@@ -48,6 +48,12 @@
      *  default value is "Search location in Geonames".
      */
     emptyText: 'Search location in Geonames',
+    
+    /** api: config[listEmptyText]
+     *  See http://www.dev.sencha.com/deploy/dev/docs/source/TextField.html#cfg-Ext.form.TextField-emptyText,
+     *  default value is "Geoname not found".
+     */
+    listEmptyText: "Geoname not found",
 
     /** api: config[zoom]
      *  ``Number`` Zoom level for recentering the map after search, if set to
_______________________________________________
Dev mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/dev

Reply via email to