Skip to content

Add Sphinx i18n support#139

Open
m-shibata wants to merge 2 commits intoubuntu:mainfrom
m-shibata:docs/add-sphinx-intl
Open

Add Sphinx i18n support#139
m-shibata wants to merge 2 commits intoubuntu:mainfrom
m-shibata:docs/add-sphinx-intl

Conversation

@m-shibata
Copy link
Copy Markdown

This PR adds basic support for translating the documentation using sphinx-intl.

It introduces the necessary configuration and a minimal workflow for maintaining .po files and building language-specific documentation.

This is intended as a first step toward multi-language support (e.g. Japanese). Further improvements and actual translations can be added incrementally.

Please let me know if you would like any changes.

Related to #138

- enable gettext-based internationalization in Sphinx
- add locale/ directory for translation files
- add Makefile target (update-po) to generate/update .po files
- support multi-language builds via DOCS_LANG
- prepare structure compatible with Read the Docs translations

This introduces a standard workflow:

1. update .po files from source documents
2. edit translations under locale/<lang>/LC_MESSAGES/
3. build docs per language

No functional changes to existing English documentation.
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 this pull request may close these issues.

1 participant