Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Localization

kangarko edited this page Apr 9, 2017 · 14 revisions

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".

Available Localizations

  • English (en)
  • German (de)
  • Slovak (sk) + exclusive cases support (pády)
  • Czech (cz) + exclusive cases support (pády)
  • Spanish (es)
  • Chinese (cn)
  • Dutch (nl)
  • Hungarian (hu)
  • Portuguese (pt)

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.

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!

1. Find what your current locale is

Navigate to your settings.yml file and find the value assigned to the Locale key. settings.yml

2. Make 'localization' folder

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

3. Make your localization file

Open the localization/ folder, and create a new text file. Make New File

4 Rename the localization file

Rename the created file to 'messages_LOCALE.yml' (replace LOCALE with the locale key found in step 1, in my case it's en for English.) Rename File

5. Launch server

Start your server again. The newly created file will be filled with the localized messages, and the console will inform what exact messages were placed into the file. Launch Server

6. 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. Edit the File