don't translate marked menu items

in custom blocks' drop-downs
pull/89/head
jmoenig 2019-11-06 04:19:58 +01:00
rodzic 9882d3dad7
commit 1b5846992b
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -8646,7 +8646,9 @@ InputSlotMorph.prototype.setContents = function (data) {
dta = ''; // make sure the contents text emptied
} else { // assume dta is a localizable choice if it's a key in my choices
cnts.isItalic = false;
if (!isNil(this.choices) && this.choices[dta] instanceof Array) {
if (!isNil(this.choices) &&
this.choices[dta] instanceof Array &&
this.choices[dta].length === 1) {
return this.setContents(this.choices[dta]);
}
}