Closed karthanistyr closed 2 years ago
Would probably be my mistake though, as I have to make sure all version numbers are in sync. Can you work around the issue by just decreasing the version to 3 for that file?
I'll definitely leave this issue open till next release so I remember to re-check the language files. Thanks for reporting!
I guess it's me yes: https://github.com/oddlama/vane/commit/3d6b412316f6674c192ee6078c2a5b93e325c041
Is there a workaround for vane overwriting the file everytime I restart the server ? I edit the file down to version: 3
but it gets overwritten back to 4 when the server restarts
Ah damn. Unfortunately there isn't. The language files are not intended to be modified by the users so they will be overwritten if a new version is shipped in the jar file. If you manage to compile the plugin you could simply fix it for your version until I have the time to make a fix. Otherwise, users are encouraged to copy files to e.g. fr-fr-custom.yml
to make changes to them, so you could also just do that. Copy the file, change the version, edit the language field in the config.yml. Sorry for the inconvenience.
I notice that this whole behavior isn't ideal at the moment. I guess I should maybe overhaul the language file system a little.
Notes to self:
Your proposed workaround is the better solution.
My own laziness had me to switch core to en
; some messages are in english but most of the mod's contents are localised client-side so it's not so bad while this gets fixed eventually.
Thanks!
Why are static language files even written to the plugins directory if they are not to be changed? (As a reference maybe?)
Yep, as a reference. I'd recommend naming them with .example or something.
Yeah good idea. This is now tracked by #118
Got the same issue today with the latest plugin version...
When putting fr-fr
in vane-core
config I had an issue because other vane plugins where in inherit
mode and all versions (expected/defined) are different for each plugin
When putting fr-fr
in all plugins config, I still had an issue with vane-trifle
[19:23:49 INFO]: [vane-trifles] Enabling vane-trifles v1.15.0
[19:23:49 ERROR]: [vane-trifles] lang-fr-fr.yml: expected version 4, but got 5
[19:23:49 ERROR]: [vane-trifles] This language file is for a future version of vane-trifles.
[19:23:49 ERROR]: [vane-trifles] Please use the correct file for this version, or use an officially
[19:23:49 ERROR]: [vane-trifles] supported language file.
[19:23:49 ERROR]: [vane-trifles] Invalid localization file. Shutting down.
[19:23:49 INFO]: [FastAsyncWorldEdit] Enabling FastAsyncWorldEdit v2.11.3-SNAPS
IMO that issue should not make the server stop, that's quite annoying...
In fact I think that something is broken, because the language doesn't change even after putting correct values in each plugin config...
On a completely fresh install of paper 1.18.1 and vane 1.6.7
Vane core is set for
lang: "fr-fr"
and vane bedtime tolang: "inherit"
Maybe I made a mistake updating the version on that file ?