GitXplorerGitXplorer
d

potpie

public
15 stars
7 forks
2 issues

Commits

List of commits on branch master.
Unverified
1b12f25b77b8719418f88f49c45920c1eb8ee406

up version

ddstufft committed 12 years ago
Unverified
37e478bcff2a7346666fa7ced945b3eabb1074d3

fix leading/trailing newlines

ddstufft committed 12 years ago
Unverified
570bcbff9a0f073f5aea387717542ac665f1799f

add a link to Transifex

ddstufft committed 12 years ago
Unverified
2fab4164b31580fab8d4e85512cc2596c164d6c1

remove unicode characters from README

ddstufft committed 12 years ago
Unverified
4957acb0f484d7b52272808aeab1492788bac088

make the README easier to read

ddstufft committed 12 years ago
Unverified
816e15ab29b0df8d7c9b6c9a8e0041a2d9c1ea83

initial commit

ddstufft committed 12 years ago

README

The README file for this repository.

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.

.. _Transifex: https://transifex.net/