Skip to main content

Utility library for i18n relied on by various Repoze packages

Project description

translationstring

A library used by various Repoze packages for internationalization (i18n) duties related to translation.

This package provides a translation string class, a translation string factory class, translation and pluralization primitives, and a utility that helps Chameleon templates use translation facilities of this package. It does not depend on Babel, but its translation and pluralization services are meant to work best when provided with an instance of the babel.support.Translations class.

Please see http://docs.repoze.org/translationstring or the docs/index.rst file in this package for the documentation.

translationstring

0.3 (unreleased)

  • Preserve default translations even if they are an empty string. This fixes problems with Chameleon being unable to determine if a translation is present or not.

0.2 (04-25-2010)

  • Add __getstate__ and __reduce__ methods to translation string to allow for pickling.

  • Fix bug in ChameleonTranslate. When i18n:translate was used in templates, a translation string was inappropriately created with a default value of the empty string. Symptom: template text would “disappear” rather than being returned untranslated.

0.1 (04-24-2010)

  • Initial release.

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

translationstring-0.3.tar.gz (23.2 kB view details)

Uploaded Source

File details

Details for the file translationstring-0.3.tar.gz.

File metadata

File hashes

Hashes for translationstring-0.3.tar.gz
Algorithm Hash digest
SHA256 ef5aff7b977b3995abd822e9eb0469b5d26ea3508f64a30b801fccd84fe02a5a
MD5 9cba042671c0cbf558faf2082b34658b
BLAKE2b-256 91157eeea439dcc83c953086a33551723fcb2518aaa120837fcee9ee644940cb

See more details on using hashes here.

Supported by

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