Custom Messages & Translations - PersonalDom/PunishControl-WikiClone GitHub Wiki
PunishControl can easily be translated into multiple languages. We can distinguish between the translations of menus and the translation of the plugin itself.
The overall language of PunishControl used in commands can be found in: plugins/PunishControl/lang
.
Here are the available languages:
Language | Filename | Translation | Available? |
---|---|---|---|
English | en.properties | Native | Available |
German | de.properties | Auto-generated, limited quality | Available |
French | fr.properties | Auto-generated, limited quality | Available |
Spanish | es.properties | Auto-generated, limited quality | Available |
Italian | it.properties | Auto-generated, limited quality | Unavailable |
Japanese | ja.properties | Auto-generated, limited quality | Unavailable |
Dutch | nl.properties | Auto-generated, limited quality | Unavailable |
Polish | nl.properties | Auto-generated, limited quality | Unavailable |
Portuguese | pt.properties | Auto-generated, limited quality | Unavailable |
Russian | ru.properties | Auto-generated, limited quality | Unavailable |
Chinese | zh.properties | Auto-generated, limited quality | Unavailable |
Editing messages
You can edit the messages within any .properties file. Changes won't be overridden.
Message formatting
Messages containing '<' or '>' are represented using the MiniMessage format. Their keys usually start with comp or dynamic.comp. HEX colors are supported, Click & hover events can be added. You can learn more here.
If desired, you can separately define the language for in-game menu's. You can do this within the following directory: plugins/PunishControl/lang
There is only two languages currently available for menus.
Language | Filename | Translation | Available? |
---|---|---|---|
English | en.properties | Native | Available |
German | de.properties | Native | Available |
To edit the menu language edit this block of code within the applicable .Properties file.
"punishments": {
"itemType": "CHEST",
"displayName": {
"en": "§b§lBrowse Punishments",
"de": "§b§lDurchsuche Bestrafungen",
"locale-code-here": "Some translation"
},
"lore": {
"en": [
"",
"§7Click here to show punishments"
],
"de": [
"",
"§7Alle Bestrafungen durchsuchen"
],
"locale-code-here": [
"Some translations"
]
},
"amount": 1,
"actionHandler": "Punishments",
"actionArguments": [],
"slots": [
31
]
}