Skip to content

Commit d6e355a

Browse files
committed
updated readme
1 parent 7ef0355 commit d6e355a

File tree

2 files changed

+26
-10
lines changed

2 files changed

+26
-10
lines changed

README.md

+25-9
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,8 @@ If you want to contribute to the Zammad documentation you can edit the rst files
44

55
We 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
5248
The workflow itself
5349
```
5450
# create .tx config
51+
```
5552
tx init
53+
```
5654
# or if you just want to update a ressource
55+
```
5756
tx set --source -r <project_slug.resource_slug> -l <lang> <file>
5857

5958
make clean
60-
59+
```
6160
# this will generate the strings from the *.rst files
61+
```
6262
make gettext
63-
63+
```
6464
# this will generate the locales (DE|EN)
65+
```
6566
sphinx-intl update -p _build/locale/ -l de -l en
67+
```
6668
6769
# this will update the resource files from the pot dir
70+
```
6871
sphinx-intl update-txconfig-resources --pot-dir _build/locale --transifex-project-name zammad-user-documentation
72+
```
6973
7074
# push to transifex (if configured)
75+
```
7176
tx push -s
77+
```
7278
7379
# after translation pull needed languages from transifex
80+
```
7481
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.
7591
76-
# manual language-based build (_build/html/)
92+
# manual language-based build (_build/html/) (for testing)
7793
make -e SPHINXOPTS="-D language='de'" html
7894
make -e SPHINXOPTS="-D language='en'" html
7995

build_mo.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/bin/sh
22
for langfile in `find locale -name "*.po"`
33
do
44
subdir=`dirname $langfile`

0 commit comments

Comments
 (0)