与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)

  • 首次发布

待办事项

函数

  • 词汇表和模糊匹配函数
  • 将其他采购订单文件合并到采购订单文件中
  • 停止翻译过程

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
面向java语句的方法与面向表达式的方法   密码学如何在java中为json对象签名?   是否可以通过java程序知道给定卡夫卡消费群体的消费偏移量?   打印字符时出现java未知问号   java为JFrame设置背景色   在ubuntu中检查java版本时linux权限被拒绝   如何用java创建xml模式   java无法在远程服务器上运行Vaadin应用程序   java智能垃圾收集?   java如何在SpringMVC中设置缓存头?   在unix计算机上运行java应用程序a:>签名以输入内容   Java、Apache Commons配置XML属性   使用ArrayList调用Java未经检查的方法   在文本文件中查找并替换单词(Java GUI)   java Android Studio无法检测到JDK7或更新版本   java从socket的有效负载获取事件消息   安卓中java调用子类方法   java如何通过点击超链接来运行jar文件(Firefox)