我试图使用sphinx更新-p build/locale/ -l de在斯芬克斯中创建po文件。
但是,它产生的输出看起来类似于
#: ../../source/my-documentation.rst:16
msgid ""
"Far quitting dwelling graceful the likewise received building. "
"Unaffected remarkably get yet introduced excellence terminated led."
"But truth being state can she china widow."
msgstr ""我想要的是:
#: ../../source/my-documentation.rst:16
msgid ""
"Far quitting dwelling graceful the likewise received building. Unaffected remarkably get yet introduced excellence terminated led. But truth being state can she china widow."
msgstr ""有什么办法可以指定无包装选项吗?任何帮助都将不胜感激。谢谢!
发布于 2015-01-29 12:06:08
根据sphinx-intl的源代码,不可能进行配置。
你可以看到它,这里。sphinx-intl不带wrapwidth参数调用pofile函数。但是,polib库支持所需的功能,因此您可以分叉sphinx-intl,也可以对其进行猴子修补,并使用例如wrapwidth=150调用pofile函数。
发布于 2020-09-02 21:04:53
当前,有一个参数来设置po文件中行的长度:--line-width。
例如:
sphinx-intl update -p build/gettext -l es -l ja --line-width=120可以将此参数设置为非常长的数字。
这是在2019年通过增强#28实现给狮身人面像的。
https://stackoverflow.com/questions/28214115
复制相似问题