diff --git a/modules/browser/src/main/kotlin/browser/BrowserBundle.kt b/modules/browser/src/main/kotlin/browser/BrowserBundle.kt index da027dd4..5489807d 100644 --- a/modules/browser/src/main/kotlin/browser/BrowserBundle.kt +++ b/modules/browser/src/main/kotlin/browser/BrowserBundle.kt @@ -34,7 +34,8 @@ enum class SupportedLocale(val localeCode: String, val displayName: String) { AUTO_DETECT("", getString("menu.language.auto.detect")), ENGLISH("en", "English"), GERMAN("de", "Deutsch"), - SIMPLIFIED_CHINESE("zh_CN", "简体中文"); + SIMPLIFIED_CHINESE("zh_CN", "简体中文"), + POLISH("pl", "Polski"); companion object { fun findByLocaleCode(localeCode: String) : SupportedLocale = diff --git a/modules/browser/src/main/kotlin/browser/DetailPane.kt b/modules/browser/src/main/kotlin/browser/DetailPane.kt index b863f1bd..c61e3d88 100644 --- a/modules/browser/src/main/kotlin/browser/DetailPane.kt +++ b/modules/browser/src/main/kotlin/browser/DetailPane.kt @@ -7,6 +7,7 @@ package org.gjt.jclasslib.browser +import browser.BrowserBundle.getString import org.gjt.jclasslib.structures.InvalidByteCodeException import org.gjt.jclasslib.util.HtmlDisplayTextArea import org.gjt.jclasslib.util.MultiLineLabel @@ -78,11 +79,11 @@ abstract class DetailPane(private val elementClass: Class, val s return try { services.classFile.getConstantPoolEntryName(constantPoolIndex) } catch (ex: InvalidByteCodeException) { - "invalid constant pool reference" + getString("message.invalid.constant.pool.reference") } } companion object { const val CPINFO_LINK_TEXT = "cp_info #" } -} \ No newline at end of file +} diff --git a/modules/browser/src/main/kotlin/browser/detail/ConstantTypeDetailPanes.kt b/modules/browser/src/main/kotlin/browser/detail/ConstantTypeDetailPanes.kt index 98d64c0b..61934962 100644 --- a/modules/browser/src/main/kotlin/browser/detail/ConstantTypeDetailPanes.kt +++ b/modules/browser/src/main/kotlin/browser/detail/ConstantTypeDetailPanes.kt @@ -128,7 +128,7 @@ class ConstantUtf8InfoDetailPane(services: BrowserServices) : ConstantDetailPane try { constant.verbose } catch (e: InvalidByteCodeException) { - "invalid constant pool entry" + getString("message.invalid.constant.pool.entry") } } } diff --git a/modules/browser/src/main/kotlin/browser/detail/attributes/Columns.kt b/modules/browser/src/main/kotlin/browser/detail/attributes/Columns.kt index 34efa792..dcdc2e1a 100644 --- a/modules/browser/src/main/kotlin/browser/detail/attributes/Columns.kt +++ b/modules/browser/src/main/kotlin/browser/detail/attributes/Columns.kt @@ -7,6 +7,7 @@ package org.gjt.jclasslib.browser.detail.attributes +import browser.BrowserBundle.getString import org.gjt.jclasslib.browser.BrowserServices import org.gjt.jclasslib.browser.DetailPane import org.gjt.jclasslib.browser.constantPoolLink @@ -72,7 +73,7 @@ abstract class NamedConstantPoolLinkColumn(@Nls name: String, servic return try { services.classFile.getConstantPoolEntryName(constantPoolIndex) } catch (ex: InvalidByteCodeException) { - "invalid constant pool reference" + getString("message.invalid.constant.pool.reference") } } } diff --git a/modules/browser/src/main/resources/org/gjt/jclasslib/browser/messages/Browser.properties b/modules/browser/src/main/resources/org/gjt/jclasslib/browser/messages/Browser.properties index 5efd7050..334c65c6 100644 --- a/modules/browser/src/main/resources/org/gjt/jclasslib/browser/messages/Browser.properties +++ b/modules/browser/src/main/resources/org/gjt/jclasslib/browser/messages/Browser.properties @@ -198,6 +198,8 @@ message.eof=An unexpected end-of-file occurred while reading {0}. Should the fil message.attribute.of.class.not.found=No attribute of class {0} found message.classes.saved.info={0,number,integer} {0,choice,1#class was|1