Skip to main content

Translation Utility to Create Pseudo Translations of PO Files

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

potpie-0.1.1.tar.gz (21.7 kB view details)

Uploaded Source

File details

Details for the file potpie-0.1.1.tar.gz.

File metadata

  • Download URL: potpie-0.1.1.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for potpie-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0e71bd5625080fdf8903dbaf6989b8ee64c435ab4b59d62ff26789fbb92d9868
MD5 60b65dbc9aa7d6e6f7f246e329903cb1
BLAKE2b-256 97f7dfdd8cb09ac54b27160945ca487e88c9f935fa18be214486138e40815e49

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page