@@ -4,12 +4,8 @@ If you want to contribute to the Zammad documentation you can edit the rst files
44
55We take care about the translation part, so please don't change anything else whithin the repository. These changes would be discarded anyway ;)
66
7- Note:
8- At the moment we only have a german version. We are working on an english version and will change the default later.
9-
10- ## Documentation
11-
12- Zammad hosts a searchable version of this documentation at https://docs.zammad.org
7+ ## Note:
8+ ** Please modify only * .rst files** the * .PO and * .MO files are autogenerated!
139
1410## ReStructuredText markup
1511
@@ -52,28 +48,48 @@ brew install gettext
5248The workflow itself
5349```
5450# create .tx config
51+ ```
5552tx init
53+ ```
5654# or if you just want to update a ressource
55+ ```
5756tx set --source -r <project_slug.resource_slug> -l <lang > <file >
5857
5958make clean
60-
59+ ```
6160# this will generate the strings from the *.rst files
61+ ```
6262make gettext
63-
63+ ```
6464# this will generate the locales (DE|EN)
65+ ```
6566sphinx-intl update -p _ build/locale/ -l de -l en
67+ ```
6668
6769# this will update the resource files from the pot dir
70+ ```
6871sphinx-intl update-txconfig-resources --pot-dir _ build/locale --transifex-project-name zammad-user-documentation
72+ ```
6973
7074# push to transifex (if configured)
75+ ```
7176tx push -s
77+ ```
7278
7379# after translation pull needed languages from transifex
80+ ```
7481tx pull -l en
82+ ```
83+
84+ # build the .MO files for use with readthedocs
85+
86+ ```
87+ sh build_mo.sh
88+ ```
89+
90+ After a successful build, push to this repo and readthedocs will update itself.
7591
76- # manual language-based build (_build/html/)
92+ # manual language-based build (_build/html/) (for testing)
7793make -e SPHINXOPTS="-D language='de'" html
7894make -e SPHINXOPTS="-D language='en'" html
7995
0 commit comments