aboutsummaryrefslogtreecommitdiff
path: root/conf.py
diff options
context:
space:
mode:
authorn-peugnet <n.peugnet@free.fr>2022-03-25 14:34:44 +0100
committern-peugnet <n.peugnet@free.fr>2022-03-25 14:50:57 +0100
commit5de7786306af5c66a69ff01fd4b6ceb929681a5f (patch)
treefcb839e6ac8200803778c203f2b784ba309e9c13 /conf.py
parent67f920f61571d52ed724dbffbfb41d2fe75d6872 (diff)
downloadclub1-docs-5de7786306af5c66a69ff01fd4b6ceb929681a5f.tar.gz
club1-docs-5de7786306af5c66a69ff01fd4b6ceb929681a5f.zip
better prepare gettext translations
- copy pot file in dir to add it to git repo - make sphinx cmds that build docs require %.po files - compile all messages in a single .pot - allow fuzzy messages to be used
Diffstat (limited to 'conf.py')
-rw-r--r--conf.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/conf.py b/conf.py
index 58ee832..e14ffdc 100644
--- a/conf.py
+++ b/conf.py
@@ -45,6 +45,12 @@ templates_path = ['_templates']
# Usually you set "language" from the command line for these cases.
language = 'fr'
+# Use a single POT and PO file par language.
+gettext_compact = 'package'
+
+# Display the translated string even if it is marked fuzzy.
+gettext_allow_fuzzy_translations = True
+
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.