Remove unnecessary constants for pre- and suffix
This commit is contained in:
@@ -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? {
|
||||||
|
Reference in New Issue
Block a user