kopia lustrzana https://github.com/backface/turtlestitch
limit translation of menu items to specially marked ones
fixes the bug that variable names for which translations exist are shown in their translation in drop-down menuspull/89/head
rodzic
ed34510aa0
commit
c9b06bcb0c
|
@ -8,6 +8,7 @@
|
|||
|
||||
### 2019-11-04
|
||||
* new dev version
|
||||
* morphic: limit translation of menu items to specially marked ones
|
||||
|
||||
## v5.3.0:
|
||||
* **New Features:**
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>Snap! Build Your Own Blocks 5.3.1 - dev -</title>
|
||||
<link rel="shortcut icon" href="src/favicon.ico">
|
||||
<script type="text/javascript" src="src/morphic.js?version=2019-10-29"></script>
|
||||
<script type="text/javascript" src="src/morphic.js?version=2019-11-04"></script>
|
||||
<script type="text/javascript" src="src/widgets.js?version=2019-10-16"></script>
|
||||
<script type="text/javascript" src="src/blocks.js?version=2019-11-02"></script>
|
||||
<script type="text/javascript" src="src/threads.js?version=2019-11-02"></script>
|
||||
|
|
|
@ -1178,7 +1178,7 @@
|
|||
|
||||
/*global window, HTMLCanvasElement, FileReader, Audio, FileList, Map*/
|
||||
|
||||
var morphicVersion = '2019-October-29';
|
||||
var morphicVersion = '2019-November-04';
|
||||
var modules = {}; // keep track of additional loaded modules
|
||||
var useBlurredShadows = getBlurredShadowSupport(); // check for Chrome-bug
|
||||
|
||||
|
@ -8204,8 +8204,12 @@ MenuMorph.prototype.addItem = function (
|
|||
* an icon (either a Morph or a Canvas)
|
||||
* a tuple of format: [icon, string]
|
||||
*/
|
||||
var lbl = labelString || 'close';
|
||||
if (action instanceof Array && action.length === 1 && isString(action[0])) {
|
||||
lbl = localize(action[0]);
|
||||
}
|
||||
this.items.push([
|
||||
localize(labelString || 'close'),
|
||||
lbl,
|
||||
action || nop,
|
||||
hint,
|
||||
color,
|
||||
|
|
Ładowanie…
Reference in New Issue