Hey!
I've run into an issue where changing the lang entries in my plugins file doesn't change the actual saved lang .json files. Is there a way to clear them on plugin reload, or delete them so they're recreated?
Thanks
Updating / clearing language file?
Discussion in 'Rust Development' started by Bobakanoosh, Feb 21, 2017.
-
Wulf Community Admin
The language files are automatically updated to add/remove keys as you change them in your plugin. Just make sure you are using unique keys. The only way to manually remove the file though is to delete it and reload the plugin.
-
Odd, whenever i save/reload the plugin they dont update.
-
You could always delete the file manually in your lang folder, the plugin will then generate a new one on load with all of the correct information, but you will lose your old entries so maybe back them up first so they can be easily copy/pasted
Edit: I missunderstood this question, ignore this commentLast edited by a moderator: Feb 22, 2017 -
Wulf Community Admin
-
They key as in the ["LoadingError"] bit here:
Code:["LoadingError"] = "Discord not loaded correctly, please check your plugin directory for the Discord.cs file.",
-
Wulf Community Admin
-
-
Wulf Community Admin
It's so that you don't wipe out customizations that users made each time your plugin loads and you make changes. If you want a new message, you'd have to either use a new key, or tell users to delete the old if they want the new message.