From 34f3ab900a9cac78acb7a10d1ed60555d98ff822 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 25 Jun 2015 13:28:41 +0100 Subject: handle the multilingual support Signed-off-by: Olivier Gayot --- webapp/cao-common.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'webapp/cao-common.js') diff --git a/webapp/cao-common.js b/webapp/cao-common.js index 6d92de7..0ec516d 100644 --- a/webapp/cao-common.js +++ b/webapp/cao-common.js @@ -28,6 +28,8 @@ var CAO = function() { var self = this; var ws; + var lang; + var nbr_played_cards = 0; var played_cards = []; @@ -39,6 +41,10 @@ var CAO = function() { var map_handle_response_ok = {}; var map_handle_notif = {}; + this.set_lang = function(language) { + lang = language; + }; + this.is_judge = function() { return judge; }; @@ -287,6 +293,7 @@ var CAO = function() { var request = { 'op': 'join_game', 'game_name': game_name, + 'lang': lang, }; request_queue.push('join_game'); ws.send(JSON.stringify(request)); -- cgit v1.2.3