Problem Description
The current content in the left sidebar of the Requests documentation:
is generated from sidebarlogo.html or sidebarintro.html:
|
<p> |
|
Requests is an elegant and simple HTTP library for Python, built for |
|
human beings. |
|
</p> |
|
|
|
<h3>Useful Links</h3> |
|
<ul> |
|
<li><a href="{{ pathto('user/quickstart') }}">Quickstart</a></li> |
|
<li><a href="{{ pathto('user/advanced') }}">Advanced Usage</a></li> |
|
<li><a href="{{ pathto('api') }}">API Reference</a></li> |
|
<li><a href="{{ pathto('community/updates') + '#release-history' }}">Release History</a></li> |
|
<li><a href="{{ pathto('dev/contributing') }}">Contributors Guide</a></li> |
|
|
|
<p></p> |
|
|
|
<li><a href="{{ pathto('community/recommended') }}">Recommended Packages and Extensions</a></li> |
|
|
|
<p></p> |
|
|
|
<li><a href="https://github.com/psf/requests">Requests @ GitHub</a></li> |
|
<li><a href="https://pypi.org/project/requests/">Requests @ PyPI</a></li> |
|
<li><a href="https://github.com/psf/requests/issues">Issue Tracker</a></li> |
|
</ul> |
|
<p> |
|
Requests is an elegant and simple HTTP library for Python, built for |
|
human beings. You are currently looking at the documentation of the |
|
development release. |
|
</p> |
|
|
|
<h3>Useful Links</h3> |
|
<ul> |
|
<li><a href="{{ pathto('user/quickstart') }}">Quickstart</a></li> |
|
<li><a href="{{ pathto('user/advanced') }}">Advanced Usage</a></li> |
|
<li><a href="{{ pathto('api') }}">API Reference</a></li> |
|
<li><a href="{{ pathto('community/updates') + '#release-history' }}">Release History</a></li> |
|
<li><a href="{{ pathto('dev/contributing') }}">Contributors Guide</a></li> |
|
|
|
<p></p> |
|
|
|
<li><a href="{{ pathto('community/recommended') }}">Recommended Packages and Extensions</a></li> |
|
|
|
<p></p> |
|
|
|
<li><a href="https://github.com/psf/requests">Requests @ GitHub</a></li> |
|
<li><a href="https://pypi.org/project/requests/">Requests @ PyPI</a></li> |
|
<li><a href="https://github.com/psf/requests/issues">Issue Tracker</a></li> |
|
</ul> |
While the sphinx-build -b gettext command can extract translatable strings from .rst or .md files, strings within Jinja templates cannot be extracted unless it is wrapped in {{ _('XXX') }} or {% trans %}XXX{% endtrans %}.
Problem Description
The current content in the left sidebar of the Requests documentation:
is generated from
sidebarlogo.htmlorsidebarintro.html:requests/docs/_templates/sidebarintro.html
Lines 12 to 34 in ef439eb
requests/docs/_templates/sidebarlogo.html
Lines 6 to 29 in ef439eb
While the
sphinx-build -b gettextcommand can extract translatable strings from.rstor.mdfiles, strings within Jinja templates cannot be extracted unless it is wrapped in{{ _('XXX') }}or{% trans %}XXX{% endtrans %}.