kopia lustrzana https://github.com/backface/turtlestitch
Release clean-ups & translation update
rodzic
49998bb0de
commit
6bafe43b8f
|
@ -153,7 +153,7 @@ DialogBoxMorph, BlockInputFragmentMorph, PrototypeHatBlockMorph*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.blocks = '2013-April-21';
|
modules.blocks = '2013-April-23';
|
||||||
|
|
||||||
var SyntaxElementMorph;
|
var SyntaxElementMorph;
|
||||||
var BlockMorph;
|
var BlockMorph;
|
||||||
|
|
2
byob.js
2
byob.js
|
@ -105,7 +105,7 @@ CommentMorph, localize, CSlotMorph, SpeechBubbleMorph*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.byob = '2013-April-12';
|
modules.byob = '2013-April-23';
|
||||||
|
|
||||||
// Declarations
|
// Declarations
|
||||||
|
|
||||||
|
|
2
gui.js
2
gui.js
|
@ -68,7 +68,7 @@ sb, CommentMorph, CommandBlockMorph*/
|
||||||
|
|
||||||
// Global stuff ////////////////////////////////////////////////////////
|
// Global stuff ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
modules.gui = '2013-April-22';
|
modules.gui = '2013-April-23';
|
||||||
|
|
||||||
// Declarations
|
// Declarations
|
||||||
|
|
||||||
|
|
|
@ -1657,3 +1657,5 @@ ______
|
||||||
130423
|
130423
|
||||||
------
|
------
|
||||||
* Lists, Objects: Circularity no longer breaks watchers
|
* Lists, Objects: Circularity no longer breaks watchers
|
||||||
|
* Widgets: Multiple Dialogs of the same kind are prevented except for a few (e.g. BlockEditor). Thanks for this fix, Nathan! (and for the many little UI things you've fixed as well)
|
||||||
|
* German translation update
|
||||||
|
|
|
@ -185,7 +185,7 @@ SnapTranslator.dict.de = {
|
||||||
'translator_e-mail':
|
'translator_e-mail':
|
||||||
'jens@moenig.org', // optional
|
'jens@moenig.org', // optional
|
||||||
'last_changed':
|
'last_changed':
|
||||||
'2013-04-19', // this, too, will appear in the Translators tab
|
'2013-04-23', // this, too, will appear in the Translators tab
|
||||||
|
|
||||||
// GUI
|
// GUI
|
||||||
// control bar:
|
// control bar:
|
||||||
|
@ -559,6 +559,8 @@ SnapTranslator.dict.de = {
|
||||||
'Neue Variable',
|
'Neue Variable',
|
||||||
'Variable name':
|
'Variable name':
|
||||||
'Variablenname',
|
'Variablenname',
|
||||||
|
'Script variable name':
|
||||||
|
'Skriptvariablenname',
|
||||||
'Delete a variable':
|
'Delete a variable':
|
||||||
'Variable l\u00f6schen',
|
'Variable l\u00f6schen',
|
||||||
|
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
|
|
||||||
/*global modules, contains*/
|
/*global modules, contains*/
|
||||||
|
|
||||||
modules.locale = '2013-April-19';
|
modules.locale = '2013-April-23';
|
||||||
|
|
||||||
// Global stuff
|
// Global stuff
|
||||||
|
|
||||||
|
@ -149,7 +149,7 @@ SnapTranslator.dict.de = {
|
||||||
'translator_e-mail':
|
'translator_e-mail':
|
||||||
'jens@moenig.org',
|
'jens@moenig.org',
|
||||||
'last_changed':
|
'last_changed':
|
||||||
'2013-04-19'
|
'2013-04-23'
|
||||||
};
|
};
|
||||||
|
|
||||||
SnapTranslator.dict.it = {
|
SnapTranslator.dict.it = {
|
||||||
|
|
18
widgets.js
18
widgets.js
|
@ -73,7 +73,7 @@ newCanvas, StringMorph, Morph, TextMorph, nop, detect, StringFieldMorph,
|
||||||
HTMLCanvasElement, fontHeight, SymbolMorph, localize, SpeechBubbleMorph,
|
HTMLCanvasElement, fontHeight, SymbolMorph, localize, SpeechBubbleMorph,
|
||||||
ArrowMorph, MenuMorph, isString, isNil, SliderMorph*/
|
ArrowMorph, MenuMorph, isString, isNil, SliderMorph*/
|
||||||
|
|
||||||
modules.widgets = '2013-April-19';
|
modules.widgets = '2013-April-23';
|
||||||
|
|
||||||
var PushButtonMorph;
|
var PushButtonMorph;
|
||||||
var ToggleButtonMorph;
|
var ToggleButtonMorph;
|
||||||
|
@ -1391,7 +1391,16 @@ ToggleElementMorph.prototype.mouseClickLeft
|
||||||
|
|
||||||
// DialogBoxMorph /////////////////////////////////////////////////////
|
// DialogBoxMorph /////////////////////////////////////////////////////
|
||||||
|
|
||||||
// I am a DialogBox frame
|
/*
|
||||||
|
I am a DialogBox frame.
|
||||||
|
|
||||||
|
Note:
|
||||||
|
-----
|
||||||
|
I add a property "dialogs" to whichever World I'm popped up in, which
|
||||||
|
keeps track of my instances, preventing double instances of the same type
|
||||||
|
and on the same objects, while allowing multiple instance where
|
||||||
|
appropriate
|
||||||
|
*/
|
||||||
|
|
||||||
// DialogBoxMorph inherits from Morph:
|
// DialogBoxMorph inherits from Morph:
|
||||||
|
|
||||||
|
@ -1438,6 +1447,8 @@ DialogBoxMorph.prototype.init = function (target, action, environment) {
|
||||||
this.target = target || null;
|
this.target = target || null;
|
||||||
this.action = action || null;
|
this.action = action || null;
|
||||||
this.environment = environment || null;
|
this.environment = environment || null;
|
||||||
|
this.popUpWorld = null; // keep track of open instances per world
|
||||||
|
this.key = null; // keep track of my purpose to prevent mulitple instances
|
||||||
|
|
||||||
this.labelString = null;
|
this.labelString = null;
|
||||||
this.label = null;
|
this.label = null;
|
||||||
|
@ -2034,7 +2045,8 @@ DialogBoxMorph.prototype.withKey = function (key) {
|
||||||
DialogBoxMorph.prototype.popUp = function (world) {
|
DialogBoxMorph.prototype.popUp = function (world) {
|
||||||
if (world) {
|
if (world) {
|
||||||
if (this.key) {
|
if (this.key) {
|
||||||
if ((world.dialogs || (world.dialogs = {}))[this.key]) {
|
if (!world.dialogs) {world.dialogs = {}; } // lazy init
|
||||||
|
if (world.dialogs[this.key]) {
|
||||||
world.dialogs[this.key].destroy();
|
world.dialogs[this.key].destroy();
|
||||||
}
|
}
|
||||||
world.dialogs[this.key] = this;
|
world.dialogs[this.key] = this;
|
||||||
|
|
Ładowanie…
Reference in New Issue