From 624bcf4e3352971a77cf3e6a4266f1600f9da577 Mon Sep 17 00:00:00 2001 From: Gubolin Date: Sun, 17 Aug 2014 20:09:05 +0200 Subject: add language blocks --- threads.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'threads.js') diff --git a/threads.js b/threads.js index 335b5d0..51d1c9f 100644 --- a/threads.js +++ b/threads.js @@ -2572,6 +2572,17 @@ Process.prototype.reportTimer = function () { return 0; }; +Process.prototype.reportLanguage = function () { + var ide = this.homeContext.receiver.parentThatIsA(IDE_Morph); + if (ide) { + var lang = ide.userLanguage; + if (lang) { + return lang; + } + } + return 'en'; +}; + // Process Dates and times in Snap // Map block options to built-in functions var dateMap = { -- cgit v1.3.1