-
Notifications
You must be signed in to change notification settings - Fork 6
Own language file
This page teaches you how to create your own language file.
Create a new file named lang_name.txt in your PaintWar directory and make sure that the encoding is set to UTF-8. (you can choose whatever name you want, I just used the shortened forms of the languages like EN and DE)
Copy the content of the file lang_EN.txt into your newly created file.
Translate the messages into your language or change them to your heart's content. You can use every character and symbol a .txt file supports, also ä, ü, ö, á, ó, é etc.. Please don't translate the ids of the messages, they must remain in English language! You can also use color codes with the format &<?>, click here for a list of all supported color codes and the symbol ; is the syntax for a new line. This is the message format for the language files: <id>=<message>.
Now change the setting Language_Name in the config.yml to the name after lang_ of your language file.
The last thing you have to do is to reload the plugin (/pw reload) or reload/restart the whole server. (/reload)