Skip to content

Commit b798b4e

Browse files
committed
add Add translation and Synchronize with Transifex sections
1 parent 15c74a8 commit b798b4e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

docs/translation.md

+29
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,35 @@ Documentation:
5555
[repodata]: https://github.com/creativecommons/cc-legal-tools-data
5656

5757

58+
## Add translation
59+
60+
1. Add language to appropriate resource in Transifex
61+
2. Ensure language is present in Django
62+
- If not, update `cc_legal_tools/settings/base.py`
63+
3. Add objects for new language translation using the `add_objects` management
64+
command.
65+
- Examples:
66+
```shell
67+
docker compose exec app ./manage.py add_objects -v2 --licenses -l tlh
68+
```
69+
```shell
70+
docker compose exec app ./manage.py add_objects -v2 --zero -l tlh
71+
```
72+
4. Synchronize repository Gettext files with Transifex
73+
74+
75+
## Synchronize with Transifex
76+
77+
- **TODO** document processes of synchronizing the repository Gettext files
78+
with Transifex, including the following management commands:
79+
- `locale_info`
80+
- `normalize_translations`
81+
- `compare_translations`
82+
- `pull_translation`
83+
- `push_translation`
84+
- `compilemessages`
85+
86+
5887
## Check for translation updates
5988

6089
> :warning: **This functionality is currently disabled.**

0 commit comments

Comments
 (0)