mirror of
https://github.com/processing/processing4.git
synced 2026-02-23 07:15:39 +01:00
added translation for undo+redo+action menu
This commit is contained in:
@@ -1297,8 +1297,14 @@ public abstract class Editor extends JFrame implements RunnerListener {
|
||||
if (undo.canUndo() || compoundEdit != null && compoundEdit.isInProgress()) {
|
||||
this.setEnabled(true);
|
||||
undoItem.setEnabled(true);
|
||||
undoItem.setText(undo.getUndoPresentationName());
|
||||
putValue(Action.NAME, undo.getUndoPresentationName());
|
||||
String newUndoPresentationName = Language.text("menu.edit.undo");
|
||||
if (undo.getUndoPresentationName().equals("Undo addition")) {
|
||||
newUndoPresentationName += " "+Language.text("menu.edit.action.addition");
|
||||
} else if (undo.getUndoPresentationName().equals("Undo deletion")) {
|
||||
newUndoPresentationName += " "+Language.text("menu.edit.action.deletion");
|
||||
}
|
||||
undoItem.setText(newUndoPresentationName);
|
||||
putValue(Action.NAME, newUndoPresentationName);
|
||||
// if (sketch != null) {
|
||||
// sketch.setModified(true); // 0107, removed for 0196
|
||||
// }
|
||||
@@ -1346,8 +1352,14 @@ public abstract class Editor extends JFrame implements RunnerListener {
|
||||
protected void updateRedoState() {
|
||||
if (undo.canRedo()) {
|
||||
redoItem.setEnabled(true);
|
||||
redoItem.setText(undo.getRedoPresentationName());
|
||||
putValue(Action.NAME, undo.getRedoPresentationName());
|
||||
String newRedoPresentationName = Language.text("menu.edit.redo");
|
||||
if (undo.getRedoPresentationName().equals("Redo addition")) {
|
||||
newRedoPresentationName += " "+Language.text("menu.edit.action.addition");
|
||||
} else if (undo.getRedoPresentationName().equals("Redo deletion")) {
|
||||
newRedoPresentationName += " "+Language.text("menu.edit.action.deletion");
|
||||
}
|
||||
redoItem.setText(newRedoPresentationName);
|
||||
putValue(Action.NAME, newRedoPresentationName);
|
||||
} else {
|
||||
this.setEnabled(false);
|
||||
redoItem.setEnabled(false);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# ---------------------------------------
|
||||
# Language: English (en) (default)
|
||||
# ---------------------------------------
|
||||
# ---------------------------------------
|
||||
|
||||
|
||||
# ---------------------------------------
|
||||
@@ -31,6 +31,8 @@ menu.file.quit = Quit
|
||||
menu.edit = Edit
|
||||
menu.edit.undo = Undo
|
||||
menu.edit.redo = Redo
|
||||
menu.edit.action.addition = addition
|
||||
menu.edit.action.deletion = deletion
|
||||
menu.edit.cut = Cut
|
||||
menu.edit.copy = Copy
|
||||
menu.edit.copy_as_html = Copy as HTML
|
||||
@@ -108,7 +110,7 @@ open = Open a Processing sketch...
|
||||
|
||||
# Save (Frame)
|
||||
save = Save sketch folder as...
|
||||
save.title = Do you want to save changes to this sketch<br> before closing?
|
||||
save.title = Do you want to save changes to this sketch<br> before closing?
|
||||
save.hint = If you don't save, your changes will be lost.
|
||||
save.btn.save = Save
|
||||
save.btn.dont_save = Don't Save
|
||||
@@ -133,7 +135,7 @@ Select the background color used when using Present.<br>\
|
||||
Present is used to present a sketch in full-screen,<br>\
|
||||
accessible from the Sketch menu.
|
||||
preferences.use_smooth_text = Use smooth text in editor window
|
||||
preferences.enable_complex_text_input = Enable complex text input
|
||||
preferences.enable_complex_text_input = Enable complex text input
|
||||
preferences.enable_complex_text_input_example = i.e. Japanese
|
||||
preferences.continuously_check = Continuously check for errors
|
||||
preferences.show_warnings = Show warnings
|
||||
@@ -160,7 +162,7 @@ preferences.file.hint = edit only when Processing is not running
|
||||
# Sketchbook Location (Frame)
|
||||
sketchbook_location = Select new sketchbook location
|
||||
|
||||
# Sketchbook (Frame)
|
||||
# Sketchbook (Frame)
|
||||
sketchbook = Sketchbook
|
||||
sketchbook.tree = Sketchbook
|
||||
|
||||
@@ -174,7 +176,7 @@ export.platforms = Platforms
|
||||
export.options = Options
|
||||
export.options.fullscreen = Full Screen (Present mode)
|
||||
export.options.show_stop_button = Show a Stop button
|
||||
export.description.line1 = Export to Application creates double-clickable,
|
||||
export.description.line1 = Export to Application creates double-clickable,
|
||||
export.description.line2 = standalone applications for the selected platforms.
|
||||
|
||||
# Find (Frame)
|
||||
@@ -188,7 +190,7 @@ find.btn.replace_all = Replace All
|
||||
find.btn.replace = Replace
|
||||
find.btn.find_and_replace = Find & Replace
|
||||
find.btn.previous = Previous
|
||||
find.btn.find = Find
|
||||
find.btn.find = Find
|
||||
|
||||
# Find in reference (Frame)
|
||||
find_in_reference = Find in Reference
|
||||
@@ -224,7 +226,7 @@ toolbar.add_mode = Add mode...
|
||||
# Editor
|
||||
|
||||
# [Tab1] [Tab2] [v]
|
||||
editor.header.new_tab = New Tab
|
||||
editor.header.new_tab = New Tab
|
||||
editor.header.rename = Rename
|
||||
editor.header.delete = Delete
|
||||
editor.header.previous_tab = Previous Tab
|
||||
|
||||
@@ -31,6 +31,8 @@ menu.file.quit = Beenden
|
||||
menu.edit = Bearbeiten
|
||||
menu.edit.undo = Rückgängig
|
||||
menu.edit.redo = Wiederholen
|
||||
menu.edit.action.addition = Hinzufügen
|
||||
menu.edit.action.deletion = Löschen
|
||||
menu.edit.cut = Ausschneiden
|
||||
menu.edit.copy = Kopieren
|
||||
menu.edit.copy_as_html = Kopieren als HTML
|
||||
@@ -103,7 +105,7 @@ open = Processing Sketch öffnen ...
|
||||
|
||||
# Save (Frame)
|
||||
save = Sketch speichern unter ...
|
||||
save.title = Änderungen speichern?
|
||||
save.title = Änderungen speichern?
|
||||
save.hint = Wenn nicht, gehen alle Änderungen verloren.
|
||||
save.btn.save = Speichern
|
||||
save.btn.dont_save = Nicht speichern
|
||||
@@ -165,7 +167,7 @@ export.platforms = Plattformen
|
||||
export.options = Optionen
|
||||
export.options.fullscreen = Bildschirmfüllend (Present Mode)
|
||||
export.options.show_stop_button = Sichtbarer Stopp Button
|
||||
export.description.line1 = Exportierte Sketches sind ausführbare An-
|
||||
export.description.line1 = Exportierte Sketches sind ausführbare An-
|
||||
export.description.line2 = wendungen für die ausgewählten Plattformen.
|
||||
|
||||
# Find (Frame)
|
||||
@@ -215,7 +217,7 @@ toolbar.add_mode = Modus hinzufügen ...
|
||||
# Editor
|
||||
|
||||
# [Tab1] [Tab2] [v]
|
||||
editor.header.new_tab = Neuer Tab
|
||||
editor.header.new_tab = Neuer Tab
|
||||
editor.header.rename = Unbenennen
|
||||
editor.header.delete = Löschen
|
||||
editor.header.previous_tab = Nächster Tab
|
||||
|
||||
Reference in New Issue
Block a user