@@ -259,7 +259,7 @@ protected void nameCode(String newName) {
259
259
// might cause problems: http://dev.processing.org/bugs/show_bug.cgi?id=543
260
260
for (SketchCode c : data .getCodes ()) {
261
261
if (newName .equalsIgnoreCase (c .getFileName ()) && OSUtils .isWindows ()) {
262
- Base .showMessage (tr ("Nope " ),
262
+ Base .showMessage (tr ("Error " ),
263
263
I18n .format (
264
264
tr ("A file named \" {0}\" already exists in \" {1}\" " ),
265
265
c .getFileName (),
@@ -273,7 +273,7 @@ protected void nameCode(String newName) {
273
273
// because the sketch is concatenated into a file with that name as part
274
274
// of the build process.
275
275
if (newName .equals (getName () + ".cpp" )) {
276
- Base .showMessage (tr ("Nope " ),
276
+ Base .showMessage (tr ("Error " ),
277
277
tr ("You can't have a .cpp file with the same name as the sketch." ));
278
278
return ;
279
279
}
@@ -282,7 +282,7 @@ protected void nameCode(String newName) {
282
282
for (SketchCode code : data .getCodes ()) {
283
283
if (sanitaryName .equalsIgnoreCase (code .getPrettyName ()) &&
284
284
code .isExtension ("cpp" )) {
285
- Base .showMessage (tr ("Nope " ),
285
+ Base .showMessage (tr ("Error " ),
286
286
I18n .format (tr ("You can't rename the sketch to \" {0}\" \n "
287
287
+ "because the sketch already has a .cpp file with that name." ),
288
288
sanitaryName ));
@@ -294,7 +294,7 @@ protected void nameCode(String newName) {
294
294
295
295
File newFile = new File (data .getFolder (), newName );
296
296
// if (newFile.exists()) { // yay! users will try anything
297
- // Base.showMessage("Nope ",
297
+ // Base.showMessage("Error ",
298
298
// "A file named \"" + newFile + "\" already exists\n" +
299
299
// "in \"" + folder.getAbsolutePath() + "\"");
300
300
// return;
@@ -666,7 +666,7 @@ protected boolean saveAs() throws IOException {
666
666
// resaved (with the same name) to another location/folder.
667
667
for (SketchCode code : data .getCodes ()) {
668
668
if (newName .equalsIgnoreCase (code .getPrettyName ()) && code .isExtension ("cpp" )) {
669
- Base .showMessage (tr ("Nope " ),
669
+ Base .showMessage (tr ("Error " ),
670
670
I18n .format (
671
671
tr ("You can't save the sketch as \" {0}\" \n " +
672
672
"because the sketch already has a .cpp file with that name." ),
0 commit comments