Mac OS X 10.8
Install Python 2.7
$ brew install python
Installation of virtualenv and virtualenvwrapper
$ pip install virtualenv virtualenvwrapper
Add the following to .zshrc or .bashrc to pass the path to virtualenvwrapper
source /usr/local/bin/virtualenvwrapper.sh
$ wget https://github.com/translate/translate/archive/1.11.0.tar.gz $ tar xzvf translate-toolkit-1.11.0.tar.bz2 $ cd translate-1.11.0
For git
$ git clone https://github.com/translate/translate.git $ cd translate
$ mkvirtualenv translate --python /usr/local/bin/python $ workon translate $ pip install -r requirements/recommended.txt $ easy_install lxml $ ./setup.py install
$ po2xliff --version po2xliff 1.11.0 $ po2xliff en_US.po en_US.xlf processing 1 files... [###########################################] 100%
Now you can convert the file.
Recommended Posts