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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Fri Dec 17 11:54:42 EST 2010


Author: astrid_emde
Date: 2010-12-17 08:54:42 -0800 (Fri, 17 Dec 2010)
New Revision: 7339

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

Modified: trunk/mapbender/http/javascripts/mod_coordsLookup.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_coordsLookup.php	2010-12-17 16:53:31 UTC (rev 7338)
+++ trunk/mapbender/http/javascripts/mod_coordsLookup.php	2010-12-17 16:54:42 UTC (rev 7339)
@@ -16,7 +16,7 @@
  * > e_height, e_z_index, e_more_styles, e_content, e_closetag, e_js_file, 
  * > e_mb_mod, e_target, e_requires, e_url) VALUES ('<app_id>','coordsLookup',
  * > 10,1,'','Coordinate lookup','div','','',1000,0,NULL ,NULL ,NULL ,
- * > 'z-index:9999;','','div','mod_coordsLookup.js','',
+ * > 'z-index:9999;','','div','mod_coordsLookup.php','',
  * > 'mapframe1','','');
  * >
  * > INSERT INTO gui_element_vars (fkey_gui_id, fkey_e_id, var_name, 
@@ -68,7 +68,7 @@
 		this.perimeterSelectContainer  = $(document.createElement('p')).appendTo(this.formContainer);
 		this.triggerButtonContainer    = $(document.createElement('p')).appendTo(this.formContainer);
 //		Coordinates input with label
-		this.coordsInputLabel          = $(document.createElement('label')).attr({'for':'coord-x'}).text('Koordinaten:').appendTo(this.coordsInputContainer);
+		this.coordsInputLabel          = $(document.createElement('label')).attr({'for':'coord-x'}).text('<?php echo _mb("coordinates");?>:').appendTo(this.coordsInputContainer);
 		this.coordXInput               = $(document.createElement('input')).attr({'id':'coord-x','size':8}).appendTo(this.coordsInputContainer);
 		this.coordYInput               = $(document.createElement('input')).attr({'id':'coord-y','size':8}).appendTo(this.coordsInputContainer);
 		$(this.coordsInputLabel).after($(document.createElement('br')));
@@ -78,7 +78,7 @@
 //		Perimeter select
 		this.perimeterSelect           = $(document.createElement('select')).attr({'id':'perimeter-select'}).appendTo(this.perimeterSelectContainer);		
 //		Trigger button
-		this.triggerButton             = $(document.createElement('input')).attr({'id':'trigger-button','type':'button','value':'Auf Koordinaten zoomen'}).appendTo(this.triggerButtonContainer);		
+		this.triggerButton             = $(document.createElement('input')).attr({'id':'trigger-button','type':'button','value':'<?php echo _mb("zoom to coordinates");?>'}).appendTo(this.triggerButtonContainer);		
 	};
 	
 	this.initForm = function() {
@@ -87,7 +87,7 @@
 			$(this.projectionSelect).append('<option value=' + options.projections[i] + ' >' + options.projections[i] + '</option>');
 		}
 		//$(new Option('Projektionssystem','Projektionssystem',true,true)).prependTo(this.projectionSelect);
-		$(this.projectionSelect).prepend('<option value="Projektionssystem" selected=selected>Projektionssystem</option>');
+		$(this.projectionSelect).prepend('<option value="Projektionssystem" selected=selected><?php echo _mb("Spatial Reference System");?></option>');
 
 //		Fill perimeter select with options	
 		for(var i = 0; i < options.perimeters.length; i++) {
@@ -97,7 +97,7 @@
 			
 			$(this.perimeterSelect).append('<option value=' + optionValue + ' >' + optionValue + '</option>');
 		}
-		$(this.perimeterSelect).prepend('<option value="Umkreis" >Umkreis</option>');
+		$(this.perimeterSelect).prepend('<option value="Umkreis" ><?php echo _mb("Perimeter");?></option>');
 		
 //		Set action for trigger button
 		$(this.triggerButton).click(function() {
@@ -125,7 +125,7 @@
 			//alert(RegExp.$1 + ";" + RegExp.$2 + ";" + RegExp.$3);
 			if (isNaN(parseFloat(RegExp.$1)) || isNaN(parseFloat(RegExp.$2)) || isNaN(parseFloat(RegExp.$3)))
 			{
-				alert('Invalid X coordinate! Must be a float or a DMS value!');
+				alert('<?php echo _mb("Invalid X coordinate! Must be a float or a DMS value!");?>');
 				return;
 			} else {
 				this.coords.x = parseFloat(RegExp.$1) + parseFloat(RegExp.$2) / 60.0 + parseFloat(RegExp.$2) / 3600.0;		
@@ -136,7 +136,7 @@
 			//alert(RegExp.$1 + ";" + RegExp.$2 + ";" + RegExp.$3);
 			if (isNaN(parseFloat(RegExp.$1)) || isNaN(parseFloat(RegExp.$2)) || isNaN(parseFloat(RegExp.$3)))
 			{
-				alert('Invalid Y coordinate! Must be a float or a DMS value!');
+				alert('<?php echo _mb("Invalid Y coordinate! Must be a float or a DMS value!");?>');
 				return;
 			} else {
 				this.coords.y = parseFloat(RegExp.$1) + parseFloat(RegExp.$2 / 60.0) + parseFloat(RegExp.$2 / 3600.0);		
@@ -144,7 +144,7 @@
 		}
 		
 		if (this.coords.sourceProjection === null) {
-			alert('Invalid SRS!');
+			alert('<?php echo _mb("Invalid SRS!");?>');
 			return;
 		}
 
@@ -237,4 +237,4 @@
 
 Mapbender.events.init.register(function() {
 	Mapbender.modules[options.id] = $.extend(new CoordsLookup(),Mapbender.modules[options.id]);	
-});
+});
\ No newline at end of file



More information about the Mapbender_commits mailing list