-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add gettext target to documentation's Makefile #119009
Labels
type-feature
A feature request or enhancement
Comments
rffontenelle
changed the title
Add gettext target to documetnation's Makefile
Add gettext target to documentation's Makefile
May 13, 2024
hugovk
pushed a commit
that referenced
this issue
May 15, 2024
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
May 15, 2024
(cherry picked from commit fb0cf7d) Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
May 15, 2024
(cherry picked from commit fb0cf7d) Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
This was referenced May 15, 2024
hugovk
pushed a commit
that referenced
this issue
May 15, 2024
hugovk
pushed a commit
that referenced
this issue
May 15, 2024
estyxx
pushed a commit
to estyxx/cpython
that referenced
this issue
Jul 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature or enhancement
Proposal:
As some may know already, Sphinx's gettext builder is used to extract strings from the docs and store them in message catalog templates (pot files).
Currently there is no straightforward
make gettext
command to generate pot files, so the language teams need to run commands like:sphinx-build -b gettext -D gettext_compact=0 . locales/pot
or via
make
command using doc’s Makefile:make build BUILDER=gettext SPHINXOPTS='-D gettext_compact=0'
(On a side note, the first command doesn’t generate ‘changelog.pot’.)
In my personal opinion, having a gettext target would simplify the process, reducing the complexity of the command construction and uniformizing the outputs. It would also be a small step to simplifying the setup for new teams.
Having a gettext target would allow to simply run
make gettext
and have the pot files inbuild/gettext
directory. See output:Has this already been discussed elsewhere?
I have already discussed this feature proposal on Discourse
Links to previous discussion of this feature:
https://discuss.python.org/t/add-gettext-builder-as-target-for-docs-makefile/53229
Linked PRs
The text was updated successfully, but these errors were encountered: