[Mapbender-commits] r7546 - in trunk/mapbender: http/javascripts http/plugins resources/locale/de_DE/LC_MESSAGES

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Feb 10 04:02:12 EST 2011


Author: armin11
Date: 2011-02-10 01:02:12 -0800 (Thu, 10 Feb 2011)
New Revision: 7546

Modified:
   trunk/mapbender/http/javascripts/mod_wfsGazetteerEditor_client.php
   trunk/mapbender/http/plugins/wfsConfTree.js
   trunk/mapbender/resources/locale/de_DE/LC_MESSAGES/Mapbender.po
Log:
i18 for wfsConfTree, some bugfixes

Modified: trunk/mapbender/http/javascripts/mod_wfsGazetteerEditor_client.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_wfsGazetteerEditor_client.php	2011-02-10 08:11:01 UTC (rev 7545)
+++ trunk/mapbender/http/javascripts/mod_wfsGazetteerEditor_client.php	2011-02-10 09:02:12 UTC (rev 7546)
@@ -260,10 +260,10 @@
 	var bulbNode = document.getElementById("wfsInfo"); 	
 	var imgNode = document.createElement("img");
 	imgNode.id = "wfsInfoImg";
-	imgNode.src = "../x_geoportal/img/info.png";
+	imgNode.src = "../img/button_blue/getArea_off.png";
 	imgNode.border = 0;
 	bulbNode.appendChild(imgNode);
-	bulbNode.href = "javascript:openwindow('../x_geoportal/mod_featuretypeMetadata.php?wfs_conf_id=" + global_selectedWfsConfId.toString() + "');";
+	bulbNode.href = "javascript:openwindow('../php/mod_showMetadata.php?wfs_conf_id=" + global_selectedWfsConfId.toString() + "');";
 	bulbNode.style.display = "inline";
 	
 	//
@@ -278,11 +278,11 @@
 		}
 	}
 	if (preConfigured) {
-		wfsPreConfiguredOrEditor.src = "../x_geoportal/img/modul_suche.png";
+		wfsPreConfiguredOrEditor.src = "../img/gnome/icn_suchmodul.png";
 		wfsPreConfiguredOrEditor.title = "Modultyp: Suche";
 	}
 	else {
-		wfsPreConfiguredOrEditor.src = "../x_geoportal/img/modul_download.png";
+		wfsPreConfiguredOrEditor.src = "../img/gnome/document-save.png";
 		wfsPreConfiguredOrEditor.title = "Modultyp: Download";
 	}
 	wfsPreConfiguredOrEditor.style.display = 'inline';

Modified: trunk/mapbender/http/plugins/wfsConfTree.js
===================================================================
--- trunk/mapbender/http/plugins/wfsConfTree.js	2011-02-10 08:11:01 UTC (rev 7545)
+++ trunk/mapbender/http/plugins/wfsConfTree.js	2011-02-10 09:02:12 UTC (rev 7546)
@@ -1,7 +1,26 @@
 /*
- *  default wfsConfIdString is taken from the elementVar "wfsConfIdString" to the mapframe1 element
+ *  default wfsConfIdString is taken from the elementVar "wfsConfIdString" of the mapframe1 element!
  *
  *  */
+//some things for i18
+var originalI18nObject = {
+	"labelNoWfsConfAvailable": "No geometry modules are available.<br>You can load those from the Search.",
+};
+
+var translatedI18nObject = Mapbender.cloneObject(originalI18nObject);
+
+if(Mapbender.modules.i18n){	
+	Mapbender.modules.i18n.queue(options.id, originalI18nObject, function (translatedObject) {
+		if (typeof translatedObject !== "object") {
+			return;
+		}
+		translatedI18nObject = translatedObject;
+	});
+	Mapbender.modules.i18n.localize(Mapbender.languageId);
+}
+
+
+
 var $confTree = $(this);
 var ConfTree = function(o){
 
@@ -59,7 +78,7 @@
 	var reset = function(aWFSConf){
 		wfsconfs = [];
 		$confTree.children().remove();
-		$confTree.append("<li class='emptymessage'>Keine WFSConf verfügbar</li>");
+		$confTree.append("<li class='emptymessage'>"+translatedI18nObject.labelNoWfsConfAvailable+"</li>");
 		$confTree.addClass('conftree');
 
 		var $WFSConffolder = $('<li class="open wfsconf"><ul></ul></li>');

Modified: trunk/mapbender/resources/locale/de_DE/LC_MESSAGES/Mapbender.po
===================================================================
--- trunk/mapbender/resources/locale/de_DE/LC_MESSAGES/Mapbender.po	2011-02-10 08:11:01 UTC (rev 7545)
+++ trunk/mapbender/resources/locale/de_DE/LC_MESSAGES/Mapbender.po	2011-02-10 09:02:12 UTC (rev 7546)
@@ -1118,6 +1118,10 @@
 msgid "load Service anyway?"
 msgstr "Dienst trotzdem laden?"
 
+#: ../http/plugins/wfsConfTree.js:7
+msgid "No geometry modules are available. You can load those from the Search."
+msgstr "Keine Geometriemodule verfügbar. Sie können Module über die Suche hinzuladen."
+
 #: ../http/javascripts/mod_zoomCoords.php:36
 msgid "Please type a number."
 msgstr "Bitte geben Sie die Koordinaten als Zahlen ein."



More information about the Mapbender_commits mailing list