Remove unnecessary constants for pre- and suffix

This commit is contained in:
F0Xde
2020-10-17 22:49:26 +02:00
parent f44aa17e3e
commit 1404b7f675

View File

@@ -7,9 +7,6 @@ import java.nio.charset.StandardCharsets
import java.util.* import java.util.*
import kotlin.collections.HashMap import kotlin.collections.HashMap
private const val PREFIX = "{"
private const val SUFFIX = "}"
/** /**
* Handles localization of strings using java [ResourceBundle]s. * Handles localization of strings using java [ResourceBundle]s.
* *
@@ -48,7 +45,7 @@ object L10n {
StrSubstitutor.replace( StrSubstitutor.replace(
getMessage(locale, key), getMessage(locale, key),
mapOf(*args), mapOf(*args),
PREFIX, SUFFIX "{", "}"
) )
private fun getOrLoadBundle(locale: Locale): ResourceBundle? { private fun getOrLoadBundle(locale: Locale): ResourceBundle? {