mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-30 09:51:24 +00:00
allow to select language in check resources window
This commit is contained in:
@@ -4,7 +4,7 @@ DefaultAction.paste-from-clipboard.MenuText = Paste
|
||||
DefaultAction.select-all.MenuText = Select All
|
||||
|
||||
Action.find.MenuText = Find
|
||||
Action.find.ToolTip= Display Find And Replace Dialog
|
||||
Action.find.ToolTip = Display Find And Replace Dialog
|
||||
Action.find-next.MenuText = Find Next
|
||||
Action.find-next.ToolTip = Repeat Last Find
|
||||
Action.goto-line.MenuText = Goto Line Number
|
||||
|
||||
@@ -4,7 +4,7 @@ DefaultAction.paste-from-clipboard.MenuText = Enganxa
|
||||
DefaultAction.select-all.MenuText = Selecciona-ho Tot
|
||||
|
||||
Action.find.MenuText = Cerca
|
||||
Action.find.ToolTip= Mostra el Di\u00e0leg de Cerca i Substituci\u00f3
|
||||
Action.find.ToolTip = Mostra el Di\u00e0leg de Cerca i Substituci\u00f3
|
||||
Action.find-next.MenuText = Cerca el Seg\u00fcent
|
||||
Action.find-next.ToolTip = Repeteix la Darrera Cerca
|
||||
Action.goto-line.MenuText = Ves al N\u00famero de L\u00ednia
|
||||
|
||||
@@ -4,7 +4,7 @@ DefaultAction.paste-from-clipboard.MenuText = Vlo\u017eit
|
||||
DefaultAction.select-all.MenuText = Vybrat V\u0161e
|
||||
|
||||
Action.find.MenuText = Naj\u00edt
|
||||
Action.find.ToolTip= Zobraz\u00ed dialog Naj\u00edt a nahradit
|
||||
Action.find.ToolTip = Zobraz\u00ed dialog Naj\u00edt a nahradit
|
||||
Action.find-next.MenuText = Naj\u00edt Dal\u0161\u00ed
|
||||
Action.find-next.ToolTip = Opakovat posledn\u00ed hled\u00e1n\u00ed
|
||||
Action.goto-line.MenuText = J\u00edt na \u0159\u00e1dek
|
||||
|
||||
@@ -4,7 +4,7 @@ DefaultAction.paste-from-clipboard.MenuText = Pegar
|
||||
DefaultAction.select-all.MenuText = Seleccionar todo
|
||||
|
||||
Action.find.MenuText = Buscar
|
||||
Action.find.ToolTip= Mostrar el di\u00e1logo de Buscar y Reemplazar
|
||||
Action.find.ToolTip = Mostrar el di\u00e1logo de Buscar y Reemplazar
|
||||
Action.find-next.MenuText = Buscar siguiente
|
||||
Action.find-next.ToolTip = Repetir la \u00faltima b\u00fasqueda
|
||||
Action.goto-line.MenuText = Ir al n\u00famero de l\u00ednea
|
||||
|
||||
@@ -4,7 +4,7 @@ DefaultAction.paste-from-clipboard.MenuText = Coller
|
||||
DefaultAction.select-all.MenuText = S\u00e9lectionner tout
|
||||
|
||||
Action.find.MenuText = Chercher
|
||||
Action.find.ToolTip= Chercher et Remplacer
|
||||
Action.find.ToolTip = Chercher et Remplacer
|
||||
Action.find-next.MenuText = Chercher l'occurence suivante
|
||||
Action.find-next.ToolTip = R\u00e9p\u00e9ter la derni\u00e8re recherche
|
||||
Action.goto-line.MenuText = Aller \u00e0 la ligne n\u00ba
|
||||
|
||||
@@ -4,7 +4,7 @@ DefaultAction.paste-from-clipboard.MenuText = Beilleszt\u00e9s
|
||||
DefaultAction.select-all.MenuText = Minden kijel\u00f6l\u00e9se
|
||||
|
||||
Action.find.MenuText = Keres\u00e9s
|
||||
Action.find.ToolTip= Keres\u00e9s \u00e9s Csere dial\u00f3gusablak megjelen\u00edt\u00e9se
|
||||
Action.find.ToolTip = Keres\u00e9s \u00e9s Csere dial\u00f3gusablak megjelen\u00edt\u00e9se
|
||||
Action.find-next.MenuText = K\u00f6vetkez\u0151 keres\u00e9se
|
||||
Action.find-next.ToolTip = Utols\u00f3 keres\u00e9s megism\u00e9tl\u00e9se
|
||||
Action.goto-line.MenuText = Sorsz\u00e1mhoz ugr\u00e1s
|
||||
|
||||
@@ -4,7 +4,7 @@ DefaultAction.paste-from-clipboard.MenuText = Plakken
|
||||
DefaultAction.select-all.MenuText = Alles selecteren
|
||||
|
||||
Action.find.MenuText = Zoeken
|
||||
Action.find.ToolTip= Zoeken en Vervangen Dialoogvenster tonen
|
||||
Action.find.ToolTip = Zoeken en Vervangen Dialoogvenster tonen
|
||||
Action.find-next.MenuText = Volgende zoeken
|
||||
Action.find-next.ToolTip = Laatste Zoek herhalen
|
||||
Action.goto-line.MenuText = Naar Lijnnummer gaan
|
||||
|
||||
@@ -4,7 +4,7 @@ DefaultAction.paste-from-clipboard.MenuText = Colar
|
||||
DefaultAction.select-all.MenuText = Selecionar tudo
|
||||
|
||||
Action.find.MenuText = Procurar
|
||||
Action.find.ToolTip= Mostrar procura e trocar dialogo
|
||||
Action.find.ToolTip = Mostrar procura e trocar dialogo
|
||||
Action.find-next.MenuText = Procurar proximo
|
||||
Action.find-next.ToolTip = Repetir ultima procura
|
||||
Action.goto-line.MenuText = Ir para numero de linha
|
||||
|
||||
@@ -4,7 +4,7 @@ DefaultAction.paste-from-clipboard.MenuText = Colar
|
||||
DefaultAction.select-all.MenuText = Escolher tudo
|
||||
|
||||
Action.find.MenuText = Procurar
|
||||
Action.find.ToolTip= Mostrar procura e trocar diálogo
|
||||
Action.find.ToolTip = Mostrar procura e trocar diálogo
|
||||
Action.find-next.MenuText = Procurar proximo
|
||||
Action.find-next.ToolTip = Repetir última procura
|
||||
Action.goto-line.MenuText = Ir para a linha número
|
||||
|
||||
@@ -4,7 +4,7 @@ DefaultAction.paste-from-clipboard.MenuText = \u0412\u0441\u0442\u0430\u0432\u04
|
||||
DefaultAction.select-all.MenuText = \u0412\u044b\u0434\u0435\u043b\u0438\u0442\u044c \u0432\u0441\u0451
|
||||
|
||||
Action.find.MenuText = \u041d\u0430\u0439\u0442\u0438
|
||||
Action.find.ToolTip= \u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0434\u0438\u0430\u043B\u043E\u0433\u043E\u0432\u043E\u0435 \u043E\u043A\u043D\u043E \u041D\u0430\u0439\u0442\u0438 \u0438 \u0437\u0430\u043C\u0435\u043D\u0438\u0442\u044C
|
||||
Action.find.ToolTip = \u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0434\u0438\u0430\u043B\u043E\u0433\u043E\u0432\u043E\u0435 \u043E\u043A\u043D\u043E \u041D\u0430\u0439\u0442\u0438 \u0438 \u0437\u0430\u043C\u0435\u043D\u0438\u0442\u044C
|
||||
Action.find-next.MenuText = \u0418\u0441\u043a\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435
|
||||
Action.find-next.ToolTip = \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043f\u043e\u0438\u0441\u043a
|
||||
Action.goto-line.MenuText = \u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u043A \u0441\u0442\u0440\u043E\u043A\u0435
|
||||
|
||||
@@ -4,7 +4,7 @@ DefaultAction.paste-from-clipboard.MenuText = Klistra in
|
||||
DefaultAction.select-all.MenuText = Markera Allt
|
||||
|
||||
Action.find.MenuText = Hitta
|
||||
Action.find.ToolTip= Visa dialogrutan S\u00f6k och ers\u00e4tt
|
||||
Action.find.ToolTip = Visa dialogrutan S\u00f6k och ers\u00e4tt
|
||||
Action.find-next.MenuText = Hitta N\u00e4sta
|
||||
Action.find-next.ToolTip = Upprepa senaste s\u00f6kningen
|
||||
Action.goto-line.MenuText = G\u00e5 till radnummer
|
||||
|
||||
@@ -4,7 +4,7 @@ DefaultAction.paste-from-clipboard.MenuText = \u0412\u0441\u0442\u0430\u0432\u04
|
||||
DefaultAction.select-all.MenuText = \u0412\u0438\u0434\u0456\u043B\u0438\u0442\u0438 \u0432\u0441\u0435
|
||||
|
||||
Action.find.MenuText = \u0417\u043D\u0430\u0439\u0442\u0438
|
||||
Action.find.ToolTip= \u041F\u043E\u043A\u0430\u0437\u0430\u0442\u0438 \u0432\u0456\u043A\u043D\u043E \u0434\u0456\u0430\u043B\u043E\u0433\u0443 \u0417\u043D\u0430\u0439\u0442\u0438 \u0456 \u0437\u0430\u043C\u0456\u043D\u0438\u0442\u0438
|
||||
Action.find.ToolTip = \u041F\u043E\u043A\u0430\u0437\u0430\u0442\u0438 \u0432\u0456\u043A\u043D\u043E \u0434\u0456\u0430\u043B\u043E\u0433\u0443 \u0417\u043D\u0430\u0439\u0442\u0438 \u0456 \u0437\u0430\u043C\u0456\u043D\u0438\u0442\u0438
|
||||
Action.find-next.MenuText = \u0428\u0443\u043A\u0430\u0442\u0438 \u0434\u0430\u043B\u0456
|
||||
Action.find-next.ToolTip = \u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0438 \u043E\u0441\u0442\u0430\u043D\u043D\u0456\u0439 \u043F\u043E\u0448\u0443\u043A
|
||||
Action.goto-line.MenuText = \u041F\u0435\u0440\u0435\u0439\u0442\u0438 \u0434\u043E \u0440\u044F\u0434\u043A\u0430
|
||||
|
||||
@@ -4,7 +4,7 @@ DefaultAction.paste-from-clipboard.MenuText = \u7c98\u8d34
|
||||
DefaultAction.select-all.MenuText = \u5168\u9009
|
||||
|
||||
Action.find.MenuText = \u67e5\u627e
|
||||
Action.find.ToolTip= \u663e\u793a\u67e5\u627e\u548c\u66ff\u6362\u5bf9\u8bdd\u6846
|
||||
Action.find.ToolTip = \u663e\u793a\u67e5\u627e\u548c\u66ff\u6362\u5bf9\u8bdd\u6846
|
||||
Action.find-next.MenuText = \u67e5\u627e\u4e0b\u4e00\u4e2a
|
||||
Action.find-next.ToolTip = \u91cd\u590d\u4e0a\u6b21\u67e5\u627e
|
||||
Action.goto-line.MenuText = \u8df3\u8f6c\u5230\u884c\u53f7
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
Action.toggle-token-marker.MenuText = Toggle Token Marker
|
||||
|
||||
# !!!! FFDec translators - please do not edit anything below this line !!!
|
||||
#==========================================================================
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
Action.toggle-token-marker.MenuText = Mostra/Amaga el Marcador Testimoni
|
||||
|
||||
# !!!! FFDec translators - please do not edit anything below this line !!!
|
||||
#==========================================================================
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
Action.toggle-token-marker.MenuText = P\u0159epnout ozna\u010dova\u010d Token\u016f
|
||||
|
||||
# !!!! FFDec translators - please do not edit anything below this line !!!
|
||||
#==========================================================================
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
Action.toggle-token-marker.MenuText = Markierung umschalten
|
||||
|
||||
# !!!! FFDec translators - please do not edit anything below this line !!!
|
||||
#==========================================================================
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
Action.toggle-token-marker.MenuText = Alternar marcador de Token
|
||||
|
||||
# !!!! FFDec translators - please do not edit anything below this line !!!
|
||||
#==========================================================================
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
Action.toggle-token-marker.MenuText = Ajouter / Supprimer un marqueur
|
||||
|
||||
# !!!! FFDec translators - please do not edit anything below this line !!!
|
||||
#==========================================================================
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
Action.toggle-token-marker.MenuText = Token Marker megjelen\u00edt\u00e9se/elrejt\u00e9se
|
||||
|
||||
# !!!! FFDec translators - please do not edit anything below this line !!!
|
||||
#==========================================================================
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
Action.toggle-token-marker.MenuText = Prze\u0142\u0105cz znacznik \u017cetonu
|
||||
|
||||
# !!!! FFDec translators - please do not edit anything below this line !!!
|
||||
#==========================================================================
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
Action.toggle-token-marker.MenuText = Alternar marcador de Token
|
||||
|
||||
# !!!! FFDec translators - please do not edit anything below this line !!!
|
||||
#==========================================================================
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
Action.toggle-token-marker.MenuText = Mudar o alternador de Token
|
||||
|
||||
# !!!! FFDec translators - please do not edit anything below this line !!!
|
||||
#==========================================================================
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
Action.toggle-token-marker.MenuText = V\u00e4xla Tecken Mark\u00f6r
|
||||
|
||||
# !!!! FFDec translators - please do not edit anything below this line !!!
|
||||
#==========================================================================
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
Action.toggle-token-marker.MenuText = \u5207\u6362\u4ee4\u724c\u6807\u8bb0
|
||||
|
||||
# !!!! FFDec translators - please do not edit anything below this line !!!
|
||||
#==========================================================================
|
||||
|
||||
|
||||
@@ -51,6 +51,7 @@ import java.util.TimerTask;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import javax.swing.AbstractButton;
|
||||
import javax.swing.JComboBox;
|
||||
import javax.swing.JDialog;
|
||||
import javax.swing.JEditorPane;
|
||||
import javax.swing.JFrame;
|
||||
@@ -407,7 +408,7 @@ public abstract class MainFrameMenu implements MenuBuilder {
|
||||
protected void checkResources() {
|
||||
ByteArrayOutputStream os = new ByteArrayOutputStream();
|
||||
PrintStream stream = new PrintStream(os);
|
||||
CheckResources.checkResources(stream);
|
||||
CheckResources.checkResources(stream, null);
|
||||
final String str = new String(os.toByteArray(), Utf8Helper.charset);
|
||||
JDialog dialog = new JDialog() {
|
||||
|
||||
@@ -416,6 +417,10 @@ public abstract class MainFrameMenu implements MenuBuilder {
|
||||
setSize(new Dimension(800, 600));
|
||||
Container cnt = getContentPane();
|
||||
cnt.setLayout(new BorderLayout());
|
||||
String[] languages = SelectLanguageDialog.getAvailableLanguages().clone();
|
||||
languages[0] = "all";
|
||||
JComboBox<String> languagesComboBox = new JComboBox<>(languages);
|
||||
this.add(languagesComboBox, BorderLayout.NORTH);
|
||||
ScrollPane scrollPane = new ScrollPane();
|
||||
JEditorPane editor = new JEditorPane();
|
||||
editor.setEditable(false);
|
||||
@@ -424,6 +429,17 @@ public abstract class MainFrameMenu implements MenuBuilder {
|
||||
this.add(scrollPane, BorderLayout.CENTER);
|
||||
this.setModal(true);
|
||||
View.centerScreen(this);
|
||||
languagesComboBox.addActionListener((ActionEvent e) -> {
|
||||
String lang = (String) languagesComboBox.getSelectedItem();
|
||||
if (lang.equals("all")) {
|
||||
lang = null;
|
||||
}
|
||||
ByteArrayOutputStream os = new ByteArrayOutputStream();
|
||||
PrintStream stream = new PrintStream(os);
|
||||
CheckResources.checkResources(stream, lang);
|
||||
String str = new String(os.toByteArray(), Utf8Helper.charset);
|
||||
editor.setText(str);
|
||||
});
|
||||
super.setVisible(bln);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -66,7 +66,7 @@ import java.util.logging.Logger;
|
||||
*/
|
||||
public class CheckResources {
|
||||
|
||||
public static void checkResources(PrintStream stream) {
|
||||
public static void checkResources(PrintStream stream, String selectedLanguage) {
|
||||
Class[] classes = getClasses();
|
||||
try {
|
||||
String[] languages = SelectLanguageDialog.getAvailableLanguages();
|
||||
@@ -84,7 +84,7 @@ public class CheckResources {
|
||||
}
|
||||
|
||||
for (String lang : languages) {
|
||||
if (lang.equals("en")) {
|
||||
if (lang.equals("en") || (selectedLanguage != null && !lang.equals(selectedLanguage))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user