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 kotlin.collections.HashMap
private const val PREFIX = "{"
private const val SUFFIX = "}"
/**
* Handles localization of strings using java [ResourceBundle]s.
*
@@ -48,7 +45,7 @@ object L10n {
StrSubstitutor.replace(
getMessage(locale, key),
mapOf(*args),
PREFIX, SUFFIX
"{", "}"
)
private fun getOrLoadBundle(locale: Locale): ResourceBundle? {