diff options
author | n-peugnet <n.peugnet@free.fr> | 2022-03-25 14:34:44 +0100 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2022-03-25 14:50:57 +0100 |
commit | 5de7786306af5c66a69ff01fd4b6ceb929681a5f (patch) | |
tree | fcb839e6ac8200803778c203f2b784ba309e9c13 /conf.py | |
parent | 67f920f61571d52ed724dbffbfb41d2fe75d6872 (diff) | |
download | club1-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.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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. |