front_idill/src/mosaic/js/search.js
changeset 46 9d7a2aa112fb
parent 45 0e29ae4568a0
child 47 4e1ee94d70b1
--- a/front_idill/src/mosaic/js/search.js	Thu Jul 05 16:04:33 2012 +0200
+++ b/front_idill/src/mosaic/js/search.js	Fri Jul 06 13:44:25 2012 +0200
@@ -51,6 +51,21 @@
 	});
 }
 
+/*
+ * Charge le texte affichable en fonction de la langue.
+*/
+mosaic.prototype.getLang = function(lang)
+{
+	var path = 'lang/' + this.config['lang'] + '.json';
+	
+	var _this = this;
+	
+	$.getJSON(path, function(data)
+	{
+		_this.gesturesText = data.gesturesText;
+	});
+}
+
 mosaic.prototype.listenToPointers = function()
 {
 	if(this.searchCanvas)