--- 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)