Skip to content

Commit 70fbb8b

Browse files
author
Federico Fissore
committed
"Nope" is not a nice title for an error dialog
1 parent 0a7b3d5 commit 70fbb8b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/src/processing/app/Sketch.java

+5-5
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ protected void nameCode(String newName) {
259259
// might cause problems: http://dev.processing.org/bugs/show_bug.cgi?id=543
260260
for (SketchCode c : data.getCodes()) {
261261
if (newName.equalsIgnoreCase(c.getFileName()) && OSUtils.isWindows()) {
262-
Base.showMessage(tr("Nope"),
262+
Base.showMessage(tr("Error"),
263263
I18n.format(
264264
tr("A file named \"{0}\" already exists in \"{1}\""),
265265
c.getFileName(),
@@ -273,7 +273,7 @@ protected void nameCode(String newName) {
273273
// because the sketch is concatenated into a file with that name as part
274274
// of the build process.
275275
if (newName.equals(getName() + ".cpp")) {
276-
Base.showMessage(tr("Nope"),
276+
Base.showMessage(tr("Error"),
277277
tr("You can't have a .cpp file with the same name as the sketch."));
278278
return;
279279
}
@@ -282,7 +282,7 @@ protected void nameCode(String newName) {
282282
for (SketchCode code : data.getCodes()) {
283283
if (sanitaryName.equalsIgnoreCase(code.getPrettyName()) &&
284284
code.isExtension("cpp")) {
285-
Base.showMessage(tr("Nope"),
285+
Base.showMessage(tr("Error"),
286286
I18n.format(tr("You can't rename the sketch to \"{0}\"\n"
287287
+ "because the sketch already has a .cpp file with that name."),
288288
sanitaryName));
@@ -294,7 +294,7 @@ protected void nameCode(String newName) {
294294

295295
File newFile = new File(data.getFolder(), newName);
296296
// if (newFile.exists()) { // yay! users will try anything
297-
// Base.showMessage("Nope",
297+
// Base.showMessage("Error",
298298
// "A file named \"" + newFile + "\" already exists\n" +
299299
// "in \"" + folder.getAbsolutePath() + "\"");
300300
// return;
@@ -666,7 +666,7 @@ protected boolean saveAs() throws IOException {
666666
// resaved (with the same name) to another location/folder.
667667
for (SketchCode code : data.getCodes()) {
668668
if (newName.equalsIgnoreCase(code.getPrettyName()) && code.isExtension("cpp")) {
669-
Base.showMessage(tr("Nope"),
669+
Base.showMessage(tr("Error"),
670670
I18n.format(
671671
tr("You can't save the sketch as \"{0}\"\n" +
672672
"because the sketch already has a .cpp file with that name."),

0 commit comments

Comments
 (0)