Skip to content

Language

Chickenpowerrr edited this page Oct 27, 2018 · 2 revisions

Language

Supported Languages

This project tries to support as many Languages as possible. In order to do so it does only generate some default language files. If you feel like a language is missing, please read the Adding a Language section of this wiki page.

To see which Languages are built-in for your version of the plugin, you'll have to run the plugin one time. After that you can go to your ./plugins directory in your Minecraft server and go to the ./plugins/RankSync/language/ directory. Right here, you'll find some .txt documents. Those contain the messages that will be used in your plugin when you decide to choose one of them. The default language is set to english (yes, I didn't write it as English since the file name is english.txt, so the name in the config should be english too and NOT English).

Adding a Language

Well, you saw all those language, but you want to use your own language. Well, no problem! It's not that hard to do so! You'll have to run the plugin at least one time and after that you can go to your ./plugins directory in your Minecraft server and go to the ./plugins/RankSync/language/ directory. Right here, you'll find some .txt documents. Select one of those files and copy the content to your own file. Please name your language something like this: "If you want to add Spanish, please name your file spanish.txt". This avoids a lot of confusion.

Well, you've create a new file, but it does still contain the translations of another language since you have just copied the content of the file. What you'll have to do next is replace the sentences with your own translations of the sentences, but do NOT remove the placeholders (%time%, %service%, %name%, etc.). You can tell something is a placeholder if it's surrounded by %'s. Don't try to translate those placeholders since that won't work. You'll also have to keep the colors (&4, &c, &1, etc.). They do start with a &, followed by a character.

When you're done, you can save the file and update your config.yml. When you did everything correctly your server should be in your own language after a restart!

We would appreciate it if you would like to share your translations with the community! Please create a pull request on Github if you have translated the plugin into another language! 😃

Editing a Language

So, you're not content with the build-in translation? Well, that's possible and you're able to change it for yourself! And fortunately, it is not that hard to do so! You'll have to run the plugin at least one time and after that you can go to your ./plugins directory in your Minecraft server and go to the ./plugins/RankSync/language/ directory. Right here, you'll find some .txt documents. Open the file you want to edit.

What you'll have to do next is replace the sentence you want to edit, with your own version of the sentence, but do NOT remove the placeholders (%time%, %service%, %name%, etc.). You can tell something is a placeholder if it's surrounded by %'s. Don't try to translate those placeholders since that won't work. You'll also have to keep the colors (&4, &c, &1, etc.). They do start with a &, followed by a character.

When you're done, you can save the file. When you did everything correctly your server should be in your own language after a restart!

We would appreciate it if you would like to share your translations with the community! Please create a pull request on Github if you have created better sentences! 😃

Clone this wiki locally