Skip to content

Commit 05e69c5

Browse files
committed
Error Log Translations
1 parent 23d6e64 commit 05e69c5

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/main/java/the/bytecode/club/bytecodeviewer/api/ExceptionUI.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import the.bytecode.club.bytecodeviewer.Configuration;
1414
import the.bytecode.club.bytecodeviewer.gui.components.JFrameConsole;
1515
import the.bytecode.club.bytecodeviewer.resources.IconResources;
16+
import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings;
1617

1718
import static the.bytecode.club.bytecodeviewer.Constants.*;
1819

@@ -123,8 +124,8 @@ public static String buildErrorLogHeader(String author)
123124
{
124125
String fatJar = FAT_JAR ? " [Fat Jar]" : "";
125126

126-
return "Please send this error log to " + author +
127-
"\nIf you hold appropriate legal rights to the relevant class/jar/apk file please include that as well." +
127+
return TranslatedStrings.PLEASE_SEND_THIS_ERROR_LOG_TO.toString() + " " + author +
128+
"\n" + TranslatedStrings.PLEASE_SEND_RESOURCES.toString() +
128129
"\nBytecode Viewer Version: " + VERSION + fatJar +
129130
", OS: " + System.getProperty("os.name") +
130131
", Java: " + System.getProperty("java.version");

src/main/java/the/bytecode/club/bytecodeviewer/translation/TranslatedStrings.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ public enum TranslatedStrings
7575
PLUGIN_CONSOLE_TITLE,
7676
CLOSE_ALL_BUT_THIS,
7777
CLOSE_TAB,
78+
PLEASE_SEND_THIS_ERROR_LOG_TO,
79+
PLEASE_SEND_RESOURCES,
7880

7981

8082
YES,

src/main/resources/translations/english.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@
254254
"PLUGIN_CONSOLE_TITLE": "{PRODUCT_NAME} - Plugin Console",
255255
"CLOSE_ALL_BUT_THIS": "Close All But This",
256256
"CLOSE_TAB": "Close Tab",
257+
"PLEASE_SEND_THIS_ERROR_LOG_TO": "Please send this error log to",
258+
"PLEASE_SEND_RESOURCES": "If you hold appropriate legal rights to the relevant class/jar/apk file please include that as well.",
257259

258260

259261
"FILES": "Files",

0 commit comments

Comments
 (0)