Localization - kangarko/ChatControl-Pro GitHub Wiki
Want to change messages like "Wait (x) seconds before chatting again" or the format in /chc announce or /chc fake and many more? Welcome to localization.
ChatControl speaks your language! We offer plenty world's languages that will translate the vast majority of plugin's messages to your language. Localization controls messages like "Please do not repeat the same (or similar) message" or "Please wait X seconds before your next message" or "/chc announce" format and much more.
Available Localizations
- Chinese, cn
- Czech, cz / with exclusive cases support (pády)
- German, de
- English, en
- Spanish, es
- French, fr
- Hungarian, hu
- Italian, it
- Dutch, nl
- Polish, pl
- Portuguese, pt
- Russian, ru
- Slovak, sk / with exclusive cases support (pády)
- Turkish, tr
- Vietnamese, vi
Changing a Localization
By default, the localization is set to English (en). To change your localization, open settings.yml file and set the localization code (found above in italics) to the Locale key.
Editing or Making Your Own Localization
You can create your own unique localization in few simple steps. If you make an unique localization, you are welcome to send it to me and receive credits!
To avoid data loss, you are encouraged to have your server shut down when manipulating with files.
1. Find what your current locale is
Navigate to your settings.yml file and find the value assigned to the Locale key.

2. Make 'localization' folder
Go to your ChatControl/ directory within your plugins/ folder, and make a new localization/ folder.

3. Launch server
Start your server again. A new file will appear in the localization folder, filled with the localized messages, and the console will inform what exact messages were placed into the file.

4. Done! Now you are ready to edit your localization.
You localization file should now be filled with all the default values. You may edit it to your likings. It will be updated with new keys as the plugin updates. The console will then inform you about the changes.
