Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Translation Utility to Create Pseudo Translations of PO Files

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 potpie
Octocat-spinner-32 LICENSE
Octocat-spinner-32 MANIFEST.in
Octocat-spinner-32 README.rst
Octocat-spinner-32 setup.py
README.rst

Potpie: Pseudo Po Translations

Potpie is a GPL Licensed cli wrapper around the Psuedo Translations available from Transifex pseudo translations. The available types are brackets, unicode, planguage, extend, and mixed.

Installation

To install requests, simply:

$ pip install potpie

Or, if you absolutely must:

$ easy_install potpie

But, you really shouldn't do that.

Usage

To create a pseudo translated po file, simply:

$ potpie [--type] infile outfile

An example for a Django project might be:

$ potpie locale/en/LC_MESSAGES/django.po locale/xx_pseudo/LC_MESSAGES/django.po

The default type is mixed, if you wish to use another type simplify specify it as an option like:

$ potpie --type brackets locale/en/LC_MESSAGES/django.po locale/xx_pseudo/LC_MESSAGES/django.po

Types

Brackets
Adds square brackets around the string (e.g. [translated text])
Unicode
Converts all characters into look alike unicode characters
PLanguage

Increases the length of a string by around 30-50% by replacing the vowels with unicode chars that look alike.

This is based on a P-language, which is a simple vowel-extending language.

Extend:
Increases the length of a string by around 20-700% by appending special chars (Greek, Chinese, etc) to the end of the string.
Mixed:
Combines Extend, Unicode and Brackets into one Type.
Something went wrong with that request. Please try again.