[Mapbender-commits] r5589 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Sat Feb 20 16:41:47 EST 2010
Author: astrid_emde
Date: 2010-02-20 16:41:47 -0500 (Sat, 20 Feb 2010)
New Revision: 5589
Modified:
trunk/mapbender/http/javascripts/mod_loadwmc.js
Log:
Modified: trunk/mapbender/http/javascripts/mod_loadwmc.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_loadwmc.js 2010-02-20 21:37:04 UTC (rev 5588)
+++ trunk/mapbender/http/javascripts/mod_loadwmc.js 2010-02-20 21:41:47 UTC (rev 5589)
@@ -65,8 +65,8 @@
//
if (options.listWmc && options.uploadWmc) {
initialHtml += "<ul>" +
- "<li><a href='#" + options.id + "_wmclist'>List</a></li>" +
- "<li><a href='#" + options.id + "_wmcUpload'>Upload</a></li>" +
+ "<li><a href='#" + options.id + "_wmclist'><?php echo _mb("List"); ?></a></li>" +
+ "<li><a href='#" + options.id + "_wmcUpload'><?php echo _mb("Upload"); ?></a></li>" +
"</ul>";
}
if (options.listWmc || options.uploadWmc) {
@@ -77,16 +77,16 @@
initialHtml += "<div id='" + options.id + "_wmclist' >" +
"<table width='100%' id='" + options.id + "_wmclist_table'>" +
"<thead><tr>" +
- "<th>WMC name</td>" +
- "<th>last update</td>" +
- "<th>created</td>";
- initialHtml += options.loadWmc ? "<th>load</td>" : "";
- initialHtml += options.mergeWmc ? "<th>merge</td>" : "";
- initialHtml += options.appendWmc ? "<th>append</td>" : "";
- initialHtml += options.publishWmc ? "<th>public</td>" : "";
- initialHtml += options.showWmc ? "<th>show</td>" : "";
- initialHtml += options.openLayers ? "<th>OpenLayers</td>" : "";
- initialHtml += options.deleteWmc ? "<th>delete</td>" : "";
+ "<th><?php echo _mb("WMC name"); ?></td>" +
+ "<th><?php echo _mb("last update"); ?></td>" +
+ "<th><?php echo _mb("created"); ?></td>";
+ initialHtml += options.loadWmc ? "<th><?php echo _mb("load"); ?></td>" : "";
+ initialHtml += options.mergeWmc ? "<th><?php echo _mb("merge"); ?></td>" : "";
+ initialHtml += options.appendWmc ? "<th><?php echo _mb("append"); ?></td>" : "";
+ initialHtml += options.publishWmc ? "<th><?php echo _mb("public"); ?></td>" : "";
+ initialHtml += options.showWmc ? "<th><?php echo _mb("show"); ?></td>" : "";
+ initialHtml += options.openLayers ? "<th><?php echo _mb("OpenLayers"); ?></td>" : "";
+ initialHtml += options.deleteWmc ? "<th><?php echo _mb("delete"); ?></td>" : "";
initialHtml += "</thead></tr>" +
"</table>" +
@@ -170,9 +170,9 @@
// Load WMC
var $loadTd = appendTableCell({
src: "../img/button_gray/wmc_load.png",
- title: "load this WMC",
+ title: "<?php echo _mb("load this WMC"); ?>",
method: "loadWmc",
- message: "WMC has been loaded successfully.",
+ message: "<?php echo _mb("WMC has been loaded successfully."); ?>",
parameters: {
id: currentId
},
@@ -193,9 +193,9 @@
// Merge WMC
var $mergeTd = appendTableCell({
src: "../img/button_gray/wmc_merge.png",
- title: "merge WMC",
+ title: "<?php echo _mb("merge WMC"); ?>",
method: "mergeWmc",
- message: "WMC has been merged successfully.",
+ message: "<?php echo _mb("WMC has been merged successfully."); ?>",
parameters: {
id: currentId,
extensionData: currentWmcExtensionData !== null ? currentWmcExtensionData : null,
@@ -219,14 +219,14 @@
// Append WMC
var $appendTd = appendTableCell({
src: "../img/button_gray/wmc_append.png",
- title: "append WMC",
+ title: "<?php echo _mb("append WMC"); ?>",
method: "appendWmc",
- message: "WMC has been appended successfully.",
+ message: "<?php echo _mb("WMC has been appended successfully."); ?>",
parameters: {
id: currentId,
extensionData: currentWmcExtensionData !== null ? currentWmcExtensionData : null,
mapObject: mb_mapObj,
- generalTitle: "currentState"
+ generalTitle: "<?php echo _mb("currentState"); ?>"
},
callback: function(args){
if (constraintCheckRequired()) {
@@ -259,12 +259,12 @@
if (options.showWmc) {
var $displayTd = appendTableCell({
src: "../img/button_gray/wmc_xml.png",
- title: "display WMC XML",
+ title: "<?php echo _mb("display WMC XML"); ?>",
callback: function(){
// create Popup
if (wmcDisplayPopup === null) {
wmcDisplayPopup = new mb_popup({
- title: "WMC Document",
+ title: "<?php echo _mb("WMC Document"); ?>",
width: 600,
height: 500,
top: 50,
@@ -286,12 +286,12 @@
// OpenLayers Export
var $openLayersTd = appendTableCell({
src: "../img/OpenLayers.trac.png",
- title: "export to OpenLayers",
+ title: "<?php echo _mb("export to OpenLayers"); ?>",
callback: function(){
// create Popup
if (wmcOpenlayersPopup === null) {
wmcOpenlayersPopup = new mb_popup({
- title: "OpenLayers",
+ title: "<?php echo _mb("OpenLayers"); ?>",
width: 600,
height: 500,
top: 40,
@@ -319,10 +319,10 @@
(function(){
var $deleteTd = appendTableCell({
src: isDisabled ? "../img/button_gray/del_disabled.png" : "../img/button_gray/del.png",
- title: "delete this WMC",
+ title: "<?php echo _mb("delete this WMC"); ?>",
method: "deleteWmc",
callback: function(args){
- if (!isDisabled && confirm("Do you really want to delete WMC '" + currentName + "'?")) {
+ if (!isDisabled && confirm("<?php echo _mb("Do you really want to delete WMC"); ?> '" + currentName + "'?")) {
executeJavaScript(args);
var aPos = wmcTable.fnGetPosition($deleteTd.get(0));
wmcTable.fnDeleteRow(aPos[0]);
@@ -355,7 +355,7 @@
parameters: {
filename: filename
},
- message: "WMC has been loaded successfully."
+ message: "<?php echo _mb("WMC has been loaded successfully."); ?>"
});
}
});
@@ -401,7 +401,7 @@
continue;
}
- html += "<fieldset>" + caseObj.message + " Dienste trotzdem laden?<br><br>";
+ html += "<fieldset>" + caseObj.message + " <?php echo _mb("load Service anyway?"); ?><br><br>";
for (var index in caseObj.wms) {
var wms = caseObj.wms[index];
More information about the Mapbender_commits
mailing list