Translate

Prerequisites
This guide is written for the werewolf bot commit 521e694. It might work on older and newer versions.

Locate and create the file
In the ./messages folder is a file named en.json, create a copy of it and look up the language code of the language you want to translate it in to here: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements

For this tutorial, I will take Dutch as an example, so i call the file nl.json

Editing
Now open it in your favourite text editor like notepad++, the format is like this

"name_of_variable":"Text that will appear in the chat"

You only need to translate the "Text that will appear in the chat" part, if you change anything else, the bot will give a lot of errors

Variables
In a lot of strings there are strange things like {0} or {0:0>2}, please keep it like this, do copy paste with it. If something like a space or whatever changes it, it doesn't work. And WILL let your bot crash the second it wants to say it!

\u0002
This is bold text, in notepad++ you can edit this, but lots of editors don't support it. If you miss this, its not bad, but the text won't appear bold anymore

commands
At this point in time the commands aren't translatable. so please dont translate !kill or commands alike. If you encounter something in the line of {0}kill, the {0} will be replaced with an ! if this is what you have selected in the botconfig.py, so dont place a space in between

Crowd translating
For the dutch language we have used a tool called poeditor, this can be used to translate with multiple people. If you want to add your langauge and have it there, please contact Thijseigenwijs so he can add the language and make you admin of that part!

Some recommandations
DO NOT USE GOOGLE TRANSLATE to make translating easier. Yes you can use it for loose words, but don't use it for mass translation, it messes with the bold statement and the variable declarations. Just don't do it. If its too much work, use the crowd translating option and invite some friends to do it!