Correctly support custom gettext output templates (#12645)

Co-authored-by: Jeremy Bowman <jmbowman@alum.mit.edu>
Co-authored-by: Adam Turner <9087854+aa-turner@users.noreply.github.com>
This commit is contained in:
Jeremy Bowman
2024-08-11 15:34:04 -04:00
committed by GitHub
parent 646a5d7482
commit 0cbdd98ffb
7 changed files with 59 additions and 5 deletions

View File

@@ -119,6 +119,11 @@ section describe an easy way to translate with *sphinx-intl*.
$ make gettext
The generated pot files will be placed in the ``_build/gettext`` directory.
If you want to customize the output beyond what can be done via the
:ref:`intl-options`, the
:download:`default pot file template <../../../sphinx/templates/gettext/message.pot.jinja>`
can be replaced by a custom :file:`message.pot.jinja` file placed in any
directory listed in :confval:`templates_path`.
#. Generate po files.