diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-06-25 13:28:41 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-06-25 13:28:41 +0100 |
commit | 34f3ab900a9cac78acb7a10d1ed60555d98ff822 (patch) | |
tree | 10c8510ff15b4f5ebbf39669a84378a3845df91b /webapp/cao-common.js | |
parent | 349d467d9bae3e8d2cfd121ab63ad437a8e934bd (diff) |
handle the multilingual support
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'webapp/cao-common.js')
-rw-r--r-- | webapp/cao-common.js | 7 |
1 files changed, 7 insertions, 0 deletions
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)); |