Skip to content

Own language file

DarkBlade12 edited this page Oct 12, 2013 · 5 revisions

This page teaches you how to create your own language file.


❯ Step 1

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)

❯ Step 2

Copy the content of the file lang_EN.txt into your newly created file.

❯ Step 3

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

❯ Step 4

Now change the setting Language_Name in the config.yml to the name after lang_ of your language file.

❯ Step 5

The last thing you have to do is to reload the plugin (/pw reload) or reload/restart the whole server. (/reload)

Clone this wiki locally