Translations
Context menu translations
This commit is contained in:
parent
f0580df2d6
commit
7d252fd5bc
7 changed files with 27 additions and 11 deletions
|
@ -3,6 +3,7 @@ package the.bytecode.club.bytecodeviewer.gui.resourcelist.contextmenu.impl;
|
||||||
import the.bytecode.club.bytecodeviewer.BytecodeViewer;
|
import the.bytecode.club.bytecodeviewer.BytecodeViewer;
|
||||||
import the.bytecode.club.bytecodeviewer.gui.resourcelist.contextmenu.ContextMenuItem;
|
import the.bytecode.club.bytecodeviewer.gui.resourcelist.contextmenu.ContextMenuItem;
|
||||||
import the.bytecode.club.bytecodeviewer.gui.resourcelist.contextmenu.ContextMenuType;
|
import the.bytecode.club.bytecodeviewer.gui.resourcelist.contextmenu.ContextMenuType;
|
||||||
|
import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
|
@ -35,7 +36,7 @@ public class Collapse extends ContextMenuItem
|
||||||
{
|
{
|
||||||
super(ContextMenuType.DIRECTORY, ((tree, selPath, menu) ->
|
super(ContextMenuType.DIRECTORY, ((tree, selPath, menu) ->
|
||||||
{
|
{
|
||||||
menu.add(new AbstractAction("Collapse")
|
menu.add(new AbstractAction(TranslatedStrings.COLLAPSE.toString())
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e)
|
public void actionPerformed(ActionEvent e)
|
||||||
|
|
|
@ -3,6 +3,7 @@ package the.bytecode.club.bytecodeviewer.gui.resourcelist.contextmenu.impl;
|
||||||
import the.bytecode.club.bytecodeviewer.BytecodeViewer;
|
import the.bytecode.club.bytecodeviewer.BytecodeViewer;
|
||||||
import the.bytecode.club.bytecodeviewer.gui.resourcelist.contextmenu.ContextMenuItem;
|
import the.bytecode.club.bytecodeviewer.gui.resourcelist.contextmenu.ContextMenuItem;
|
||||||
import the.bytecode.club.bytecodeviewer.gui.resourcelist.contextmenu.ContextMenuType;
|
import the.bytecode.club.bytecodeviewer.gui.resourcelist.contextmenu.ContextMenuType;
|
||||||
|
import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
|
@ -35,7 +36,7 @@ public class Expand extends ContextMenuItem
|
||||||
{
|
{
|
||||||
super(ContextMenuType.DIRECTORY, ((tree, selPath, menu) ->
|
super(ContextMenuType.DIRECTORY, ((tree, selPath, menu) ->
|
||||||
{
|
{
|
||||||
menu.add(new AbstractAction("Expand")
|
menu.add(new AbstractAction(TranslatedStrings.EXPAND.toString())
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e)
|
public void actionPerformed(ActionEvent e)
|
||||||
|
|
|
@ -3,6 +3,7 @@ package the.bytecode.club.bytecodeviewer.gui.resourcelist.contextmenu.impl;
|
||||||
import the.bytecode.club.bytecodeviewer.BytecodeViewer;
|
import the.bytecode.club.bytecodeviewer.BytecodeViewer;
|
||||||
import the.bytecode.club.bytecodeviewer.gui.resourcelist.contextmenu.ContextMenuItem;
|
import the.bytecode.club.bytecodeviewer.gui.resourcelist.contextmenu.ContextMenuItem;
|
||||||
import the.bytecode.club.bytecodeviewer.gui.resourcelist.contextmenu.ContextMenuType;
|
import the.bytecode.club.bytecodeviewer.gui.resourcelist.contextmenu.ContextMenuType;
|
||||||
|
import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
|
@ -35,7 +36,7 @@ public class Open extends ContextMenuItem
|
||||||
{
|
{
|
||||||
super(ContextMenuType.RESOURCE, ((tree, selPath, menu) ->
|
super(ContextMenuType.RESOURCE, ((tree, selPath, menu) ->
|
||||||
{
|
{
|
||||||
menu.add(new AbstractAction("Open")
|
menu.add(new AbstractAction(TranslatedStrings.OPEN_UNSTYLED.toString())
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e)
|
public void actionPerformed(ActionEvent e)
|
||||||
|
|
|
@ -4,9 +4,9 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer;
|
||||||
import the.bytecode.club.bytecodeviewer.decompilers.Decompiler;
|
import the.bytecode.club.bytecodeviewer.decompilers.Decompiler;
|
||||||
import the.bytecode.club.bytecodeviewer.gui.resourcelist.contextmenu.ContextMenuItem;
|
import the.bytecode.club.bytecodeviewer.gui.resourcelist.contextmenu.ContextMenuItem;
|
||||||
import the.bytecode.club.bytecodeviewer.gui.resourcelist.contextmenu.ContextMenuType;
|
import the.bytecode.club.bytecodeviewer.gui.resourcelist.contextmenu.ContextMenuType;
|
||||||
|
import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
import javax.swing.tree.TreePath;
|
|
||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite *
|
* Bytecode Viewer (BCV) - Java & Android Reverse Engineering Suite *
|
||||||
|
@ -36,12 +36,12 @@ public class QuickOpen extends ContextMenuItem
|
||||||
{
|
{
|
||||||
super(ContextMenuType.RESOURCE, ((tree, selPath, menu) ->
|
super(ContextMenuType.RESOURCE, ((tree, selPath, menu) ->
|
||||||
{
|
{
|
||||||
JMenu quickOpen = new JMenu("Quick Open");
|
JMenu quickOpen = new JMenu(TranslatedStrings.QUICK_OPEN.toString());
|
||||||
quickOpen.add(createMenu("Procyon", ()->BytecodeViewer.viewer.resourcePane.quickDecompile(Decompiler.PROCYON_DECOMPILER, selPath)));
|
quickOpen.add(createMenu(TranslatedStrings.PROCYON.toString(), ()->BytecodeViewer.viewer.resourcePane.quickDecompile(Decompiler.PROCYON_DECOMPILER, selPath)));
|
||||||
quickOpen.add(createMenu("CFR", ()->BytecodeViewer.viewer.resourcePane.quickDecompile(Decompiler.CFR_DECOMPILER, selPath)));
|
quickOpen.add(createMenu(TranslatedStrings.CFR.toString(), ()->BytecodeViewer.viewer.resourcePane.quickDecompile(Decompiler.CFR_DECOMPILER, selPath)));
|
||||||
quickOpen.add(createMenu("FernFlower", ()->BytecodeViewer.viewer.resourcePane.quickDecompile(Decompiler.FERNFLOWER_DECOMPILER, selPath)));
|
quickOpen.add(createMenu(TranslatedStrings.FERNFLOWER.toString(), ()->BytecodeViewer.viewer.resourcePane.quickDecompile(Decompiler.FERNFLOWER_DECOMPILER, selPath)));
|
||||||
quickOpen.add(createMenu("Krakatau", ()->BytecodeViewer.viewer.resourcePane.quickDecompile(Decompiler.KRAKATAU_DECOMPILER, selPath)));
|
quickOpen.add(createMenu(TranslatedStrings.KRAKATAU.toString(), ()->BytecodeViewer.viewer.resourcePane.quickDecompile(Decompiler.KRAKATAU_DECOMPILER, selPath)));
|
||||||
quickOpen.add(createMenu("Bytecode", ()->BytecodeViewer.viewer.resourcePane.quickDecompile(Decompiler.BYTECODE_DISASSEMBLER, selPath)));
|
quickOpen.add(createMenu(TranslatedStrings.BYTECODE.toString(), ()->BytecodeViewer.viewer.resourcePane.quickDecompile(Decompiler.BYTECODE_DISASSEMBLER, selPath)));
|
||||||
menu.add(quickOpen);
|
menu.add(quickOpen);
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,7 @@ package the.bytecode.club.bytecodeviewer.gui.resourcelist.contextmenu.impl;
|
||||||
import the.bytecode.club.bytecodeviewer.BytecodeViewer;
|
import the.bytecode.club.bytecodeviewer.BytecodeViewer;
|
||||||
import the.bytecode.club.bytecodeviewer.gui.resourcelist.contextmenu.ContextMenuItem;
|
import the.bytecode.club.bytecodeviewer.gui.resourcelist.contextmenu.ContextMenuItem;
|
||||||
import the.bytecode.club.bytecodeviewer.gui.resourcelist.contextmenu.ContextMenuType;
|
import the.bytecode.club.bytecodeviewer.gui.resourcelist.contextmenu.ContextMenuType;
|
||||||
|
import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings;
|
||||||
|
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
|
@ -35,7 +36,7 @@ public class Remove extends ContextMenuItem
|
||||||
{
|
{
|
||||||
super(ContextMenuType.CONTAINER, ((tree, selPath, menu) ->
|
super(ContextMenuType.CONTAINER, ((tree, selPath, menu) ->
|
||||||
{
|
{
|
||||||
menu.add(new AbstractAction("Remove")
|
menu.add(new AbstractAction(TranslatedStrings.REMOVE.toString())
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public void actionPerformed(ActionEvent e)
|
public void actionPerformed(ActionEvent e)
|
||||||
|
|
|
@ -60,6 +60,12 @@ public enum TranslatedStrings
|
||||||
SEARCH,
|
SEARCH,
|
||||||
|
|
||||||
|
|
||||||
|
OPEN_UNSTYLED,
|
||||||
|
QUICK_OPEN,
|
||||||
|
REMOVE,
|
||||||
|
NEW,
|
||||||
|
EXPAND,
|
||||||
|
COLLAPSE,
|
||||||
RELOAD_RESOURCES_TITLE,
|
RELOAD_RESOURCES_TITLE,
|
||||||
RELOAD_RESOURCES_CONFIRM,
|
RELOAD_RESOURCES_CONFIRM,
|
||||||
SELECT_FILE_TITLE,
|
SELECT_FILE_TITLE,
|
||||||
|
|
|
@ -5,6 +5,12 @@
|
||||||
"RELOAD_RESOURCES": "Reload Resources",
|
"RELOAD_RESOURCES": "Reload Resources",
|
||||||
"RUN": "Run",
|
"RUN": "Run",
|
||||||
"OPEN": "Open...",
|
"OPEN": "Open...",
|
||||||
|
"OPEN_UNSTYLED": "Open",
|
||||||
|
"QUICK_OPEN": "Quick Open",
|
||||||
|
"REMOVE": "Remove",
|
||||||
|
"NEW": "New",
|
||||||
|
"EXPAND": "Expand",
|
||||||
|
"COLLAPSE": "Collapse",
|
||||||
"COMPILE": "Compile",
|
"COMPILE": "Compile",
|
||||||
"SAVE_AS_RUNNABLE_JAR": "Save As Runnable Jar...",
|
"SAVE_AS_RUNNABLE_JAR": "Save As Runnable Jar...",
|
||||||
"SAVE_AS_ZIP": "Save As Zip...",
|
"SAVE_AS_ZIP": "Save As Zip...",
|
||||||
|
|
Loading…
Reference in a new issue