From bdc6c9e1c408b7b320659f40121d7b82377340a9 Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Wed, 28 Jun 2017 00:23:52 -0700 Subject: [PATCH] Fix some file naming bugs The additional text wasnt correctly being appened to project name. Also, this makes "untitled" lowercase, consistent with other usage. --- blocks.js | 8 ++++---- byob.js | 4 ++-- gui.js | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/blocks.js b/blocks.js index ee497ddf..dcb113b4 100755 --- a/blocks.js +++ b/blocks.js @@ -1985,7 +1985,7 @@ SyntaxElementMorph.prototype.exportPictureWithResult = function (aBubble) { // request to open pic in new window. ide.saveCanvasAs( pic, - ide.projetName || localize('Untitled') + ' ' + localize('script pic'), + (ide.projetName || localize('untitled')) + ' ' + localize('script pic'), true ); }; @@ -2520,7 +2520,7 @@ BlockMorph.prototype.userMenu = function () { ); ide.saveCanvasAs( myself.topBlock().scriptPic(), - ide.projetName || localize('Untitled') + ' ' + + (ide.projetName || localize('untitled')) + ' ' + localize('script pic'), true // request new window ); @@ -6118,7 +6118,7 @@ ScriptsMorph.prototype.exportScriptsPicture = function () { if (pic) { ide.saveCanvasAs( pic, - ide.projetName || localize('Untitled') + ' ' + + (ide.projetName || localize('untitled')) + ' ' + localize('script pic'), true // request new window ); @@ -12633,7 +12633,7 @@ CommentMorph.prototype.userMenu = function () { var ide = myself.parentThatIsA(IDE_Morph); ide.saveCanvasAs( myself.fullImageClassic(), - ide.projetName || localize('Untitled') + ' ' + + (ide.projetName || localize('untitled')) + ' ' + localize('comment pic'), true // request new window ); diff --git a/byob.js b/byob.js index 8652e53e..a850e1e8 100755 --- a/byob.js +++ b/byob.js @@ -870,7 +870,7 @@ CustomCommandBlockMorph.prototype.userMenu = function () { var ide = this.world().children[0]; ide.saveCanvasAs( this.topBlock().scriptPic(), - ide.projectName || localize('Untitled') + ' ' + + (ide.projectName || localize('untitled')) + ' ' + localize('script pic'), true // request opening a new window ); @@ -3540,7 +3540,7 @@ BlockExportDialogMorph.prototype.exportBlocks = function () { + ''; ide.saveXMLAs( str, - ide.projectName || localize('Untitled') + ' ' + localize('blocks') + (ide.projectName || localize('untitled')) + ' ' + localize('blocks') ); } else { new DialogBoxMorph().inform( diff --git a/gui.js b/gui.js index 4c5ab9d2..3d0b27c3 100644 --- a/gui.js +++ b/gui.js @@ -3612,7 +3612,7 @@ IDE_Morph.prototype.exportScriptsPicture = function () { y += padding; y += each.height; }); - this.saveCanvasAs(pic, this.projectName || localize('Untitled'), true); + this.saveCanvasAs(pic, this.projectName || localize('untitled'), true); }; IDE_Morph.prototype.exportProjectSummary = function (useDropShadows) {