[Mapbender-commits] r7346 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Mon Dec 20 17:51:22 EST 2010


Author: astrid_emde
Date: 2010-12-20 14:51:22 -0800 (Mon, 20 Dec 2010)
New Revision: 7346

Modified:
   trunk/mapbender/http/javascripts/mod_addWMSfromfilteredList_ajax.php
Log:
added missing i18n

Modified: trunk/mapbender/http/javascripts/mod_addWMSfromfilteredList_ajax.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_addWMSfromfilteredList_ajax.php	2010-12-20 22:33:57 UTC (rev 7345)
+++ trunk/mapbender/http/javascripts/mod_addWMSfromfilteredList_ajax.php	2010-12-20 22:51:22 UTC (rev 7346)
@@ -154,19 +154,18 @@
 		var msg = typeof opt.msg === "string" ? opt.msg : "";
 
 		if (typeof opt !== "object" || !opt.success) {
-			msg = "Ein unbekannter Fehler ist aufgetreten.";
+			msg = '<?php echo _mb("An unknown error occured.") ?>';
 		}
 		else {
 			var map = parent.getMapObjByName('<?php echo $e_target[1]; ?>');
 			var wms = map.wms[map.wms.length - 1];
 
 			if (wms !== null) {
-				msg = "Der folgende Dienst wurde zu 'Aktive Dienste' " +
-					"hinzugefügt:<br><br>";
-				msg += "<b>" + wms.wms_title + "</b>";
+				msg = '<?php echo _mb("The following Service has been added to the application") ?>' + ': ';
+				msg += wms.wms_title;
 			}
 			else {
-				msg = "Ein unbekannter Fehler ist aufgetreten.";
+				msg = '<?php echo _mb("An unknown error occured.") ?>';
 			}
 		}
 		$("<div></div>").text(msg).dialog();



More information about the Mapbender_commits mailing list