diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/api/ExceptionUI.java b/src/main/java/the/bytecode/club/bytecodeviewer/api/ExceptionUI.java index 675fc0b7..02265c5a 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/ExceptionUI.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/ExceptionUI.java @@ -13,6 +13,7 @@ import the.bytecode.club.bytecodeviewer.BytecodeViewer; import the.bytecode.club.bytecodeviewer.Configuration; import the.bytecode.club.bytecodeviewer.gui.components.JFrameConsole; import the.bytecode.club.bytecodeviewer.resources.IconResources; +import the.bytecode.club.bytecodeviewer.translation.TranslatedStrings; import static the.bytecode.club.bytecodeviewer.Constants.*; @@ -123,8 +124,8 @@ public class ExceptionUI extends JFrameConsole { String fatJar = FAT_JAR ? " [Fat Jar]" : ""; - return "Please send this error log to " + author + - "\nIf you hold appropriate legal rights to the relevant class/jar/apk file please include that as well." + + return TranslatedStrings.PLEASE_SEND_THIS_ERROR_LOG_TO.toString() + " " + author + + "\n" + TranslatedStrings.PLEASE_SEND_RESOURCES.toString() + "\nBytecode Viewer Version: " + VERSION + fatJar + ", OS: " + System.getProperty("os.name") + ", Java: " + System.getProperty("java.version"); 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 fdbb8654..42ecb30f 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/translation/TranslatedStrings.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/translation/TranslatedStrings.java @@ -75,6 +75,8 @@ public enum TranslatedStrings PLUGIN_CONSOLE_TITLE, CLOSE_ALL_BUT_THIS, CLOSE_TAB, + PLEASE_SEND_THIS_ERROR_LOG_TO, + PLEASE_SEND_RESOURCES, YES, diff --git a/src/main/resources/translations/english.json b/src/main/resources/translations/english.json index 754611ea..e6ca7d48 100644 --- a/src/main/resources/translations/english.json +++ b/src/main/resources/translations/english.json @@ -254,6 +254,8 @@ "PLUGIN_CONSOLE_TITLE": "{PRODUCT_NAME} - Plugin Console", "CLOSE_ALL_BUT_THIS": "Close All But This", "CLOSE_TAB": "Close Tab", + "PLEASE_SEND_THIS_ERROR_LOG_TO": "Please send this error log to", + "PLEASE_SEND_RESOURCES": "If you hold appropriate legal rights to the relevant class/jar/apk file please include that as well.", "FILES": "Files",