i18n: Add i18n support for the PopUp menu

This commit is contained in:
crazymaster
2015-10-25 21:30:29 +09:00
parent a359b775eb
commit 6844ecdf6b
2 changed files with 7 additions and 3 deletions
+5 -1
View File
@@ -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();