Download the messages.pot file from each cog you want to translate.
If you don't know how, follow these steps:
- Navigate to the cog folder you want. (Example)
- Go into the
locales
folder of that cog. - Click on the
messages.pot
file. - Click on the Raw button.
- Right click in the page.
- Click
Save as...
and save it somewhere on your computer.
To do that, I suggest using poedit. I'll assume you're using that, if not just find the equivalent functionnalities in your own editor.
- Start poedit.
- Click
Open
and navigate to themessages.pot
file you downloaded earlier. - Click
Create a new translation
in the bottom section of poedit. - Select your language and click Ok.
- Save the file with the name poedit suggests you somewhere on your computer.
In poedit, just click a string you want to translate and fill in the translation in the bottom section.
Make sure your translations are consistent between themselves and are accurate.
Once you're done with a string, press Ctrl+Enter (Windows) to go to the next one.
Use that opportunity to also save your file (just in case).
When you'll be done with every string, save one last time.
- If you don't have a GitHub account, go create one.
- Go back to the
locales
folder of the cog on GitHub and clickCreate new file
. - Enter your translation file's name in the
Name your file...
field. - Copy paste your translation file's content in the editor.
- Write
[cog_name] Added the translation file for <language>
in the first field underPropose new file
. (Replacecog_name
with the cog you're translating and<language>
with the language you're translating onto. Example:[react_roles] Added the translation file for french
) - Click the
Propose new file
button.
I will review your translation (aka Google Translate to see if it's completely unrelated or offensive) and accept your pull request.
You may receive comments on your pull request about things to fix. If that happens, you'll have to edit the file on your fork. If you don't know how to do that, search online and if you can't find how, feel free to ask.
If your translation is accepted, thank you for helping with the translations!