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

docs: Update instructions to pull translations

This commit is contained in:
sudden6 2018-07-01 21:14:18 +02:00
parent 2e211d4201
commit 8317f2473f
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -110,42 +110,16 @@ translations, on the other, it lessened problems that were happening with
To get translations into qTox:
1. Add Weblate: `git remote add weblate
https://hosted.weblate.org/git/tox/qtox/`
2. Fetch newest: `git fetch weblate`
3. Check what has been changed compared to master: `git log --no-merges
master..weblate/master`
4. Cherry-pick from the oldest commit.
- check if there are multiple commits from the same author for the same
translation. If there are, cherry-pick them accordingly:
```
git cherry-pick <commit1> <commit2>
```
5. If there were multiple commits, squash them into a single one, leaving only
a single `feat(l10n): …` line in the commit message.
6. Get rid of Weblate's formatting and amend the commit using
[`./tools/deweblate-translation-file.sh`], i.e.:
```
./tools/deweblate-translation-file.sh
```
7. For translations that haven't yet been cherry-picked repeat steps 4-6.
8. Once done with cherry-picking, update all translation files, so that Weblate
would get newest strings that changed in qTox:
```
./tools/update-translation-files.sh ALL
```
9. Once PR with translation gets merged, `Reset` Weblate to current `master`,
since without reset there would be a git conflict that would prevent Weblate
from getting new strings.
**It's a good idea to lock translations on Weblate while they're in merge
process, so that no translation effort would be lost when resetting Weblate.**
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
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