SuperEnchants Wiki
  • Wiki Introduction
  • Wiki
    • Full enchantment list
    • Permissions
    • Level 255
    • Translations
    • Anvil Enchanting
Powered by GitBook
On this page
  • How to change what translation file your plugin uses
  • How to add more translations
  • How to change translations
  • Adding translations to the base plugin
  1. Wiki

Translations

PreviousLevel 255NextAnvil Enchanting

Last updated 7 months ago

How to change what translation file your plugin uses

By default, SuperEnchants comes with translation files for english, spanish, dutch, german, french, and portuguese (brazilian). To change which translation you're using, go into your config.yml and change the two letter country code which should be the first line in the file. It should be listed on what languages are available, but for example english is lang_en, french is lang_fr, etc.

How to add more translations

Luckily adding more translations using this plugin is very easy to do, simply in your plugins/superenchants folder, copy an existing language file of your choice, however it would probably be much easier to copy the lang_en.yml file.

Next you'll rename the copied file to the two letter country code of your choice, for example Vietnamese would be lang_vn.yml, and Latvian would be lang_lv.yml.

Now that you've copied the file, open it in your favorite text editor, and change the translations inside of the quotations marks, or the "values". Remember don't change the keys, this. is how the plugin knows what message to use!

How to change translations

If the translation isn't completely accurate for your language don't worry, you're able to change the text on near everything. For your desired language, go into the plugins/superenchants folder, and find your two letter country code file, this should be something like lang_fr, lang_pt, etc.

Now that you're in the file, you'll see alot of key value pairs, please remember to not change the keys, this is how the plugin finds the correct message to use. However feel free to change anything thats inside of quotation marks.

Once you're done editing the file to your liking, simply restart the server and make sure the correct translation file is in use, and the translations will be updated.

Adding translations to the base plugin

If you've changed a translation file because it wasn't correct, or you've added your own translation, and you want it to be added to the base plugin, join the discord server liked in and I'll add it!

#extra-help