You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy a lang file from reference to override inside plugins/Towny/settings/lang/.
Edit any translation.
What is the expected output?
Translations from override folder should override translations from reference files.
Right now the plugin uses the player's lang for translations, these translations are stored in a Map using translation file name as key with "-" replaced by "_" as seen on
Still you can just rename your translation file to match the name of the real internal name, for example copying es-ES.yml to override folder wouldn't work, but renaming es-ES.yml in override folder to es_ES.yml would work.
This method also uses the raw key, without checking if it is valid
What steps will reproduce the problem?
plugins/Towny/settings/lang/
.What is the expected output?
Translations from override folder should override translations from reference files.
Right now the plugin uses the player's lang for translations, these translations are stored in a Map using translation file name as key with "-" replaced by "_" as seen on
Towny/src/com/palmergames/bukkit/towny/object/Translation.java
Lines 105 to 106 in 8a60e7f
override translations doesn't have this replacement when the file name is used as key
Towny/src/com/palmergames/bukkit/towny/object/Translation.java
Lines 133 to 139 in 8a60e7f
Still you can just rename your translation file to match the name of the real internal name, for example copying
es-ES.yml
to override folder wouldn't work, but renaminges-ES.yml
in override folder toes_ES.yml
would work.This method also uses the raw key, without checking if it is valid
Towny/src/com/palmergames/bukkit/towny/object/Translation.java
Lines 359 to 367 in 8a60e7f
Towny version
0.97.5.2
Server version
git-Paper-70 (MC: 1.18.1) (Implementing API version 1.18.1-R0.1-SNAPSHOT) (Git: 8745326)
Please use Pastebin.com to link the following files
(optional) If this is to do with permissions,
5. Your permissions file:
(optional) If this is to do with chat,
6. Your chatconfig.yml:
7. Your channels.yml:
The text was updated successfully, but these errors were encountered: