From 625262840175003e664a696752be8f23a8eabb94 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 2 May 2014 16:46:01 +0100 Subject: [PATCH] The M function (translation) looks up mkws.config.lang rather than m_config.lang. Doing the latter was lie, since this function gets called as mkws.M much of the time, and so gets a randomly chosen team's lang setting; and all teams always have the same lang setting anyway, since there's no way to set it differently per team. --- src/mkws-team.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mkws-team.js b/src/mkws-team.js index 3ff42fd..14d4a6f 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -347,7 +347,7 @@ function team($, teamName) { // different languages. // function M(word) { - var lang = m_config.lang; + var lang = mkws.config.lang; if (!lang || !mkws.locale_lang[lang]) return word; -- 1.7.10.4