Merge pull request #15 from queryselector/master

Removed .DS_Store, fixed #3, and made things consistently UTF-8
pull/3/merge
Jens Mönig 2013-04-09 00:26:54 -07:00
commit cd41e7c644
37 zmienionych plików z 1108 dodań i 1099 usunięć

BIN
.DS_Store vendored

Plik binarny nie jest wyświetlany.

1
.gitignore vendored 100644
Wyświetl plik

@ -0,0 +1 @@
.DS_Store

Wyświetl plik

@ -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!.

Wyświetl plik

@ -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!.

Wyświetl plik

@ -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
Wyświetl plik

@ -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

Wyświetl plik

@ -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

Wyświetl plik

@ -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

Wyświetl plik

@ -168,7 +168,7 @@ SnapTranslator.dict.ru = {
Special characters: (see <http://0xcc.net/jsescape/>)
€, Š \u00c4, \u00e4
…, š \u00d6, \u00f6
…, š \u00d6, \u00f6
†, Ÿ \u00dc, \u00fc
§ \u00df
*/

Wyświetl plik

@ -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

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -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 /////////////////////////////////////////////////////

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -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!.

Wyświetl plik

@ -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!.

Wyświetl plik

@ -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!.

Wyświetl plik

@ -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
Wyświetl plik

@ -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!.