Here are the rules if you want to contribute to this repository.
- You should first open an issue describing the changes you want. You should also mention that you want to open a pull request.
- One feature per issue/PR. It makes reviewing and merging easier.
- When writing code, make sure to follow the style guide.
It's basically this but with a few changes.
- Use snake_case for variable names, functions and signals.
- Signals should be in the past tense.
- Nodes, classes and file names should use PascalCase.
- Use 2 newlines between functions, unless they are short.
- Use static typing as much as you can.
- Open an issue with the
localization
label. - Download this spreadsheet and add your translations.
- Export to CSV. I recommend Google Sheets or LibreOffice. Microsoft Excel doesn't support UTF-8 encoding.
- Fork this repository and then clone your fork. If you don't want to clone it or download Godot, you can skip steps 7 and 8 and modify these files manually:
languages/text.csv
,languages/text.csv.import
andproject.godot
. See this commit and this one (ignore line 87). - Replace
languages/text.csv
with the file you exported. - Open the project with the Godot version mentioned in this file.
- In the top left, Project > Project Settings > Localization > Add > Select the language you added.
- Commit and push the changes to your fork.
- That's it. Now all you have to do is open a Pull Request which mentions that it fixes the issue you opened (e.g. Fixes #10).
- Optional: If you want to update the translation whenever there are changes, I suggest subscribing to this discussion.