diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/TabbedPane.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/TabbedPane.java index f1c659c0..d7d305e4 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/TabbedPane.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/TabbedPane.java @@ -16,6 +16,7 @@ import the.bytecode.club.bytecodeviewer.gui.components.MaxWidthJLabel; import the.bytecode.club.bytecodeviewer.gui.components.listeners.MouseClickedListener; import the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.ResourceViewer; import the.bytecode.club.bytecodeviewer.gui.util.DelayTabbedPaneThread; +import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; /*************************************************************************** * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * @@ -84,8 +85,8 @@ public class TabbedPane extends JPanel //define the right click pop-up menu JPopupMenu rightClickMenu = new JPopupMenu(); - JMenuItem closeAllTabs = new JMenuItem("Close All But This: " + name); - JMenuItem closeTab = new JMenuItem("Close Tab: " + name); + JMenuItem closeAllTabs = new JMenuItem(TranslatedStrings.CLOSE_ALL_BUT_THIS.toString() + ": " + name); + JMenuItem closeTab = new JMenuItem(TranslatedStrings.CLOSE_TAB.toString() + ": " + name); rightClickMenu.add(closeAllTabs); rightClickMenu.add(closeTab); diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/Workspace.java b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/Workspace.java index a001c8c4..6d61784d 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/Workspace.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/gui/resourceviewer/Workspace.java @@ -111,8 +111,8 @@ public class Workspace extends TranslatedVisibleComponent if (c != null && bounds.intersects(c.getBounds())) { popUp.setVisible(true); - closeAllTabs.setText("Close All But This: " + ((TabbedPane) c).tabName); - closeTab.setText("Close Tab: " + ((TabbedPane) c).tabName); + closeAllTabs.setText(TranslatedStrings.CLOSE_TAB.toString() + ": " + ((TabbedPane) c).tabName); + closeTab.setText(TranslatedStrings.CLOSE_TAB.toString() + ": " + ((TabbedPane) c).tabName); } else { diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/translation/TranslatedStrings.java b/src/main/java/the/bytecode/club/bytecodeviewer/translation/TranslatedStrings.java index cdb07473..fdbb8654 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/TranslatedStrings.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/TranslatedStrings.java @@ -73,6 +73,8 @@ public enum TranslatedStrings EXIT_CONFIRM, ABOUT_TITLE, PLUGIN_CONSOLE_TITLE, + CLOSE_ALL_BUT_THIS, + CLOSE_TAB, YES, diff --git a/src/main/resources/translations/english.json b/src/main/resources/translations/english.json index 47555a36..754611ea 100644 --- a/src/main/resources/translations/english.json +++ b/src/main/resources/translations/english.json @@ -252,6 +252,8 @@ "EXIT_CONFIRM": "Are you sure you want to exit?", "ABOUT_TITLE": "{PRODUCT_NAME} - About - {WEBSITE} | {TBC}", "PLUGIN_CONSOLE_TITLE": "{PRODUCT_NAME} - Plugin Console", + "CLOSE_ALL_BUT_THIS": "Close All But This", + "CLOSE_TAB": "Close Tab", "FILES": "Files",