mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
added translation for new+rename+delete context menu
This commit is contained in:
@@ -281,10 +281,8 @@ public class Sketch {
|
||||
// if read-only, give an error
|
||||
if (isReadOnly()) {
|
||||
// if the files are read-only, need to first do a "save as".
|
||||
Base.showMessage("Sketch is Read-Only",
|
||||
"Some files are marked \"read-only\", so you'll\n" +
|
||||
"need to re-save the sketch in another location,\n" +
|
||||
"and try again.");
|
||||
Base.showMessage(Language.text("new.messages.is_read_only"),
|
||||
Language.text("new.messages.is_read_only.description"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -302,24 +300,22 @@ public class Sketch {
|
||||
ensureExistence();
|
||||
|
||||
if (currentIndex == 0 && isUntitled()) {
|
||||
Base.showMessage("Sketch is Untitled",
|
||||
"How about saving the sketch first \n" +
|
||||
"before trying to rename it?");
|
||||
Base.showMessage(Language.text("rename.messages.is_untitled"),
|
||||
Language.text("rename.messages.is_untitled.description"));
|
||||
return;
|
||||
}
|
||||
|
||||
if (isModified()) {
|
||||
Base.showMessage("Save", "Please save the sketch before renaming.");
|
||||
Base.showMessage(Language.text("menu.file.save"),
|
||||
Language.text("rename.messages.is_modified"));
|
||||
return;
|
||||
}
|
||||
|
||||
// if read-only, give an error
|
||||
if (isReadOnly()) {
|
||||
// if the files are read-only, need to first do a "save as".
|
||||
Base.showMessage("Sketch is Read-Only",
|
||||
"Some files are marked \"read-only\", so you'll\n" +
|
||||
"need to re-save the sketch in another location,\n" +
|
||||
"and try again.");
|
||||
Base.showMessage(Language.text("rename.messages.is_read_only"),
|
||||
Language.text("rename.messages.is_read_only.description"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -618,17 +614,15 @@ public class Sketch {
|
||||
// if read-only, give an error
|
||||
if (isReadOnly()) {
|
||||
// if the files are read-only, need to first do a "save as".
|
||||
Base.showMessage("Sketch is Read-Only",
|
||||
"Some files are marked \"read-only\", so you'll\n" +
|
||||
"need to re-save the sketch in another location,\n" +
|
||||
"and try again.");
|
||||
Base.showMessage(Language.text("delete.messages.is_read_only"),
|
||||
Language.text("delete.messages.is_read_only.description"));
|
||||
return;
|
||||
}
|
||||
|
||||
// don't allow if untitled
|
||||
if (currentIndex == 0 && isUntitled()) {
|
||||
Base.showMessage("Cannot Delete",
|
||||
"You can't delete a sketch that has not been saved.");
|
||||
Base.showMessage(Language.text("delete.messages.cannot_delete"),
|
||||
Language.text("delete.messages.cannot_delete.description"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -664,8 +658,8 @@ public class Sketch {
|
||||
} else {
|
||||
// delete the file
|
||||
if (!current.deleteFile()) {
|
||||
Base.showMessage("Couldn't do it",
|
||||
"Could not delete \"" +
|
||||
Base.showMessage(Language.text("delete.messages.cannot_delete.file"),
|
||||
Language.text("delete.messages.cannot_delete.file.description")+" \"" +
|
||||
current.getFileName() + "\".");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -269,6 +269,25 @@ editor.status.printing.done = Done printing.
|
||||
editor.status.printing.error = Error while printing.
|
||||
editor.status.printing.canceled = Printing canceled.
|
||||
|
||||
# New handler
|
||||
new.messages.is_read_only = Sketch is Read-Only
|
||||
new.messages.is_read_only.description = Some files are marked \"read-only\", so you'll\nneed to re-save the sketch in another location,\nand try again.
|
||||
|
||||
# Rename handler
|
||||
rename.messages.is_untitled = Sketch is Untitled
|
||||
rename.messages.is_untitled.description = How about saving the sketch first\nbefore trying to rename it?
|
||||
rename.messages.is_modified = Please save the sketch before renaming.
|
||||
rename.messages.is_read_only = Sketch is Read-Only
|
||||
rename.messages.is_read_only.description = Some files are marked \"read-only\", so you'll\nneed to re-save the sketch in another location,\nand try again.
|
||||
|
||||
# Delete handler
|
||||
delete.messages.cannot_delete = Cannot Delete
|
||||
delete.messages.cannot_delete.description = You can't delete a sketch that has not been saved.
|
||||
delete.messages.cannot_delete.file = Couldn't do it
|
||||
delete.messages.cannot_delete.file.description = Could not delete
|
||||
delete.messages.is_read_only = Sketch is Read-Only
|
||||
delete.messages.is_read_only.description = Some files are marked \"read-only\", so you'll\nneed to re-save the sketch in another location,\nand try again.
|
||||
|
||||
|
||||
# ---------------------------------------
|
||||
# Contribution Panel
|
||||
|
||||
@@ -260,6 +260,25 @@ editor.status.printing.done = Drucken beendet.
|
||||
editor.status.printing.error = Fehler während des Druckens.
|
||||
editor.status.printing.canceled = Drucken abgebrochen.
|
||||
|
||||
# New handler
|
||||
new.messages.is_read_only = Sketch ist Read-Only
|
||||
new.messages.is_read_only.description = Einige Dateien sind als \"read-only\" markiert,\naus dem Grund musst du das Sketch an einer neuer\nStelle abspeichern, und es noch mal ausprobieren.
|
||||
|
||||
# Rename handler
|
||||
rename.messages.is_untitled = Unbenennen abgebrochen
|
||||
rename.messages.is_untitled.description = Sketch muss zuvor abgespeichert werden\nbevor es unbenannt werden kann.
|
||||
rename.messages.is_modified = Speichere Sketch vor dem Umbenennen.
|
||||
rename.messages.is_read_only = Sketch ist Read-Only
|
||||
rename.messages.is_read_only.description = Einige Dateien sind als \"read-only\" markiert,\naus dem Grund musst du das Sketch an einer neuer\nStelle abspeichern, und es noch mal ausprobieren.
|
||||
|
||||
# Delete handler
|
||||
delete.messages.cannot_delete = Löschen abgebrochen
|
||||
delete.messages.cannot_delete.description = Ein Sketch muss zuvor abgespeichert werden\nbevor es gelöscht werden kann.
|
||||
delete.messages.cannot_delete.file = Löschen nicht möglich
|
||||
delete.messages.cannot_delete.file.description = Konnte nicht gelöscht werden.
|
||||
delete.messages.is_read_only = Sketch ist Read-Only
|
||||
delete.messages.is_read_only.description = Einige Dateien sind als \"read-only\" markiert,\naus dem Grund musst du das Sketch an einer neuer\nStelle abspeichern, und es noch mal ausprobieren.
|
||||
|
||||
|
||||
# ---------------------------------------
|
||||
# Contribution Panel
|
||||
|
||||
Reference in New Issue
Block a user