我正在尝试使用sphinx创建po文件 sphinx-intl update -p build / locale / -l de。
但是,它产生的输出看起来像
#: ../../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 ""
有什么方法可以指定无包装选项吗? 任何帮助将不胜感激。谢谢!
答案 0 :(得分:0)
根据sphinx-intl
的源代码,无法配置。
你可以看到它here。 sphinx-intl
在没有pofile
参数的情况下调用wrapwidth
函数。但是,polib库支持您所需的内容,因此您可以分叉sphinx-intl
或对其进行修补,并使用例如pofile
调用wrapwidth=150
函数。 {{1}}
答案 1 :(得分:0)