与Ikazuchi处理PO文件以翻译msgid
ikazuchi.plugins.pofile的Python项目详细描述
ikazuchi.plugins.pofile 是用于ikazuchi传输的插件 采购订单文件与良好的参考。
由于Ikazuchi是CUI工具,因此它打算与其他工具一起使用。
有关详细信息,请参见项目documentation。
功能
- 翻译gnu gettext目录名为po file,并从web api中获得良好的引用
设置
通过简易安装
创造环境:
$ easy_install ikazuchi.plugins.pofile
通过构建
创造环境:
$ hg clone https://bitbucket.org/t2y/ikazuchi.plugins.pofile $ cd ikazuchi.plugins.pofile $ python bootstrap.py -d $ bin/buildout
用法
使用ikazuchi命令翻译po文件:
$ ikazuchi pofile examples/short_test.po msgid: ikazuchi translation reference(Google): [Actually, translated sentence] Input:
显示可用的插件:
$ ikazuchi -h usage: ikazuchi [-h] {rstfile,pofile,normal} ... positional arguments: {rstfile,pofile,normal} available plugins. 'normal' means ikazuchi's standard feature so it can be abbreviated optional arguments: -h, --help show this help message and exit
显示pofile插件帮助:
$ ikazuchi pofile -h usage: ikazuchi pofile [-h] [-a API] [-e ENCODING] [-f LANG] [-q] [-t LANG] [--version] po_file positional arguments: po_file target po file optional arguments: -h, --help show this help message and exit -a API, --api API APIs are ['google', 'microsoft'] -e ENCODING, --encoding ENCODING input/output encoding -f LANG, --from LANG original language -q, --quiet not to show original sentence to stdout -t LANG, --to LANG target language to translate --version show program's version number and exit
要求
- python 2.6或更高版本
- Ikazuchi 0.5.1或更高版本
- polib 0.5.5或更高版本
- 设置工具或发行版
许可证
apache许可证2.0
历史记录
0.1.2(2011-11-26)
- 使用Microsoft Translator作为默认API
0.1.1(2011-06-06)
- 为pofile插件添加子parser
0.1.0(2011-06-03)
- 首次发布
待办事项
函数
- 词汇表和模糊匹配函数
- 将其他采购订单文件合并到采购订单文件中
- 停止翻译过程