Update Localization.md

This commit is contained in:
Rsl1122 2017-05-02 13:13:18 +03:00 committed by GitHub
parent 9ce4f1dadb
commit 8ae2eecbf8
1 changed files with 26 additions and 0 deletions

View File

@ -1,2 +1,28 @@
![Player Analytics](https://puu.sh/t8vin.png)
# Localization
This article will tell you how you can change the messages seen in the plugin.
(Introduced in version 2.5.0)
## Config setting
In the config, there is a setting for Locale.
Setting this to, for example EN, will attempt to fetch locale from Github to be used with the plugin.
Unfortunately when this setting is used, the Color customization setting for commands is not used. This can be circumvented by copying the existing locale from Github to `/plugins/Plan/locale.txt` and changing the colors in the file.
If you want to use your own locale, just copy contents of this file on github to `/plugins/Plan/locale.txt`
Now you can customize all in game messages!
Some messages in the html pages are not loaded from the text file, and need to be changed seperately.
This can be done by copying the html files from the .jar to the plugin folder and editing them.
Known caveats:
The 'äåö'-letters etc do not work on the webpage, this will hopefully be fixed in a future update.
- [Available Locales](https://github.com/Rsl1122/Plan-PlayerAnalytics/tree/master/Plan/localization)
If you want to help me out with localizing the plugin to your language, you can translate the locale file to your language and do a pull request or send me the contents of the file via an issue or a private message on spigot.
By Default Plan uses internal Locale found inside Phrase.java & Html.java (Config setting: default)
- [Phrase](https://github.com/Rsl1122/Plan-PlayerAnalytics/blob/master/Plan/src/main/java/com/djrapitops/plan/Phrase.java)
- [Html](https://github.com/Rsl1122/Plan-PlayerAnalytics/blob/master/Plan/src/main/java/com/djrapitops/plan/ui/Html.java)