From 5de7786306af5c66a69ff01fd4b6ceb929681a5f Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Fri, 25 Mar 2022 14:34:44 +0100 Subject: 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 --- conf.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'conf.py') 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. -- cgit v1.2.3