Closed minhoryang closed 4 years ago
Thanks for reporting, ping @shimizukawa
Thanks for transifex fix. I am not well aware of the Sphinx release process and whether this will propagate to next bugfix release without further intervention or only to next major release. Besides, I have noticed problems currently with translated strings in various languages where compiling catalogs failed due to mismatch between original and translated strings, for example:
error: sphinx/locale/fr/LC_MESSAGES/sphinx.po:1285: positional format placeholders are unbalanced
error: sphinx/locale/fr/LC_MESSAGES/sphinx.po:2420: positional format placeholders are unbalanced
compiling catalog sphinx/locale/fr/LC_MESSAGES/sphinx.po to sphinx/locale/fr/LC_MESSAGES/sphinx.mo
and then I fixed the above upstream at transifex for French. However the problematic translations where time-stamped some months ago thus I don't know why the problem was not seen before.
Other problems (this was done at my locale with your Korean fix already pulled):
$ python setup.py compile_catalog
running compile_catalog
...
error: sphinx/locale/fr/LC_MESSAGES/sphinx.po:1285: positional format placeholders are unbalanced
error: sphinx/locale/fr/LC_MESSAGES/sphinx.po:2420: positional format placeholders are unbalanced
compiling catalog sphinx/locale/fr/LC_MESSAGES/sphinx.po to sphinx/locale/fr/LC_MESSAGES/sphinx.mo
...
error: sphinx/locale/ja/LC_MESSAGES/sphinx.po:905: placeholders are incompatible
error: sphinx/locale/ja/LC_MESSAGES/sphinx.po:1271: placeholders are incompatible
error: sphinx/locale/ja/LC_MESSAGES/sphinx.po:1280: positional format placeholders are unbalanced
error: sphinx/locale/ja/LC_MESSAGES/sphinx.po:2415: incompatible format for placeholder 1: 'r' and 's' are not compatible
compiling catalog sphinx/locale/ja/LC_MESSAGES/sphinx.po to sphinx/locale/ja/LC_MESSAGES/sphinx.mo
compiling catalog sphinx/locale/ko/LC_MESSAGES/sphinx.po to sphinx/locale/ko/LC_MESSAGES/sphinx.mo
...
error: sphinx/locale/zh_CN/LC_MESSAGES/sphinx.po:402: incompatible format for placeholder 1: 'r' and 's' are not compatible
error: sphinx/locale/zh_CN/LC_MESSAGES/sphinx.po:3203: positional format placeholders are unbalanced
compiling catalog sphinx/locale/zh_CN/LC_MESSAGES/sphinx.po to sphinx/locale/zh_CN/LC_MESSAGES/sphinx.mo
compiling catalog sphinx/locale/zh_TW/LC_MESSAGES/sphinx.po to sphinx/locale/zh_TW/LC_MESSAGES/sphinx.mo
Compiling failed.
The fr
issues I have fixed at transifex but there are apparently ja
and zh_CN
issues.
As said I am not familiar with release process regarding internationalization, please wait for competent maintainer.
For example at https://github.com/sphinx-doc/sphinx/blob/c7fd4cc82701baf26e1f2a4cc5812b97e91374d3/sphinx/locale/ja/LC_MESSAGES/sphinx.po#L903-L906
The %
in translated string is wrong Unicode percent sign in place of %
. It could be at transifex the %r
place holder got somehow not distinguished from plain text. (looks to me for French as having been the case)
I also fixed Japanese translations on transifex. And fetch them all via #6823.
Thank you for reporting. We'll ship bugfix release soon (maybe after #6821 fixed).
Thanks for applying this patch early with v2.2.2.
@tk0miya Sorry for bothering again. I missed one more typo error during translation.
Exception occurred:
File "/Users/minhoryang/.anyenv/envs/pyenv/versions/3.7.4/envs/3.7.4-konlpy/lib/python3.7/site-packages/sphinx/config.py", line 482, in check_confval_types
default=type(default)))
KeyError: 'current '
It needs to reopen by following changes required:
{current .__name__}
{current.__name__}
(I applied this to Transifex.)
Describe the bug
latex_show_urls = True
in configuration.ValueError: Single '}' encountered in format string
To Reproduce Steps to reproduce the behavior:
But
LANG=en_US.UTF-8
andLANG=C
worked well.Expected behavior Generate html well without error.
Your project
Screenshots If applicable, add screenshots to help explain your problem.
Environment info
Additional context
latex_show_urls
can beTrue
with "backwards compatibility"-helpProblem lives here: https://github.com/sphinx-doc/sphinx/blob/34acdc37aaa7a07bbd3792cf8836eca2e42d1cdd/sphinx/locale/ko/LC_MESSAGES/sphinx.po#L235-L239
Blamed: https://github.com/sphinx-doc/sphinx/commit/e02af7f9600e967660ff1ab6b0a721f159703dea (>= 2.0.0)
My transifex username: https://www.transifex.com/user/profile/minhoryang/