[Mapbender-commits] r7557 - in trunk/mapbender: http/plugins resources/locale/de_DE/LC_MESSAGES

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Feb 10 10:18:44 EST 2011


Author: armin11
Date: 2011-02-10 07:18:44 -0800 (Thu, 10 Feb 2011)
New Revision: 7557

Modified:
   trunk/mapbender/http/plugins/mb_sessionWmc.js
   trunk/mapbender/resources/locale/de_DE/LC_MESSAGES/Mapbender.po
Log:
Little i18 for ../plugins/mb_sessionWmc.js - disclaimer for services and monitoring results

Modified: trunk/mapbender/http/plugins/mb_sessionWmc.js
===================================================================
--- trunk/mapbender/http/plugins/mb_sessionWmc.js	2011-02-10 14:27:45 UTC (rev 7556)
+++ trunk/mapbender/http/plugins/mb_sessionWmc.js	2011-02-10 15:18:44 UTC (rev 7557)
@@ -12,7 +12,7 @@
  *  - http/php/mod_sessionWmc_server.php
  *
  * SQL:
- * > INSERT INTO gui_element(fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element, e_src, e_attributes, e_left, e_top, e_width, 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('gui1','sessionWmc',1,1,'','Please confirm','div','','',NULL ,NULL ,NULL ,NULL ,NULL ,'','','div','../plugins/mb_sessionWmc.js','','','mapframe1','');
+ * > INSERT INTO gui_element(fkey_gui_id, e_id, e_pos, e_public, e_comment, e_title, e_element, e_src, e_attributes, e_left, e_top, e_width, 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('gui1','sessionWmc',2,1,'','Please confirm','div','','',NULL ,NULL ,NULL ,NULL ,NULL ,'','','div','../plugins/mb_sessionWmc.js','','','mapframe1','');
  *
  * Help:
  * http://www.mapbender.org/<wiki site name>
@@ -27,6 +27,27 @@
  * http://svn.osgeo.org/mapbender/trunk/mapbender/license/license.txt
  */
 
+var originalI18nObject = {
+	"confirmationQuestion": "Should this services be loaded regardless?",
+	"goFurtherOn": "Continue",
+	"confirmationTitle": "Confirmation"
+};
+
+var translatedI18nObject = Mapbender.cloneObject(originalI18nObject);
+
+if(Mapbender.modules.i18n){	
+	Mapbender.modules.i18n.queue(options.id, originalI18nObject, function (translatedObject) {
+		if (typeof translatedObject !== "object") {
+			return;
+		}
+		translatedI18nObject = translatedObject;
+	});
+	Mapbender.modules.i18n.localize(Mapbender.languageId);
+}
+
+
+
+
 var $sessionWmc = $(this);
 
 var SessionWmcApi = function (o) {
@@ -128,7 +149,7 @@
 				html += "<fieldset>" + caseObj.message +
 					(constraintType === "noPermission" ?
 						"<br><ul>" + permissionHtml + "</ul>" :
-						" Sollen diese Dienste trotzdem hinzugeladen werden?<br><br>" +
+						" "+translatedI18nObject.confirmationQuestion+"<br><br>" +
 						permissionHtml
 					) + "</fieldset><br>";
 				dialogHasContent = true;
@@ -140,7 +161,7 @@
 			return;
 		}
 
-		$dialog = $("<div id='" + o.id + "_constraint_form' title='Hinweis'>" +
+		$dialog = $("<div id='" + o.id + "_constraint_form' title='"+translatedI18nObject.confirmationTitle+"'>" +
 			"<style> fieldset label { display: block; }</style>" +
 			"<form>" + html + "</form></div>").dialog({
 				bgiframe: true,

Modified: trunk/mapbender/resources/locale/de_DE/LC_MESSAGES/Mapbender.po
===================================================================
--- trunk/mapbender/resources/locale/de_DE/LC_MESSAGES/Mapbender.po	2011-02-10 14:27:45 UTC (rev 7556)
+++ trunk/mapbender/resources/locale/de_DE/LC_MESSAGES/Mapbender.po	2011-02-10 15:18:44 UTC (rev 7557)
@@ -2246,3 +2246,9 @@
 msgid "The configuration, which should be loaded, consists of different services which have the following terms of use:"
 msgstr "Die zu ladende Konfiguration enthält verschiedene Dienste mit folgenden Nutzungsbedigungen:"
 
+msgid "Should this services be loaded regardless?"
+msgstr "Sollen die Dienste trotzdem hinzugeladen werden?"
+
+msgid "Confirmation"
+msgstr "Hinweis"
+



More information about the Mapbender_commits mailing list