From 35106b9299c106b3cc5f2fcf56d0d1f12a6ae6e7 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 2 May 2014 16:50:14 +0100 Subject: [PATCH] Language-setting code also honestly uses mkws.config.lang instead of m_config.lang. --- src/mkws-team.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/mkws-team.js b/src/mkws-team.js index 14d4a6f..b655711 100644 --- a/src/mkws-team.js +++ b/src/mkws-team.js @@ -348,6 +348,7 @@ function team($, teamName) { // function M(word) { var lang = mkws.config.lang; + log("in M('" + word + "'), lang=" + lang); if (!lang || !mkws.locale_lang[lang]) return word; @@ -459,14 +460,14 @@ function team($, teamName) { } - var lang = mkws.getParameterByName("lang") || m_config.lang; + var lang = mkws.getParameterByName("lang") || mkws.config.lang; if (!lang || !mkws.locale_lang[lang]) { - m_config.lang = "" + mkws.config.lang = "" } else { - m_config.lang = lang; + mkws.config.lang = lang; } - log("Locale language: " + (m_config.lang ? m_config.lang : "none")); + log("Locale language: " + (mkws.config.lang ? mkws.config.lang : "none")); return that; }; -- 1.7.10.4