使用ikazuchi处理PO文件以翻译msgid
项目描述
ikazuchi.plugins.pofile 是一个插件,用于将PO文件翻译成具有良好参考的翻译。
ikazuchi 是一个CUI工具,旨在与其他工具一起使用。
有关更多详细信息,请参阅项目的 文档。
功能
使用Web API从GNU gettext目录将PO文件翻译成具有良好参考的翻译
设置
通过easy_install
通过buildout创建环境
$ easy_install ikazuchi.plugins.pofile
通过buildout
通过buildout创建环境
$ 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或更高版本
setuptools或distriubte
许可证
Apache License 2.0
历史
0.1.2 (2011-11-26)
使用Microsoft Translator作为默认API
0.1.1 (2011-06-06)
为pofile插件添加子解析器
0.1.0 (2011-06-03)
首次发布
待办事项
功能
术语表和模糊匹配功能
将其他po文件合并到po文件中
停止翻译过程
项目详情
下载文件
下载适合您平台的文件。如果您不确定选择哪个,请了解有关 安装包 的更多信息。
源代码分发
ikazuchi.plugins.pofile-0.1.2.tar.bz2 (12.9 kB 查看哈希值)
关闭
ikazuchi.plugins.pofile-0.1.2.tar.bz2 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | d2ad9eaf7f57c7c14fbafdbd02b066ecf1767b0796ee0887b357441c1ba05c9d |
|
MD5 | fb7b6a4e092aa5861f2382b9dd07b21a |
|
BLAKE2b-256 | 1d556540c525d4729b275a5623bc315a94ee5defb8e3483b507df327c48b8aff |