mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
i18n: Add i18n support for the PopUp menu
This commit is contained in:
@@ -311,6 +311,10 @@ editor.header.next_tab = Next Tab
|
||||
editor.header.delete.warning.title = Yeah, no.
|
||||
editor.header.delete.warning.text = You cannot delete the main tab of the only open sketch.
|
||||
|
||||
# PopUp menu
|
||||
editor.popup.show_usage = Show Usage...
|
||||
editor.popup.rename = Rename...
|
||||
|
||||
# Tabs
|
||||
editor.tab.new = New Name
|
||||
editor.tab.new.description = Name for new file
|
||||
@@ -337,7 +341,7 @@ editor.status.printing.canceled = Printing canceled.
|
||||
editor.status.copy_as_html = Code formatted as HTML has been copied to the clipboard.
|
||||
editor.status.debug.busy = Debugger busy...
|
||||
editor.status.debug.halt = Debugger halted.
|
||||
editor.status.archiver.create = Created archive "%s".
|
||||
editor.status.archiver.create = Created archive "%s".
|
||||
editor.status.archiver.cancel = Archive sketch canceled.
|
||||
|
||||
# Errors
|
||||
|
||||
@@ -86,7 +86,7 @@ public class JavaEditor extends Editor {
|
||||
inspector = new VariableInspector(this);
|
||||
|
||||
// Add show usage option
|
||||
JMenuItem showUsageItem = new JMenuItem("Show Usage...");
|
||||
JMenuItem showUsageItem = new JMenuItem(Language.text("editor.popup.show_usage"));
|
||||
showUsageItem.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
handleShowUsage();
|
||||
@@ -95,7 +95,7 @@ public class JavaEditor extends Editor {
|
||||
getTextArea().getRightClickPopup().add(showUsageItem);
|
||||
|
||||
// add refactor option
|
||||
JMenuItem renameItem = new JMenuItem("Rename...");
|
||||
JMenuItem renameItem = new JMenuItem(Language.text("editor.popup.rename"));
|
||||
renameItem.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
handleRefactor();
|
||||
|
||||
Reference in New Issue
Block a user