Skip to main content

Introduction

lingua.autotranslate is an autotranslation toolkit for .po files using Google Translate API.

Usage

To use this package you should add the following part to your buildout:

[buildout]
...
parts =
    ...
    autotranslate
...

[autotranslate]
recipe = zc.recipe.egg
eggs =
    lingua.autotranslate

When running bin/buildout it will create a new console script for you, bin/autotranslate which requires at least two parameters:

~/workspace/my.product $ bin/autotranslate -h
usage: autotranslate [-h] -i <locale> <po file> [-s LANGUAGE] [-u]

Translate Po files.

optional arguments:
  -h, --help            show this help message and exit
  -i <locale> <po file>
                        Locale and filename of po-file to process
  -s LANGUAGE           Source language to translate from.
  -u                    Force updating translations by retranslating all
                        msgids.

Example:

See translation example below.:

~/workspace/my.product $ bin/autotranslate -i de src/my/product/locales/de/LC_MESSAGES/my.product.po
[ Success ] New product -> Neues Produkt
[ Success ] Specification -> Beschreibung
[ Success ] Language -> Sprache
[ Found variable(s) ] ${back}
[ Success ] Back to product ${back} -> Zurück zum Produkt $ { back }
...

Author

Contributors

Changelog

0.2.1 (2014-03-17)

  • Update docs. [saily]

0.2 (2014-03-17)

  • Print Found variables message to inform users to validate their i18n variables, because they get translated too. You will need to manually fix them after running lingua.autotranslate. [saily]

  • Allow configurable source language to start autotranslation from languages different to English. [saily]

  • Python 2.7 ships argparse but Python 2.6 does not. Add it as a installation requirement when running on Pyton 2.6. [saily]

0.1 (2013-09-06)

  • Package created using templer [saily]

Release files for lingua.autotranslate 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lingua.autotranslate 0.2.1
File Size Uploaded
lingua.autotranslate-0.2.1.zip 18.0 kB Details

Release files / lingua.autotranslate-0.2.1.zip

Download URL lingua.autotranslate-0.2.1.zip
Size 18.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b4bce660c49ce8e546c6718de07d2ea0bd9be538c076905229d5ab408041c026
BLAKE2b-256 checksum
How to use checksums
62597ee7843261efb386029ad8550d4fa5179c58e8c5af4f7ccf7cf84d1d53d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page