Skip to content

Commit

Permalink
Merge pull request #4060 from crazymaster/i18n
Browse files Browse the repository at this point in the history
i18n: Add i18n support for the PopUp menu
  • Loading branch information
benfry committed Feb 13, 2016
2 parents 3b27920 + 2c5206c commit 9ece9fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion build/shared/lib/languages/PDE.properties
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions java/src/processing/mode/java/JavaEditor.java
Expand Up @@ -86,7 +86,7 @@ protected JavaEditor(Base base, String path, EditorState state,
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();
Expand All @@ -95,7 +95,7 @@ public void actionPerformed(ActionEvent e) {
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();
Expand Down

0 comments on commit 9ece9fe

Please sign in to comment.