kopia lustrzana https://github.com/backface/turtlestitch
Merge pull request #15 from queryselector/master
Removed .DS_Store, fixed #3, and made things consistently UTF-8pull/3/merge
commit
cd41e7c644
Plik binarny nie jest wyświetlany.
|
@ -0,0 +1 @@
|
|||
.DS_Store
|
|
@ -6,10 +6,10 @@
|
|||
based on morphic.js
|
||||
inspired by Scratch
|
||||
|
||||
written by Jens Mšnig
|
||||
written by Jens Mönig
|
||||
jens@moenig.org
|
||||
|
||||
Copyright (C) 2013 by Jens Mšnig
|
||||
Copyright (C) 2013 by Jens Mönig
|
||||
|
||||
This file is part of Snap!.
|
||||
|
||||
|
|
4
byob.js
4
byob.js
|
@ -6,10 +6,10 @@
|
|||
based on morphic.js, widgets.js blocks.js, threads.js and objects.js
|
||||
inspired by Scratch
|
||||
|
||||
written by Jens Mšnig
|
||||
written by Jens Mönig
|
||||
jens@moenig.org
|
||||
|
||||
Copyright (C) 2013 by Jens Mšnig
|
||||
Copyright (C) 2013 by Jens Mönig
|
||||
|
||||
This file is part of Snap!.
|
||||
|
||||
|
|
4
cloud.js
4
cloud.js
|
@ -4,9 +4,9 @@
|
|||
|
||||
a backend API for SNAP!
|
||||
|
||||
written by Jens Mšnig
|
||||
written by Jens Mönig
|
||||
|
||||
Copyright (C) 2013 by Jens Mšnig
|
||||
Copyright (C) 2013 by Jens Mönig
|
||||
|
||||
This file is part of Snap!.
|
||||
|
||||
|
|
14
gui.js
14
gui.js
|
@ -6,10 +6,10 @@
|
|||
based on morphic.js, blocks.js, threads.js and objects.js
|
||||
inspired by Scratch
|
||||
|
||||
written by Jens Mšnig
|
||||
written by Jens Mönig
|
||||
jens@moenig.org
|
||||
|
||||
Copyright (C) 2013 by Jens Mšnig
|
||||
Copyright (C) 2013 by Jens Mönig
|
||||
|
||||
This file is part of Snap!.
|
||||
|
||||
|
@ -269,7 +269,7 @@ IDE_Morph.prototype.openIn = function (world) {
|
|||
);
|
||||
} else if (location.hash.substr(0, 6) === '#lang:') {
|
||||
this.setLanguage(location.hash.substr(6));
|
||||
this.newProject();
|
||||
this.loadNewProject = true;
|
||||
} else if (location.hash.substr(0, 7) === '#signup') {
|
||||
this.createCloudAccount();
|
||||
}
|
||||
|
@ -2177,7 +2177,9 @@ IDE_Morph.prototype.newProject = function () {
|
|||
if (this.stage) {
|
||||
this.stage.destroy();
|
||||
}
|
||||
if (location.hash.substr(0, 6) !== '#lang:') {
|
||||
location.hash = '';
|
||||
}
|
||||
this.globalVariables = new VariableFrame();
|
||||
this.currentSprite = new SpriteMorph(this.globalVariables);
|
||||
this.sprites = new List([this.currentSprite]);
|
||||
|
@ -2788,6 +2790,7 @@ IDE_Morph.prototype.setLanguage = function (lang) {
|
|||
IDE_Morph.prototype.reflectLanguage = function (lang) {
|
||||
var projectData;
|
||||
SnapTranslator.language = lang;
|
||||
if (!this.loadNewProject) {
|
||||
if (Process.prototype.isCatchingErrors) {
|
||||
try {
|
||||
projectData = this.serializer.serialize(this.stage);
|
||||
|
@ -2797,12 +2800,17 @@ IDE_Morph.prototype.reflectLanguage = function (lang) {
|
|||
} else {
|
||||
projectData = this.serializer.serialize(this.stage);
|
||||
}
|
||||
}
|
||||
SpriteMorph.prototype.initBlocks();
|
||||
this.spriteBar.tabBar.tabTo('scripts');
|
||||
this.createCategories();
|
||||
this.createCorralBar();
|
||||
this.fixLayout();
|
||||
if (this.loadNewProject){
|
||||
this.newProject();
|
||||
} else {
|
||||
this.openProjectString(projectData);
|
||||
}
|
||||
};
|
||||
|
||||
// IDE_Morph blocks scaling
|
||||
|
|
12
lang-de.js
12
lang-de.js
|
@ -4,9 +4,9 @@
|
|||
|
||||
German translation for SNAP!
|
||||
|
||||
written by Jens Mšnig
|
||||
written by Jens Mönig
|
||||
|
||||
Copyright (C) 2013 by Jens Mšnig
|
||||
Copyright (C) 2013 by Jens Mönig
|
||||
|
||||
This file is part of Snap!.
|
||||
|
||||
|
@ -171,10 +171,10 @@ SnapTranslator.dict.de = {
|
|||
/*
|
||||
Special characters: (see <http://0xcc.net/jsescape/>)
|
||||
|
||||
€, Š \u00c4, \u00e4
|
||||
…, š \u00d6, \u00f6
|
||||
†, Ÿ \u00dc, \u00fc
|
||||
§ \u00df
|
||||
Ä, ä \u00c4, \u00e4
|
||||
Ö, ö \u00d6, \u00f6
|
||||
Ü, ü \u00dc, \u00fc
|
||||
ß \u00df
|
||||
*/
|
||||
|
||||
// translations meta information
|
||||
|
|
12
lang-es.js
12
lang-es.js
|
@ -4,9 +4,9 @@
|
|||
|
||||
Spanish translation for SNAP!
|
||||
|
||||
written by Jens Mšnig
|
||||
written by Jens Mönig
|
||||
|
||||
Copyright (C) 2013 by Jens Mšnig
|
||||
Copyright (C) 2013 by Jens Mönig
|
||||
|
||||
This file is part of Snap!.
|
||||
|
||||
|
@ -171,10 +171,10 @@ SnapTranslator.dict.es = {
|
|||
/*
|
||||
Special characters: (see <http://0xcc.net/jsescape/>)
|
||||
|
||||
€, Š \u00c4, \u00e4
|
||||
…, š \u00d6, \u00f6
|
||||
†, Ÿ \u00dc, \u00fc
|
||||
§ \u00df
|
||||
Ä, ä \u00c4, \u00e4
|
||||
Ö, ö \u00d6, \u00f6
|
||||
Ü, ü \u00dc, \u00fc
|
||||
ß \u00df
|
||||
*/
|
||||
|
||||
// translations meta information
|
||||
|
|
|
@ -168,7 +168,7 @@ SnapTranslator.dict.ru = {
|
|||
Special characters: (see <http://0xcc.net/jsescape/>)
|
||||
|
||||
, \u00c4, \u00e4
|
||||
, \u00d6, \u00f6
|
||||
, \u00d6, \u00f6
|
||||
, \u00dc, \u00fc
|
||||
§ \u00df
|
||||
*/
|
||||
|
|
4
lists.js
4
lists.js
|
@ -4,10 +4,10 @@
|
|||
|
||||
list data structure and GUI for SNAP!
|
||||
|
||||
written by Jens Mšnig and Brian Harvey
|
||||
written by Jens Mönig and Brian Harvey
|
||||
jens@moenig.org, bh@cs.berkeley.edu
|
||||
|
||||
Copyright (C) 2013 by Jens Mšnig and Brian Harvey
|
||||
Copyright (C) 2013 by Jens Mönig and Brian Harvey
|
||||
|
||||
This file is part of Snap!.
|
||||
|
||||
|
|
BIN
locale.js
BIN
locale.js
Plik binarny nie jest wyświetlany.
|
@ -5,10 +5,10 @@
|
|||
a lively Web-GUI
|
||||
inspired by Squeak
|
||||
|
||||
written by Jens Mšnig
|
||||
written by Jens Mönig
|
||||
jens@moenig.org
|
||||
|
||||
Copyright (C) 2013 by Jens Mšnig
|
||||
Copyright (C) 2013 by Jens Mönig
|
||||
|
||||
This file is part of Snap!.
|
||||
|
||||
|
@ -1025,7 +1025,7 @@
|
|||
Ian Reynolds contributed backspace key handling for Chrome.
|
||||
Davide Della Casa contributed performance optimizations for Firefox.
|
||||
|
||||
- Jens Mšnig
|
||||
- Jens Mönig
|
||||
*/
|
||||
|
||||
// Global settings /////////////////////////////////////////////////////
|
||||
|
|
BIN
morphic.txt
BIN
morphic.txt
Plik binarny nie jest wyświetlany.
|
@ -6,10 +6,10 @@
|
|||
based on morphic.js, blocks.js and threads.js
|
||||
inspired by Scratch
|
||||
|
||||
written by Jens Mšnig
|
||||
written by Jens Mönig
|
||||
jens@moenig.org
|
||||
|
||||
Copyright (C) 2013 by Jens Mšnig
|
||||
Copyright (C) 2013 by Jens Mönig
|
||||
|
||||
This file is part of Snap!.
|
||||
|
||||
|
|
4
store.js
4
store.js
|
@ -4,10 +4,10 @@
|
|||
|
||||
saving and loading Snap! projects
|
||||
|
||||
written by Jens Mšnig
|
||||
written by Jens Mönig
|
||||
jens@moenig.org
|
||||
|
||||
Copyright (C) 2013 by Jens Mšnig
|
||||
Copyright (C) 2013 by Jens Mönig
|
||||
|
||||
This file is part of Snap!.
|
||||
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
based on morphic.js and blocks.js
|
||||
inspired by Scratch, Scheme and Squeak
|
||||
|
||||
written by Jens Mšnig
|
||||
written by Jens Mönig
|
||||
jens@moenig.org
|
||||
|
||||
Copyright (C) 2013 by Jens Mšnig
|
||||
Copyright (C) 2013 by Jens Mönig
|
||||
|
||||
This file is part of Snap!.
|
||||
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
|
||||
additional GUI elements for morphic.js
|
||||
|
||||
written by Jens Mšnig
|
||||
written by Jens Mönig
|
||||
jens@moenig.org
|
||||
|
||||
Copyright (C) 2013 by Jens Mšnig
|
||||
Copyright (C) 2013 by Jens Mönig
|
||||
|
||||
This file is part of Snap!.
|
||||
|
||||
|
|
4
xml.js
4
xml.js
|
@ -4,10 +4,10 @@
|
|||
|
||||
a simple XML DOM, encoder and parser for morphic.js
|
||||
|
||||
written by Jens Mšnig
|
||||
written by Jens Mönig
|
||||
jens@moenig.org
|
||||
|
||||
Copyright (C) 2013 by Jens Mšnig
|
||||
Copyright (C) 2013 by Jens Mönig
|
||||
|
||||
This file is part of Snap!.
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue