[Mapbender-commits] r7547 - in trunk/mapbender/http: javascripts plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Feb 10 04:36:16 EST 2011


Author: armin11
Date: 2011-02-10 01:36:16 -0800 (Thu, 10 Feb 2011)
New Revision: 7547

Modified:
   trunk/mapbender/http/javascripts/mod_wfsGazetteerEditor_client.php
   trunk/mapbender/http/plugins/wfsConfTree.js
Log:
Enable i18 for mod_wfsGazetteerEditor_client.php

Modified: trunk/mapbender/http/javascripts/mod_wfsGazetteerEditor_client.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_wfsGazetteerEditor_client.php	2011-02-10 09:02:12 UTC (rev 7546)
+++ trunk/mapbender/http/javascripts/mod_wfsGazetteerEditor_client.php	2011-02-10 09:36:16 UTC (rev 7547)
@@ -249,7 +249,7 @@
 }
 
 function openwindow(Adresse) {
-	Fenster1 = window.open(Adresse, "Informationen", "width=500,height=500,left=100,top=100,scrollbars=yes,resizable=no");
+	Fenster1 = window.open(Adresse, "<?php echo _mb("Informations"); ?>", "width=500,height=500,left=100,top=100,scrollbars=yes,resizable=no");
 	Fenster1.focus();
 }
 
@@ -263,7 +263,7 @@
 	imgNode.src = "../img/button_blue/getArea_off.png";
 	imgNode.border = 0;
 	bulbNode.appendChild(imgNode);
-	bulbNode.href = "javascript:openwindow('../php/mod_showMetadata.php?wfs_conf_id=" + global_selectedWfsConfId.toString() + "');";
+	bulbNode.href = "javascript:openwindow('../php/mod_showMetadata.php?resource=wfs-conf&id=" + global_selectedWfsConfId.toString() + "');";
 	bulbNode.style.display = "inline";
 	
 	//
@@ -279,11 +279,11 @@
 	}
 	if (preConfigured) {
 		wfsPreConfiguredOrEditor.src = "../img/gnome/icn_suchmodul.png";
-		wfsPreConfiguredOrEditor.title = "Modultyp: Suche";
+		wfsPreConfiguredOrEditor.title = "<?php echo _mb("Moduletype: Search"); ?>";
 	}
 	else {
 		wfsPreConfiguredOrEditor.src = "../img/gnome/document-save.png";
-		wfsPreConfiguredOrEditor.title = "Modultyp: Download";
+		wfsPreConfiguredOrEditor.title = "<?php echo _mb("Moduletype: Download"); ?>";
 	}
 	wfsPreConfiguredOrEditor.style.display = 'inline';
 	
@@ -298,19 +298,19 @@
 		}
 	}
 	if (wfsGeomType.match(/Point/)) {
-		wfsGeomTypeNode.src = "../x_geoportal/img/wfs_pkt.gif";
+		wfsGeomTypeNode.src = "../img/button_digitize_blue_red/point.png";
 		wfsGeomTypeNode.style.display = 'inline';
-		wfsGeomTypeNode.title = 'Geometrietyp: Punkt';
+		wfsGeomTypeNode.title = '<?php echo _mb("Geometrytype: point"); ?>';
 	}
 	else if (wfsGeomType.match(/Line/)) {
-		wfsGeomTypeNode.src = "../x_geoportal/img/wfs_l.gif";
+		wfsGeomTypeNode.src = "../img/button_digitize_blue_red/line.png";
 		wfsGeomTypeNode.style.display = 'inline';
-		wfsGeomTypeNode.title = 'Geometrietyp: Linie';
+		wfsGeomTypeNode.title = '<?php echo _mb("Geometrytype: line"); ?>';
 	}
 	else if (wfsGeomType.match(/Polygon/)) {
-		wfsGeomTypeNode.src = "../x_geoportal/img/wfs_p.gif";
+		wfsGeomTypeNode.src = "../img/button_digitize_blue_red/polygon.png";
 		wfsGeomTypeNode.style.display = 'inline';
-		wfsGeomTypeNode.title = 'Geometrietyp: Fläche';
+		wfsGeomTypeNode.title = '<?php echo _mb("Geometrytype: area"); ?>';
 	}
 	else {
 		var e = new parent.Mb_exception("WFS gazetteer: geometry type unknown.");		
@@ -580,7 +580,7 @@
 					helptext.innerHTML += '<a href="#" class="close" onclick="hideHelptext(' + i + ')">close</a>';
 					helptextDisplay.appendChild(helptext);
 					
-					helptextNode.innerHTML = ' <a href="#" onclick="showHelptext(' + i + ')"><img src="img/help.png" width="16" height="16" alt="?" /></a> ';
+					helptextNode.innerHTML = ' <a href="#" onclick="showHelptext(' + i + ')"><img src="../img/help.png" width="16" height="16" alt="?" /></a> ';
 				}
 				
 				form.appendChild(spanNode);
