i18ndude执行与zpt、python脚本和i18n相关的各种任务。
i18ndude的Python项目详细描述
i18ndude
内容
- 5.3.1(2019-07-30)
- 5.3.0(2019-02-07)
- 5.2.0(2018-11-09)
- 5.1.0(2018-03-23)
- 5.0.2(2018-03-12)
- 5.0.1(2018-03-05)
- 5.0.0(2018-03-05)
- 4.3(2017-07-31)
- 4.2(2017-06-21)
- 4.1(2016-12-02)
- 4.0.1(2015-12-03)
- 4.0.0(2015-12-03)
- 3.4.5(2015-11-05)
- 3.4.4(2015-11-04)
- 3.4.3(2015-09-01)
- 3.4.2(2015-07-16)
- 3.4.1(2015-06-25)
- 3.4.0(2014-11-27)
- 3.3.5(2014-08-05)
- 3.3.4(2014-07-02)
- 3.3.3(2013-11-27)
- 3.3.2(2013-11-27)
- 3.3.1(2013-10-18)
- 3.3.0(2013-10-13)
- 3.2.2(2010-12-11)
- 3.2.1(2010-10-31)
- 3.2(2010-09-04)
- 3.1.3(2010-09-04)
- 3.1.2(2010-02-14)
- 3.1.1(2009-11-22)
- 3.1(2009-10-31)
- 3.0(2008-11-13)
兼容性
i18ndude适用于python 2.7、3.6、3.7、pypypy和pypy3。 不再支持旧版本,请使用i18ndude 4.x系列 如果你需要的话。
您可以使用buildout或pip安装 i18ndude 。 使用 pip 您可能需要查看我们的 requirements.txt
Unicodeencodeerror
当运行一些 i18ndude 命令时,可能会得到一个 unicodeencodeerror 。 当 i18ndude 打印结果并重定向输出或管道输出时,这种情况尤其可能发生。 在 i18ndude 本身中,这是很难解决的,也许是不可能的。 请参阅有关stackoverflow的问题。 这个问题指向了一个解决方案,当你遇到这个问题时,你可以自己做。 在(类unix)shell中,执行以下操作:
export PYTHONIOENCODING=utf-8
这修复了在管道或重定向包含非ascii的输出时unicodeencodeer错误。 我(毛里塔尼亚)现在在我的bash个人资料中有这一行。
注意:如果您得到一个unicodedecoderror,那么"decode"而不是"encode",那么它可能需要在 i18ndude 中修复。 请随后报告。