kopia lustrzana https://github.com/backface/turtlestitch
added support for "verbatim" (untranslated) menu items
rodzic
db6cda6ca2
commit
a0261c52f1
|
@ -9,6 +9,7 @@
|
|||
### 2019-11-06
|
||||
* new dev version
|
||||
* morphic, blocks: reverted recent changes to tranlation mechanism
|
||||
* morphic: added support for "verbatim" (untranslated) menu items
|
||||
|
||||
## v5.3.1:
|
||||
* **Notable Fixes:**
|
||||
|
|
|
@ -8194,7 +8194,8 @@ MenuMorph.prototype.addItem = function (
|
|||
bold, // bool
|
||||
italic, // bool
|
||||
doubleClickAction, // optional, when used as list contents
|
||||
shortcut // optional string, icon (Morph or Canvas) or tuple [icon, string]
|
||||
shortcut, // optional string, icon (Morph or Canvas) or tuple [icon, string]
|
||||
verbatim // optional bool, don't translate if true
|
||||
) {
|
||||
/*
|
||||
labelString is normally a single-line string. But it can also be one
|
||||
|
@ -8205,14 +8206,15 @@ MenuMorph.prototype.addItem = function (
|
|||
* a tuple of format: [icon, string]
|
||||
*/
|
||||
this.items.push([
|
||||
localize(labelString || 'close'),
|
||||
verbatim ? labelString || 'close' : localize(labelString || 'close'),
|
||||
action || nop,
|
||||
hint,
|
||||
color,
|
||||
bold || false,
|
||||
italic || false,
|
||||
doubleClickAction,
|
||||
shortcut]);
|
||||
shortcut,
|
||||
verbatim]);
|
||||
};
|
||||
|
||||
MenuMorph.prototype.addMenu = function (label, aMenu, indicator) {
|
||||
|
|
Ładowanie…
Reference in New Issue