Translations

This commit is contained in:
Konloch 2021-07-21 14:26:22 -07:00
parent 561f0ce99c
commit 42feadc630
4 changed files with 9 additions and 4 deletions

View file

@ -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.components.listeners.MouseClickedListener;
import the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.ResourceViewer; import the.bytecode.club.bytecodeviewer.gui.resourceviewer.viewer.ResourceViewer;
import the.bytecode.club.bytecodeviewer.gui.util.DelayTabbedPaneThread; import the.bytecode.club.bytecodeviewer.gui.util.DelayTabbedPaneThread;
import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings;
/*************************************************************************** /***************************************************************************
* Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite * * Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite *
@ -84,8 +85,8 @@ public class TabbedPane extends JPanel
//define the right click pop-up menu //define the right click pop-up menu
JPopupMenu rightClickMenu = new JPopupMenu(); JPopupMenu rightClickMenu = new JPopupMenu();
JMenuItem closeAllTabs = new JMenuItem("Close All But This: " + name); JMenuItem closeAllTabs = new JMenuItem(TranslatedStrings.CLOSE_ALL_BUT_THIS.toString() + ": " + name);
JMenuItem closeTab = new JMenuItem("Close Tab: " + name); JMenuItem closeTab = new JMenuItem(TranslatedStrings.CLOSE_TAB.toString() + ": " + name);
rightClickMenu.add(closeAllTabs); rightClickMenu.add(closeAllTabs);
rightClickMenu.add(closeTab); rightClickMenu.add(closeTab);

View file

@ -111,8 +111,8 @@ public class Workspace extends TranslatedVisibleComponent
if (c != null && bounds.intersects(c.getBounds())) if (c != null && bounds.intersects(c.getBounds()))
{ {
popUp.setVisible(true); popUp.setVisible(true);
closeAllTabs.setText("Close All But This: " + ((TabbedPane) c).tabName); closeAllTabs.setText(TranslatedStrings.CLOSE_TAB.toString() + ": " + ((TabbedPane) c).tabName);
closeTab.setText("Close Tab: " + ((TabbedPane) c).tabName); closeTab.setText(TranslatedStrings.CLOSE_TAB.toString() + ": " + ((TabbedPane) c).tabName);
} }
else else
{ {

View file

@ -73,6 +73,8 @@ public enum TranslatedStrings
EXIT_CONFIRM, EXIT_CONFIRM,
ABOUT_TITLE, ABOUT_TITLE,
PLUGIN_CONSOLE_TITLE, PLUGIN_CONSOLE_TITLE,
CLOSE_ALL_BUT_THIS,
CLOSE_TAB,
YES, YES,

View file

@ -252,6 +252,8 @@
"EXIT_CONFIRM": "Are you sure you want to exit?", "EXIT_CONFIRM": "Are you sure you want to exit?",
"ABOUT_TITLE": "{PRODUCT_NAME} - About - {WEBSITE} | {TBC}", "ABOUT_TITLE": "{PRODUCT_NAME} - About - {WEBSITE} | {TBC}",
"PLUGIN_CONSOLE_TITLE": "{PRODUCT_NAME} - Plugin Console", "PLUGIN_CONSOLE_TITLE": "{PRODUCT_NAME} - Plugin Console",
"CLOSE_ALL_BUT_THIS": "Close All But This",
"CLOSE_TAB": "Close Tab",
"FILES": "Files", "FILES": "Files",