[Mapbender-commits] r4443 - branches/2.6/http/html
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Jul 29 09:03:57 EDT 2009
Author: christoph
Date: 2009-07-29 09:03:57 -0400 (Wed, 29 Jul 2009)
New Revision: 4443
Modified:
branches/2.6/http/html/mod_treefolderPlain.php
Log:
Modified: branches/2.6/http/html/mod_treefolderPlain.php
===================================================================
--- branches/2.6/http/html/mod_treefolderPlain.php 2009-07-29 13:03:25 UTC (rev 4442)
+++ branches/2.6/http/html/mod_treefolderPlain.php 2009-07-29 13:03:57 UTC (rev 4443)
@@ -417,12 +417,12 @@
l=selectedLayer;
}
if(j==-1||k==-1||l==-1){
- alert("You have to select the WMS you want to move up!")
+ alert("<?php echo _mb('You have to select the WMS you want to move up!');?> ")
return;
}
var lid= mb_mapObj[j].wms[k].objLayer[l].layer_id;
if(! mb_mapObj[j].move( mb_mapObj[j].wms[k].wms_id,lid,(reverse=="true")?false:true)){
- alert("Illegal move operation");
+ alert("<?php echo _mb('Illegal move operation');?>");
return;
}
treeState = getState();
@@ -449,12 +449,12 @@
l=selectedLayer;
}
if(j==-1||k==-1||l==-1){
- alert("You have to select the WMS you want to move down!")
+ alert("<?php echo _mb('You have to select the WMS you want to move down!');?>")
return;
}
var lid= mb_mapObj[j].wms[k].objLayer[l].layer_id;
if(! mb_mapObj[j].move( mb_mapObj[j].wms[k].wms_id,lid,(reverse=="true")?true:false)){
- alert("Illegal move operation");
+ alert("<?php echo _mb('Illegal move operation');?>");
return;
}
treeState = getState();
@@ -481,11 +481,11 @@
l=selectedLayer;
}
if(j==-1||k==-1||l==-1){
- alert("You have to select the WMS you want to delete!")
+ alert("<?php echo _mb('You have to select the WMS you want to delete!');?>")
return;
}
if(l!=0){
- alert("It is not possible to delete a single layer, please select a WMS!")
+ alert("<?php echo _mb('It is not possible to delete a single layer, please select a WMS!');?>")
return;
}
var visibleWMS=0;
@@ -493,10 +493,10 @@
if( mb_mapObj[j].wms[i].gui_wms_visible=='1'|| mb_mapObj[j].wms[i].gui_wms_visible==1)
visibleWMS++;
if(visibleWMS<=1){
- alert ("Last WMS can't be removed.\n(Der letzte WMS kann nicht entfernt werden.)");
+ alert ("<?php echo _mb('Last WMS can not be removed.');?>");
return;
}
- if(confirm('Are you sure you want to remove "'+ mb_mapObj[j].wms[k].objLayer[l].layer_title+'"?')){
+ if(confirm('<?php echo _mb("Are you sure you want to remove");?>' + ' "'+ mb_mapObj[j].wms[k].objLayer[l].layer_title+'"?')){
mb_mapObjremoveWMS(j,k);
mb_mapObj[j].zoom(true, 1.0);
mb_execloadWmsSubFunctions();
More information about the Mapbender_commits
mailing list