sphinx-intl | Sphinx utility that make it easy to translate and to apply translation | Translation library
kandi X-RAY | sphinx-intl Summary
kandi X-RAY | sphinx-intl Summary
Sphinx utility that make it easy to translate and to apply translation.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Read a config file
- Compile a script file
- Convert a Python file to a Python source tree
- Add a tag
sphinx-intl Key Features
sphinx-intl Examples and Code Snippets
Community Discussions
Trending Discussions on sphinx-intl
QUESTION
I've a few python projects that all depends on the same core project. I've setup documentation for all of these with sphinx so that all subprojects include the documentation written in the core project + each subprojects own documentation.
This is done by simply adding a symbolic link from the subproject's documentation directory to the core projects documentation directory:
...ANSWER
Answered 2018-Feb-20 at 12:46I think your project structure doesn't work well for i18n of sphinx because:
/path/to/subproject/a/docs
expects locale files like:index.po
andcore.po
./path/to/subproject/a/docs/core/locale
providesindex.po
instead ofcore.po
I think that you can get the expected behavior if you set it like the following:
- set
gettext_compact = True
to all ofconf.py
. symlink like below:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sphinx-intl
You can use sphinx-intl like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page