From 70fbb8b08e6d3ab418453fab037f7a4cb75248d0 Mon Sep 17 00:00:00 2001 From: Federico Fissore Date: Thu, 6 Aug 2015 15:48:14 +0200 Subject: [PATCH] "Nope" is not a nice title for an error dialog --- app/src/processing/app/Sketch.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/processing/app/Sketch.java b/app/src/processing/app/Sketch.java index 2eed9f9b1..716d0c78c 100644 --- a/app/src/processing/app/Sketch.java +++ b/app/src/processing/app/Sketch.java @@ -259,7 +259,7 @@ public class Sketch { // might cause problems: http://dev.processing.org/bugs/show_bug.cgi?id=543 for (SketchCode c : data.getCodes()) { if (newName.equalsIgnoreCase(c.getFileName()) && OSUtils.isWindows()) { - Base.showMessage(tr("Nope"), + Base.showMessage(tr("Error"), I18n.format( tr("A file named \"{0}\" already exists in \"{1}\""), c.getFileName(), @@ -273,7 +273,7 @@ public class Sketch { // because the sketch is concatenated into a file with that name as part // of the build process. if (newName.equals(getName() + ".cpp")) { - Base.showMessage(tr("Nope"), + Base.showMessage(tr("Error"), tr("You can't have a .cpp file with the same name as the sketch.")); return; } @@ -282,7 +282,7 @@ public class Sketch { for (SketchCode code : data.getCodes()) { if (sanitaryName.equalsIgnoreCase(code.getPrettyName()) && code.isExtension("cpp")) { - Base.showMessage(tr("Nope"), + Base.showMessage(tr("Error"), I18n.format(tr("You can't rename the sketch to \"{0}\"\n" + "because the sketch already has a .cpp file with that name."), sanitaryName)); @@ -294,7 +294,7 @@ public class Sketch { File newFile = new File(data.getFolder(), newName); // if (newFile.exists()) { // yay! users will try anything -// Base.showMessage("Nope", +// Base.showMessage("Error", // "A file named \"" + newFile + "\" already exists\n" + // "in \"" + folder.getAbsolutePath() + "\""); // return; @@ -666,7 +666,7 @@ public class Sketch { // resaved (with the same name) to another location/folder. for (SketchCode code : data.getCodes()) { if (newName.equalsIgnoreCase(code.getPrettyName()) && code.isExtension("cpp")) { - Base.showMessage(tr("Nope"), + Base.showMessage(tr("Error"), I18n.format( tr("You can't save the sketch as \"{0}\"\n" + "because the sketch already has a .cpp file with that name."),