diff options
author | n-peugnet <n.peugnet@free.fr> | 2022-03-28 22:17:04 +0200 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2022-03-28 22:17:04 +0200 |
commit | e4a912b6776a33d3092d70155a8a2a4a09542d7e (patch) | |
tree | b39e9e49757d754b6a2d2302309343ba4832c713 /conf.py | |
parent | f4800a5d80f9d654ebf3e41bb6b7c6f64bbae6bc (diff) | |
download | club1-docs-e4a912b6776a33d3092d70155a8a2a4a09542d7e.tar.gz club1-docs-e4a912b6776a33d3092d70155a8a2a4a09542d7e.zip |
fix: dirty locale files management -> use gettext
mainly get rid of sphinx intl and use genuine gettext utilities.
- move back .pot file generation from sphinx to _build
- copy .pot files from _build using xgettext (correct width and metadata)
- enforce consitent width and metadata order with Weblate using msgmerge
- Make now correctly tracks locales files dependencies
- update README with new deps and descriptions
- remove sphinx intl from deps and github action
- Sphinx get basic metadata from ENVVARS set by Make
Diffstat (limited to 'conf.py')
-rw-r--r-- | conf.py | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -17,11 +17,10 @@ import os # -- Project information ----------------------------------------------------- -project = 'CLUB1' +project = os.environ['PACKAGE'] copyright = '2022, Nicolas PEUGNET' -author = 'Nicolas PEUGNET' -version = 'main' -release = version +author = os.environ['COPYRIGHT'] +version = os.environ['VERSION'] # -- General configuration --------------------------------------------------- @@ -50,6 +49,9 @@ language = 'fr' # Set by make. languages = os.environ['LANGUAGES'].split(' ') +# Managed by make and gettext. +gettext_auto_build = False + # Use a single POT and PO file par language. gettext_compact = 'package' |