TownyAdvanced / TownyMenus

An easy-to-use and accessible way for players to use Towny commands.
GNU General Public License v3.0
20 stars 6 forks source link

Automatic localization change #25

Closed w1th0utme closed 8 months ago

w1th0utme commented 1 year ago

I have own-lang.yml in towny and also have the contents of this file duplicated in override > global.yml. In towny menus I also use the own-lang.yml language file in the override folder. But sometimes the plugin randomly loads the standard localization en-US.yml and I don't know why.

CerealAxis commented 1 year ago

Yes, I am in the same situation. After modifying the lang file in TownyMenus, once restarted, everything will be restored to its original state, so there is no way to change the implementation of localized languages image

Warriorrrr commented 1 year ago

In what folder is the file you're editing? You shouldn't touch any of the files in the reference folder, as those will be overridden. Instead use the override folder (https://github.com/TownyAdvanced/Towny/wiki/How-Towny-Works#multi-language).

CerealAxis commented 1 year ago

您正在编辑的文件在哪个文件夹中?您不应触摸引用文件夹中的任何文件,因为这些文件将被覆盖。请改用覆盖文件夹 (https://github.com/TownyAdvanced/Towny/wiki/How-Towny-Works#multi-language)。

sorry,my problem.

w1th0utme commented 1 year ago

I have the file in the override folder

NeotenySS commented 8 months ago

Confirming the problem. I use a separate file and also use the global.yml file to create a translation by multi-language, but it doesn't help, the plugin ignores the conditions and draws the translation from the en_US.yml file Trying to change the content in en_US.yml restores it and the global.yml file is ignored. @Warriorrrr

Warriorrrr commented 8 months ago

Changing lang strings in the override folder works for me, I can not reproduce the issue. The global.yml file probably only exists in towny currently.