aboutsummaryrefslogtreecommitdiff
path: root/contrib/tos/README
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/tos/README')
-rw-r--r--contrib/tos/README58
1 files changed, 58 insertions, 0 deletions
diff --git a/contrib/tos/README b/contrib/tos/README
new file mode 100644
index 0000000..fde5305
--- /dev/null
+++ b/contrib/tos/README
@@ -0,0 +1,58 @@
1This directory contains the terms of service (template) for exchange
2operators.
3
4
5Dependencies
6============
7
8Generating new Terms of Service requires Sphinx, LaTeX with babel
9packages for all supported languages. On Debian, you should
10at least install:
11
12$ apt install python3-sphinx sphinx-intl texlive-lang-german texlive-lang-english
13
14(NOTE: List may be incomplete.)
15
16
17Updating the Terms of Service
18=============================
19
20The master file with the Terms of service is 'tos.rst'.
21
22If you make substantial changes, you MUST change the "TOS_VERSION"
23in contrib/Makefile.am to the new Etag.
24
25To begin the translation into other languages after editing the master
26file, run
27
28$ make gettext
29
30to generate the master PO file. Then, run
31
32$ sphinx-intl update -p _build/locale/ -l de -l fr -l it
33
34to update the PO files for the various languages (extend the list of
35languages as necessary). The PO files for the translators are kept
36at locale/$LANG/LC_MESSAGES/tos.po for the language $LANG.
37
38Once all PO files have been updated with new translations, run
39
40$ make update-tos
41
42in the "contrib/" directory to generate all of the formats. The
43respective make rule calls the '../update-tos.sh' script in the
44contrib/ directory, which calls the 'Makefile' in the tos/
45directory for the various supported languages and file formats
46and then moves the generated files to the target directory
47('contrib/tos/$LANG/$VERSION.$FORMAT')
48
49
50Adding a new language
51=====================
52
53To add a new language $LANG, add $LANG to "TOS_LANGUAGES" in
54'contrib/Makefile.am' and run
55
56$ sphinx-intl update -p _build/gettext -l $LANG
57
58to generate the PO template.