Skip to main content

translationstring

A library used by various Pylons Project 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 https://docs.pylonsproject.org/projects/translationstring/en/latest/ for the documentation.

translationstring

1.4 (2020-07-09)

  • Drop support for Python 2.6, 3.2 and 3.

  • Update license classifiers

1.3 (2014-11-05)

  • Fix Python 3-specific test failures.

  • Restore compatibility with Python 3.2.

1.2 (2014-11-04)

  • Add support for message contexts.

  • If the object passed to a TranslationStringFactory __call__ method is itself a translation string, use the passed object’s domain instead of the domain passed to the factory’s contstructor. See https://github.com/Pylons/translationstring/pull/12 .

1.1 (2012-02-08)

  • Add MANIFEST to make sure all files are present in a release. This fixes ticket 8.

1.0 (2012-02-04)

  • coerce non-string values to a string during translation, except for None.

  • Honour mapping information passed to the translator, combining it with mapping data already part of the translation string.

  • Support formatting of translation strings with %-operator.

0.4 (09-22-2011)

0.3 (06-25-2010)

  • 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.

Release files for translationstring 1.4

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

Source distribution (sdist)

Source distribution for translationstring 1.4
File Size Uploaded
translationstring-1.4.tar.gz 24.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for translationstring 1.4
File Interpreter ABI Platform
translationstring-1.4-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 39.2 kB

Release files / translationstring-1.4.tar.gz

Download URL translationstring-1.4.tar.gz
Size 24.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bf947538d76e69ba12ab17283b10355a9ecfbc078e6123443f43f2107f6376f3
BLAKE2b-256 checksum
How to use checksums
143932325add93da9439775d7fe4b4887eb7986dbc1d5675b0431f4531f560e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Release files / translationstring-1.4-py2.py3-none-any.whl

Download URL translationstring-1.4-py2.py3-none-any.whl
Size 15.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5f4dc4d939573db851c8d840551e1a0fb27b946afe3b95aafc22577eed2d6262
BLAKE2b-256 checksum
How to use checksums
3b9836187601a15e3d37e9bfcf0e0e1055532b39d044353b06861c3a519737a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

Release history Release notifications | RSS feed

This release

1.4 This release

2 release files

1.3

2 release files

1.2

1 release file

1.1

1 release file

1.0

1 release file

0.4

1 release file

0.3

1 release file

0.2

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