diff options
| author | Gubolin <gubolin@fantasymail.de> | 2014-08-17 20:09:05 +0200 |
|---|---|---|
| committer | Gubolin <gubolin@fantasymail.de> | 2014-08-17 20:09:05 +0200 |
| commit | 624bcf4e3352971a77cf3e6a4266f1600f9da577 (patch) | |
| tree | 3c7b737013aab5443e2ece921912a8f156d1859c /threads.js | |
| parent | 8f7d1833f6e6b304e706bb84848dbf86a80834c8 (diff) | |
| download | snap-624bcf4e3352971a77cf3e6a4266f1600f9da577.tar.gz snap-624bcf4e3352971a77cf3e6a4266f1600f9da577.zip | |
add language blocks
Diffstat (limited to 'threads.js')
| -rw-r--r-- | threads.js | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 = { |
