chiark / gitweb /
use Babel to compile localizations and include in source tarball
[fdroidserver.git] / setup.cfg
1
2 [aliases]
3 release = register compile_catalog sdist upload --sign
4
5 # All this below is for Babel config.  Ideally we would only use
6 # Babel, but it is still missing some key features that gettext gives
7 # us.  So for now, this Babel setup is just to make it easy for Python
8 # people who are used to it.  Babel is missing:
9 #
10 # * properly tagging various Python formats in the comments
11 # * --add-location=file
12 # * --join-existing
13 # * --sort-output on update
14 #
15 # So for now the canonical way to update the template and translation
16 # files is: `make -C locale`
17
18 [extract_messages]
19 keywords = _
20 charset = UTF-8
21 sort_output = true
22 no_location = true
23 add-comments = true
24 output_file = locale/fdroidserver.pot
25 msgid-bugs-address = https://gitlab.com/fdroid/fdroidserver/issues
26
27 [update_catalog]
28 output_dir = locale
29 input_file = locale/fdroidserver.pot
30
31 [init_catalog]
32 input_file = locale/fdroidserver.pot
33 output_dir = locale
34
35 [compile_catalog]
36 domain = fdroidserver
37 directory = locale