Skip to content

Commit 2c5206c

Browse files
committed
i18n: Add i18n support for the PopUp menu
1 parent 0969b42 commit 2c5206c

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

build/shared/lib/languages/PDE.properties

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,10 @@ editor.header.next_tab = Next Tab
311311
editor.header.delete.warning.title = Yeah, no.
312312
editor.header.delete.warning.text = You cannot delete the main tab of the only open sketch.
313313

314+
# PopUp menu
315+
editor.popup.show_usage = Show Usage...
316+
editor.popup.rename = Rename...
317+
314318
# Tabs
315319
editor.tab.new = New Name
316320
editor.tab.new.description = Name for new file
@@ -337,7 +341,7 @@ editor.status.printing.canceled = Printing canceled.
337341
editor.status.copy_as_html = Code formatted as HTML has been copied to the clipboard.
338342
editor.status.debug.busy = Debugger busy...
339343
editor.status.debug.halt = Debugger halted.
340-
editor.status.archiver.create = Created archive "%s".
344+
editor.status.archiver.create = Created archive "%s".
341345
editor.status.archiver.cancel = Archive sketch canceled.
342346

343347
# Errors

java/src/processing/mode/java/JavaEditor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ protected JavaEditor(Base base, String path, EditorState state,
8686
inspector = new VariableInspector(this);
8787

8888
// Add show usage option
89-
JMenuItem showUsageItem = new JMenuItem("Show Usage...");
89+
JMenuItem showUsageItem = new JMenuItem(Language.text("editor.popup.show_usage"));
9090
showUsageItem.addActionListener(new ActionListener() {
9191
public void actionPerformed(ActionEvent e) {
9292
handleShowUsage();
@@ -95,7 +95,7 @@ public void actionPerformed(ActionEvent e) {
9595
getTextArea().getRightClickPopup().add(showUsageItem);
9696

9797
// add refactor option
98-
JMenuItem renameItem = new JMenuItem("Rename...");
98+
JMenuItem renameItem = new JMenuItem(Language.text("editor.popup.rename"));
9999
renameItem.addActionListener(new ActionListener() {
100100
public void actionPerformed(ActionEvent e) {
101101
handleRefactor();

0 commit comments

Comments
 (0)