Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

transpopy

Read pot files to translate strings in msgid with google translate API and save a new po file.

Build Status

Install

With PyPi

kanazuchi@FreeBSD #: virtualenv --python=python3 .
kanazuchi@FreeBSD #: source bin/activate
kanazuchi@FreeBSD #: pip3 install transpopy

With BSD pkg

kanazuchi@FreeBSD #: pkg install py36-transpopy

With GitHub

kanazuchi@FreeBSD #: git clone https://github.com/kanazux/transpopy
kanazuchi@FreeBSD #: python3 setup.py install

Usage:

transpopy -f samples/leap-seconds.pot -o newfile.po -t zh_cn -e -i -p leap-seconds to chinese language

Help:

Translate msgid from po file with google translate API

optional arguments:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  Get the POT file name.
  -o OUTPUT_FILE, --output_file OUTPUT_FILE
                        Get name to save the new PO file.
  -t TRANSLATE, --translate TRANSLATE
                        Get language to translate to.
  -i, --imprecise       Save translated texts as fuzzy(draft).
  -e, --error           Print translate errors if exist.
  -p, --print_process   Print translate process.

About

Read pot files to translate strings in msgid with google translate API and save a new po file.

Resources

License

Packages

No packages published

Languages

You can’t perform that action at this time.