@@ -4,12 +4,8 @@ If you want to contribute to the Zammad documentation you can edit the rst files
4
4
5
5
We take care about the translation part, so please don't change anything else whithin the repository. These changes would be discarded anyway ;)
6
6
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!
13
9
14
10
## ReStructuredText markup
15
11
@@ -52,28 +48,48 @@ brew install gettext
52
48
The workflow itself
53
49
```
54
50
# create .tx config
51
+ ```
55
52
tx init
53
+ ```
56
54
# or if you just want to update a ressource
55
+ ```
57
56
tx set --source -r <project_slug.resource_slug> -l <lang > <file >
58
57
59
58
make clean
60
-
59
+ ```
61
60
# this will generate the strings from the *.rst files
61
+ ```
62
62
make gettext
63
-
63
+ ```
64
64
# this will generate the locales (DE|EN)
65
+ ```
65
66
sphinx-intl update -p _ build/locale/ -l de -l en
67
+ ```
66
68
67
69
# this will update the resource files from the pot dir
70
+ ```
68
71
sphinx-intl update-txconfig-resources --pot-dir _ build/locale --transifex-project-name zammad-user-documentation
72
+ ```
69
73
70
74
# push to transifex (if configured)
75
+ ```
71
76
tx push -s
77
+ ```
72
78
73
79
# after translation pull needed languages from transifex
80
+ ```
74
81
tx 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.
75
91
76
- # manual language-based build (_build/html/)
92
+ # manual language-based build (_build/html/) (for testing)
77
93
make -e SPHINXOPTS="-D language='de'" html
78
94
make -e SPHINXOPTS="-D language='en'" html
79
95
0 commit comments