From e4a912b6776a33d3092d70155a8a2a4a09542d7e Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Mon, 28 Mar 2022 22:17:04 +0200 Subject: 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 --- conf.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'conf.py') diff --git a/conf.py b/conf.py index 23934f4..e6b3549 100644 --- a/conf.py +++ b/conf.py @@ -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' -- cgit v1.2.3