@@ -608,7 +608,7 @@
 	var submit = document.getElementById("wfsForm_Submit");
 	var submit_attr = document.getElementById("attrPanel_Submit");
 	if(global_wfsConfObj[global_selectedWfsConfId].featuretype_srs!=parent.mb_mapObj[ind].getSRS()){
-		var msg = "Das Projektionssystem von Karte und WFS-Featuretype ist unterschiedlich, Abfrage nicht moeglich!\n";
+		var msg = "<?php echo _mb("The coordinate reference system (crs) of the objects differ from the crs of the viewer. A query will not be possible. Please change the crs of the viewer first."); ?>\n";
 		msg += parent.mb_mapObj[ind].getSRS()+" und "+global_wfsConfObj[global_selectedWfsConfId].featuretype_srs;
 		alert(msg);
 			
@@ -949,7 +949,7 @@
 						}
 					}
 		       		else {
-						alert("Kein Ergebnis.");
+						alert("<?php echo _mb("No Result"); ?>");
 					}
 	       		}
 	       		else {
@@ -960,7 +960,7 @@
 						downloadPopup.hide();
 					}
 		       		else {
-						alert("Beim Export ist ein Fehler aufgetreten.");
+						alert("<?php echo _mb("An error occured when start download."); ?>");
 		       		}
 				}
 				document.getElementById("progressWheel").innerHTML = "";
@@ -1078,7 +1078,7 @@
 	resultList.show();
 	return;
 
-	var contentHtml = "Kein Ergebnis";
+	var contentHtml = "<?php echo _mb("No Result"); ?>";
 	if (geomArray != null && geomArray.count() > 0){
 		contentHtml = createListOfGeometries();
 	}
@@ -1123,7 +1123,7 @@
 		}
 	}
 //	if(details != 1){
-//		resultHtml +="<tr><td>Keine Informationen</td></tr>\n";
+//		resultHtml +="<tr><td><?php echo _mb("No information"); ?></td></tr>\n";
 //	}
 	resultHtml += "</table>\n";
 	
@@ -1205,18 +1205,18 @@
 	<!-- WFS conf info -->
 	<img src = "" name='wfsPreConfiguredOrEditor' id='wfsPreConfiguredOrEditor' style='display:none'>
 	<img src = "" name='wfsGeomType' id='wfsGeomType' style='display:none'>
-	<a name='wfsInfo' title='Informationen anzeigen' id='wfsInfo' style='display:none'></a><form name='attrPanel' id='attrPanel' onsubmit='return makeRequest();'>
+	<a name='wfsInfo' title='<?php echo _mb("Show information"); ?>' id='wfsInfo' style='display:none'></a><form name='attrPanel' id='attrPanel' onsubmit='return makeRequest();'>
 
 
 	<div class='mainDiv' id='mainDiv' style="display:none">
-	<b>Räumliche Auswahl</b>
+	<b><?php echo _mb("Spatial extent"); ?></b>
 	<div name='displaySpatialButtons' id='displaySpatialButtons' style='width:180px'></div>
 	<input type="button" id="deleteRequestGeometry" name="deleteRequestGeometry" value="löschen" style="position:absolute;top:70px;left:120px;display:none">
 	<br><br>
 	<b>Attributauswahl</b>
 	  <table>
 	  	<tr valign='top'>
-	  		<td width='30%'>&nbsp;</td><td width='35%'>&nbsp;</td><td width='35%' style='font-size:12px;'>Beispielinhalte (erste 20 Einträge)</td>
+	  		<td width='30%'>&nbsp;</td><td width='35%'>&nbsp;</td><td width='35%' style='font-size:12px;'><?php echo _mb("Examples (first 20 entries):"); ?></td>
 	  	</tr>
 	    <tr valign='top'>
 	      	<td width='30%'>
@@ -1248,16 +1248,14 @@
 	    </tr> 
 	    <tr >
 	      	<td>	      		
-	      		 <input type='submit' id='attrPanel_Submit' value='Anfrage
-starten'>
+	      		 <input type='submit' id='attrPanel_Submit' value='<?php echo _mb("Start query"); ?>'>
 	      	</td>	      		
 			<td>
-				<input onClick='deleteFilterText();' type='button' value='Filter
-zur&uuml;cksetzen'>
+				<input onClick='deleteFilterText();' type='button' value='<?php echo _mb("Reset Filter"); ?>'>
 			</td>
 	      	<td>	      		
 				<div name='displayCheckbox' id='displayCheckbox' style='width:180px'>
-					<input type='checkbox' name='exportToShape' id='exportToShape'>Daten exportieren
+					<input type='checkbox' name='exportToShape' id='exportToShape'><?php echo _mb("Export data"); ?>
 				</div>
 	      	</td>	      		
 	    </tr> 

Modified: trunk/mapbender/http/plugins/wfsConfTree.js
===================================================================
--- trunk/mapbender/http/plugins/wfsConfTree.js	2011-02-10 09:02:12 UTC (rev 7546)
+++ trunk/mapbender/http/plugins/wfsConfTree.js	2011-02-10 09:36:16 UTC (rev 7547)
@@ -4,7 +4,7 @@
  *  */
 //some things for i18
 var originalI18nObject = {
-	"labelNoWfsConfAvailable": "No geometry modules are available.<br>You can load those from the Search.",
+	"labelNoWfsConfAvailable": "No geometry modules are available. You can load those from the Search.",
 };
 
 var translatedI18nObject = Mapbender.cloneObject(originalI18nObject);



More information about the Mapbender_commits mailing list