Skip to content
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

not recognized by sphinx gettext? #95

Open
ferrine opened this issue Jun 26, 2023 · 0 comments · May be fixed by #96
Open

not recognized by sphinx gettext? #95

ferrine opened this issue Jun 26, 2023 · 0 comments · May be fixed by #96

Comments

@ferrine
Copy link

ferrine commented Jun 26, 2023

I ran into troubles translating the elements created by this extension, running make gettext did not output any of the text elements in carousel container

Steps to reproduce

  1. Install all the docs dependencies
poetry env use python3.10
poetry install --with dev
poetry shell
pip install -e .
  1. go to docs cd docs
  2. run sphinx-build -M gettext "." "build"
  3. Verify missing translations (no .//build/gettext/usage.pot)
$ grep 'Title and Description' -R ./
.//extended_features.rst:        Title and Description
.//extended_features.rst:            Title and Description
.//native_features.rst:        Title and Description
.//native_features.rst:            Title and Description
.//usage.rst:        Title and Description
.//usage.rst:                    Title and Description
.//usage.rst:            Title and Description
.//usage.rst:            Title and Description
.//usage.rst:        Title and Description
.//usage.rst:                    Title and Description
.//usage.rst:            Title and Description
.//usage.rst:            Title and Description
Binary file .//build/gettext/.doctrees/usage.doctree matches
Binary file .//build/gettext/.doctrees/native_features.doctree matches
Binary file .//build/gettext/.doctrees/environment.pickle matches
Binary file .//build/gettext/.doctrees/extended_features.doctree matches

And verify the expected pattern of grep

$ grep 'Captions are hidden on mobile viewports' -R ./
.//usage.rst:    Captions are hidden on mobile viewports. A workaround is to use
.//build/gettext/usage.pot:msgid "Captions are hidden on mobile viewports. A workaround is to use :ref:`show_captions_below <extended_features:Captions Below>`."
@ferrine ferrine linked a pull request Jun 30, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant