1
+ [ ![ Documentation Status] [ badge ]] [ docs ] [ ![ Translation Status] [ tbadge ]] [ wbetranslate ]
2
+
1
3
# Zammad admin documentation
2
4
3
5
If you want to contribute to zammad documentation you can
@@ -25,9 +27,6 @@ Thanks! ❤️ ❤️ ❤️
25
27
26
28
Zammad Team
27
29
28
-
29
- [ ![ Documentation Status] ( https://readthedocs.org/projects/zammad-admin-documentation/badge/?version=latest )] ( https://zammad-admin-documentation.readthedocs.io/de/latest/ )
30
-
31
30
## Notes on Documentation Branches and Pull Requests
32
31
33
32
Please note that this repository uses protected branches.
@@ -36,64 +35,60 @@ please use ``main`` as destination Branch.
36
35
37
36
This will ensure that your changes are available upon merge.
38
37
38
+ ## Compilation
39
+
40
+ ### Dependencies
41
+
42
+ * sphinx
39
43
40
- ## Local tests (mostly internal stuff)
44
+ ```
45
+ $ pip install sphinx sphinx-autobuild sphinx-intl sphinx_rtd_theme sphinx-tabs
46
+ ```
41
47
42
- If you want to test the doc for yourself you need a local installation of sphinx and gettext.
48
+ * gettext
43
49
44
50
```
45
- pip install sphinx sphinx-autobuild sphinx-intl sphinx_rtd_theme sphinx-version-warning
51
+ $ brew install gettext # macOS
52
+ $ sudo apt install gettext # Debian / Ubuntu
53
+ $ sudo dnf install gettext # Fedora
46
54
```
47
55
48
-
49
56
### Example for a local HTML build
50
57
51
58
```
52
59
make html
53
60
```
54
61
55
- ### Example workflow for localization using transifex
56
-
57
- If you have to work on the translations you need gettext.
62
+ ### Localization using Weblate
58
63
59
- For OS X use HomeBrew or build from source. For Linux use your package
60
- manager.
64
+ This documentation is translated via Weblate.
65
+ After changing or adding text in this documentation, updating the POT file
66
+ is required. (This is usually done by us after QA * before* merging the PR)
61
67
62
- ```
63
- brew install gettext
64
- ```
68
+ Weblate will automatically provide the translation parts in in its UI for
69
+ all available languages. If there's translation progress it will automatically
70
+ provide pull requests on this repository. 🎉
65
71
66
- The workflow itself
67
72
```
68
- # create .tx config
69
- $ tx init
70
-
71
73
# ensure clean enviroment
72
74
$ make clean
73
75
74
76
# generate the strings from the *.rst files
75
77
$ make gettext
76
78
77
- # OPTIONAL: if you have to adapt a new locale, run
78
- sphinx-intl update -p _build/locale/ -l de
79
-
80
- # update the resource files from the pot dir
81
- $ sphinx-intl update-txconfig-resources --pot-dir _build/locale --transifex-project-name zammad-admin-documentation
82
-
83
- # push to transifex (if configured)
84
- $ tx push -s
85
-
86
- # Below pull options by default ignore unreviewed (see https://docs.transifex.com/client/pull#getting-different-file-variants )
87
- # after translation pull needed languages from transifex
88
- $ tx pull -l en
89
-
90
- # build the .MO files for use with readthedocs
91
- # (After a successful build, push to this repo and readthedocs will update itself.)
92
- $ sh build_mo.sh
93
-
94
79
# manual language-based build (`_build/html/`) (for testing)
95
80
$ make -e SPHINXOPTS="-D language='de'" html
96
81
$ make -e SPHINXOPTS="-D language='en'" html
97
82
```
98
83
99
84
If you have a problem, please create an issue. Thanks.
85
+
86
+ ### Localization progress
87
+
88
+ [ ![ Translation progress] [ tprogress ]] [ wbetranslate ]
89
+
90
+ [ badge ] : https://readthedocs.org/projects/zammad-admin-documentation/badge/?version=latest
91
+ [ docs ] : https://admin-docs.zammad.org/en/latest/
92
+ [ tbadge ] : https://translations.zammad.org/widgets/documentations/-/admin-documentation/svg-badge.svg
93
+ [ wbetranslate ] : https://translations.zammad.org/projects/documentations/admin-documentation/
94
+ [ tprogress ] : https://translations.zammad.org/widgets/documentations/-/admin-documentation/multi-auto.svg
0 commit comments