From 8d55cee5ef183e2a3f0da04d9851a68de0f345cf Mon Sep 17 00:00:00 2001 From: jmoenig Date: Wed, 6 Nov 2019 01:37:38 +0100 Subject: [PATCH] don't translate variable names in "inherit" block menu --- HISTORY.md | 1 + src/blocks.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index ea0edd7d..64cb395c 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -12,6 +12,7 @@ * morphic: added support for "verbatim" (untranslated) menu items * blocks: don't translate variable names in drop-down menus * objects: don't translate variable names in "delete a variable" button menu +* blocks: don't translate variable names in "inherit" block menu ## v5.3.1: * **Notable Fixes:** diff --git a/src/blocks.js b/src/blocks.js index c4ccf092..a84bb9b5 100644 --- a/src/blocks.js +++ b/src/blocks.js @@ -9146,7 +9146,7 @@ InputSlotMorph.prototype.shadowedVariablesMenu = function () { // inside TELL, ASK or OF or when initializing a new clone vars = rcvr.variables.names(); vars.forEach(function (name) { - dict[name] = name; + dict[name] = [name, false]; // don't translate }); attribs = rcvr.attributes; /* @@ -9161,7 +9161,7 @@ InputSlotMorph.prototype.shadowedVariablesMenu = function () { // only show shadowed vars and attributes vars = rcvr.inheritedVariableNames(true); vars.forEach(function (name) { - dict[name] = name; + dict[name] = [name, false]; }); attribs = rcvr.shadowedAttributes(); /*