1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

docs(MANTAINING): clarfiy translation update process

This commit is contained in:
Anthony Bilinski 2019-04-24 08:37:25 -07:00
parent 80e457da1d
commit 51835851b9
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -112,36 +112,21 @@ To get translations into qTox:
1. Go to `https://hosted.weblate.org/projects/tox/qtox/#repository` and lock
the repository for translations.
2. Make sure you have git setup to automatically gpg sign commits
3. In the root of the qTox repository execute the script
`tools/update-weblate.sh`
4. Check what has been changed compared to master: `git diff upstream/master`
5. Checkout a new branch with e.g. `git checkout -b update_weblate` and open
2. Make sure you have git setup to automatically gpg sign commits.
3. To update translated strings from Weblate, in the root of the qTox
repository execute the script `tools/update-weblate.sh`
4. If a new translation language has been added, update the following files:
- `CMakeLists.txt`
- `src/widget/form/settings/generalform.cpp`
- `translations/README.md`
- `translations/i18n.pri`
- `translations/translations.qrc`
5. To update translatable strings from qTox for Weblate, run
`./tools/update-translation-files.sh ALL`
6. Checkout a new branch with e.g. `git checkout -b update_weblate` and open
a Pull Request for it on Github.
6. After the Pull Request has been merged, unlock Weblate and `reset` it to
master
## Adding new translations
Files to edit when adding a new translation:
- `CMakeLists.txt`
- `src/widget/form/settings/generalform.cpp`
- `translations/README.md`
- `translations/i18n.pri`
- `translations/translations.qrc`
Follow steps for adding translations from Weblate up to step 5. Next:
1. Edit files to add translation to qTox.
2. Before committing, clean up translation from Weblate and commit the change:
```
./tools/update-translation-files.sh translations/$TRANSLATION.ts
git commit --amend translations/$TRANSLATION.ts
```
3. Commit the changes to other files adding language to qTox.
7. After the Pull Request has been merged, `reset` Weblate to master and
unlock it.
# Releases