I was fixing the warnings for zh_CN of https://github.com/sphinx-doc/sphinx-doc-translations, met this:
Run cd locales/zh_CN/LC_MESSAGES && sphinx-lint
Error: extdev/domainapi.po:386: Unnecessary parentheses in ':meth:`Domain.get_objects()`' (unnecessary-parentheses)
Error: Process completed with exit code 1.
If delete the mentioned parentheses, sphinx-build will complain:
C:\Users\Administrator\AppData\Local\Programs\Python\Python313\Lib\site-packages\sphinx\domains\__init__.py:docstring of sphinx.domains.ObjType:9: WARNING: inconsistent term references in translated message. original: [':meth:`Domain.get_objects()`'], translated: [':meth:`Domain.get_objects`'] [i18n.inconsistent_references]
So who to surrender, I guess sphinx-lint ?
I was fixing the warnings for zh_CN of https://github.com/sphinx-doc/sphinx-doc-translations, met this:
If delete the mentioned parentheses, sphinx-build will complain:
So who to surrender, I guess
sphinx-lint?