[Mapbender-commits] r7541 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Feb 7 08:55:01 EST 2011
Author: kmq
Date: 2011-02-07 05:55:01 -0800 (Mon, 07 Feb 2011)
New Revision: 7541
Modified:
trunk/mapbender/http/javascripts/mod_loadwmc.js
Log:
use translations
Modified: trunk/mapbender/http/javascripts/mod_loadwmc.js
===================================================================
--- trunk/mapbender/http/javascripts/mod_loadwmc.js 2011-02-07 10:43:03 UTC (rev 7540)
+++ trunk/mapbender/http/javascripts/mod_loadwmc.js 2011-02-07 13:55:01 UTC (rev 7541)
@@ -56,7 +56,17 @@
};
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 $loadWmc = $(this);
var LoadWmcApi = function () {
More information about the Mapbender_commits
mailing list