Use adequate strings in the mkMap function and in the SnowyConfigScreen class.
This commit is contained in:
parent
fd29413768
commit
76f483e6a9
|
@ -9,8 +9,8 @@ object AddKeyMaps {
|
|||
private const val prefix = "snowy"
|
||||
private fun mkMap(translationSuffix: String, key: Int, category: String = "keycategory"): KeyMapping {
|
||||
return KeyMapping(
|
||||
"$prefix.$translationSuffix", InputConstants.Type.KEYSYM,
|
||||
key, "$prefix.$category"
|
||||
"key.$prefix.$translationSuffix", InputConstants.Type.KEYSYM,
|
||||
key, "category.$prefix.$category"
|
||||
)
|
||||
}
|
||||
fun getList(): List<KeyMapping> {
|
||||
|
|
|
@ -3,6 +3,6 @@ package fr.username404.snowygui.config
|
|||
import net.minecraft.client.gui.screens.Screen
|
||||
import net.minecraft.network.chat.TranslatableComponent
|
||||
|
||||
abstract class SnowyConfigScreen: Screen(TranslatableComponent("snowygui.config")) { // TODO Actual config screen
|
||||
abstract class SnowyConfigScreen: Screen(TranslatableComponent("screen.snowygui.config")) { // TODO Actual config screen
|
||||
|
||||
}
|
Loading…
Reference in New Issue