skillfed

translationstring

Utility library for i18n relied on by various Repoze and Pyramid packages

translationstring v1.4 2.6M downloads/30d#2,989 on PyPI27
Permissive license BSD-like (http://repoze.org/license.html) DORMANT released

What it is and what it does

translationstring is a lightweight i18n utility library used by Pylons Project packages to mark, manage, and translate text strings in Python applications. It provides a TranslationString class that wraps text with metadata (domain, default translation, message context) and a TranslationStringFactory for creating translation strings with a consistent domain. The package supports pluralization and is designed to work with Babel's translation infrastructure, though it does not depend on Babel itself.

The library is primarily used within template engines and web frameworks built on the Pylons stack. It has no runtime dependencies, making it lightweight to install. With zero known vulnerabilities and a permissive license, it is stable and safe to use, though the long dormancy since 2020 means it receives no active maintenance or updates.

Use it for:

  • Mark translatable strings in Pyramid or Pylons web applications for extraction and translation workflows.
  • Integrate translation support into templates using the package's translation utilities.
  • Manage message pluralization and context-aware translations in applications using Babel for localization.
  • Create translation string factories to enforce consistent domain naming across a codebase.
  • Support multi-language applications by preparing strings for gettext-based translation pipelines.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Provides translation string objects and factories for marking and managing translatable text in Python applications, with support for pluralization and message contexts.

Yes, if you are working within the Pylons/Pyramid ecosystem or need lightweight i18n string management without external dependencies. The package is stable and permissively licensed, with no known vulnerabilities. However, the dormant maintenance status (last release 2020-07-09) means no active support for newer Python versions or bug fixes—verify compatibility with your target Python version before relying on it in new projects.

Install

translationstring on PyPI

pip

pip install translationstring

uv

uv add translationstring

poetry

poetry add translationstring

Installing translationstring

Before you install

Low friction install with no runtime dependencies. Dormant maintenance status—last release was 2020-07-09—but the repository remains active and the package is marked Production/Stable.

License in practice

Licensed under a permissive BSD-like license (Repoze Public License), imposing no significant restrictions on use or redistribution.

Quickstart

pip install translationstring

from translationstring import TranslationString

msg = TranslationString('Hello ${name}', mapping={'name': 'World'})
print(msg)

Verify before relying

  • Whether the package works reliably with Python versions released after 2020 despite dormant maintenance status.
  • Whether Babel integration remains functional and well-tested given the long gap since last release.
  • Current compatibility with modern Python 3 versions beyond those listed in classifiers.

Package facts

License BSD-like (http://repoze.org/license.html) (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance dormant — 2,227 days since the last release
Last repo commit
First released
Downloads 2,580,811/month — #2,989 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: translationstring-1.4-py2.py3-none-any.whl

Keywords: i18n, l10n, internationalization, localization, gettext, chameleon

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: Repoze Public LicenseProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: InternationalizationTopic :: Software Development :: Libraries :: Python ModulesTopic :: Software Development :: Localization

Tags

i18n translation stringsinternationalization librarygettext translation supportpython localizationmessage translation factorypluralization supporttemplate translation utilities
i18n-localizationpylons-ecosystemgettext-integration

More Python Modules packages