diff --git a/HISTORY.md b/HISTORY.md index a1a479b5..f9785b2d 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -4,11 +4,16 @@ * **New Features:** * **Notable Changes:** + * friendlier error messages * **Notable Fixes:** - * disabled reporter drops into "When I am ..." hat block (again) - * fixed "pick random" for descending ranges, thanks, Brian! * **Documentation Updates:** * **Translation Updates:** + * German + +### 2022-01-31 +* new dev version +* threads, locale: friendlier error messages +* German translation update ## 7.1.1: * **Notable Fixes:** diff --git a/locale/lang-de.js b/locale/lang-de.js index d10e7c8c..f6e00c64 100644 --- a/locale/lang-de.js +++ b/locale/lang-de.js @@ -185,7 +185,7 @@ SnapTranslator.dict.de = { 'translator_e-mail': 'jens@moenig.org, jadga.huegle@sap.com', // optional 'last_changed': - '2022-01-26', // this, too, will appear in the Translators tab + '2022-01-31', // this, too, will appear in the Translators tab // GUI // control bar: @@ -2128,8 +2128,8 @@ SnapTranslator.dict.de = { 'Input(s), bekomme aber', 'Inside a custom block': 'In einem benutzerdefinierten Block', - 'The error occured at': - 'Der Fehler passierte bei', + 'The question came up at': + 'Die Frage stellte sich bei', 'continuations cannot be forked': 'Continuations können nicht separat gestartet werden', 'unable to convert to': diff --git a/snap.html b/snap.html index 0e8c07ee..1d7c363d 100755 --- a/snap.html +++ b/snap.html @@ -1,7 +1,7 @@ - Snap! 7.1.1 - Build Your Own Blocks + Snap! 7.1.2 - dev - Build Your Own Blocks @@ -17,10 +17,10 @@ - + - + @@ -31,7 +31,7 @@ - + diff --git a/src/gui.js b/src/gui.js index 7cded2c4..cb3eb63d 100644 --- a/src/gui.js +++ b/src/gui.js @@ -86,7 +86,7 @@ BlockVisibilityDialogMorph, ThreadManager*/ // Global stuff //////////////////////////////////////////////////////// -modules.gui = '2022-January-30'; +modules.gui = '2022-January-31'; // Declarations @@ -4775,7 +4775,7 @@ IDE_Morph.prototype.aboutSnap = function () { module, btn1, btn2, btn3, btn4, licenseBtn, translatorsBtn, world = this.world(); - aboutTxt = 'Snap! 7.1.1\nBuild Your Own Blocks\n\n' + aboutTxt = 'Snap! 7.1.2 - dev -\nBuild Your Own Blocks\n\n' + 'Copyright \u24B8 2008-2022 Jens M\u00F6nig and ' + 'Brian Harvey\n' + 'jens@moenig.org, bh@cs.berkeley.edu\n\n' diff --git a/src/locale.js b/src/locale.js index a07c4623..ec5066cd 100644 --- a/src/locale.js +++ b/src/locale.js @@ -50,7 +50,7 @@ // Global stuff -modules.locale = '2022-January-26'; +modules.locale = '2022-January-31'; var Localizer; var SnapTranslator = new Localizer(); @@ -119,6 +119,8 @@ Localizer.prototype.unload = function () { Localizer.prototype.contextualize = function (string) { switch (string) { + case 'Error': + return 'Hmm...'; case 'brightness': return SpriteMorph.prototype.penColorModel === 'hsl' ? 'lightness' : string; @@ -185,7 +187,7 @@ SnapTranslator.dict.de = { 'translator_e-mail': 'jens@moenig.org, jadga.huegle@sap.com', 'last_changed': - '2022-01-26' + '2022-01-31' }; SnapTranslator.dict.it = { diff --git a/src/threads.js b/src/threads.js index 9b2beaae..631c81a1 100644 --- a/src/threads.js +++ b/src/threads.js @@ -1217,7 +1217,7 @@ Process.prototype.errorBubble = function (error, element) { errorPrefix = errorIsNested ? `${localize('Inside a custom block')}\n` : '', errorMessage = new TextMorph( - `${errorPrefix}${localize(error.name)}:\n${localize(error.message)}`, + `${errorPrefix}${localize(error.name)}\n${localize(error.message)}`, SyntaxElementMorph.prototype.fontSize ), blockToShow = element; @@ -1229,7 +1229,7 @@ Process.prototype.errorBubble = function (error, element) { // if I am a single variable, show my caller in the output. blockToShow = blockToShow.parent; } - errorMorph.children[0].text += `\n${localize('The error occured at')}`; + errorMorph.children[0].text += `\n${localize('The question came up at')}`; errorMorph.children[0].fixLayout(); errorMorph.add(blockToShow.fullCopy()); } diff --git a/sw.js b/sw.js index ad6231c3..220293ff 100644 --- a/sw.js +++ b/sw.js @@ -1,4 +1,4 @@ -var snapVersion = '7.1.1', +var snapVersion = '7.1.2-dev', cacheName = 'snap-pwa', filesToCache = [ 'snap.html',