Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i18n: Retrieve localized images from godot-docs-l10n
The localization for this documentation is handled via the godot-docs-l10n repository at: https://github.com/godotengine/godot-docs-l10n Sphinx supports localization of images by automatically looking up files with a language code suffix (e.g. `myimage.zh_CN.png` as an override for `myimage.png` when using `zh_CN` locale), but only in the same location as the original file. We want to host our localized images together with the PO files in the l10n repo, so we use a glorious hack to redefine Sphinx's `sphinx.util.i18n.get_image_filename_for_language` method in a way that fits our needs. Fixes godotengine/godot-docs-l10n#5. Co-authored-by: BinotaLIU <binota@binota.org> Co-authored-by: Gilles Roudiere <gilles.roudiere@gmail.com>
- Loading branch information