From: Mike Taylor Date: Fri, 2 May 2014 15:50:14 +0000 (+0100) Subject: Language-setting code also honestly uses mkws.config.lang instead of m_config.lang. X-Git-Tag: 1.0.0~747 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=35106b9299c106b3cc5f2fcf56d0d1f12a6ae6e7;p=mkws-moved-to-github.git Language-setting code also honestly uses mkws.config.lang instead of m_config.lang. --- 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; };