sphinx-doc / sphinx-intl

A Sphinx utility that make it easy to translate and to apply translations.
https://sphinx-intl.readthedocs.io/
BSD 2-Clause "Simplified" License
74 stars 38 forks source link

Figure numbering not localised #44

Closed hocjordan closed 4 years ago

hocjordan commented 4 years ago

Hi guys,

I'm trying to localise a document from English into Japanese. In general it's looking good but the auto-numbered figures end up formatted "Fig. 3.3ロボット" and ideally I would prefer them to be "図3.3: ロボット". The same is true for the output of a naive :numref: call. Is there any functionality that would allow me to change this behaviour? For example, a localisation config I've missed, or a way of setting a language-specific style file? Would it work to use a glossary?

Any help would be greatly appreciated!

All the best, Harry Jordan

hocjordan commented 4 years ago

Fixed: this was due to outdated versions of python3-sphinx & sphinx-intl, after installing them from an apt package in Ubuntu 20.04. Using sphinx-intl 2.0.1 fixed the issue.