Skip to main content

pyramid_localize provides translation methods for pyramid, and means to reload translations without stopping the application

Project description

pyramid_localize

Latest PyPI version Documentation Status Wheel Status Supported Python Versions License

pyramid_localize is a pyramid extension providing ready-to-use, translation functionality for your pyramid based projects. All you need is to add Babel, and add some configuration. localize provides also a web interface that allows you to reload translations live, without reloading application.

Package resources

Instalation:

pip install pyramid_localize

or add pyramid_localize to your project requirements.

Release

Install pipenv first, Then run:

pipenv run tbump [NEW_VERSION]

CHANGES

1.0.2 (2022-11-21)

Miscellaneus

  • Add towncrier to manage CHANGES.rst automatically. (#193)

  • Migrate version bumping tool to tbump (#403)

unreleased

  • [enhancement] Support Python 3.11

1.0.1

  • [packaging] use setup.cfg to define package metadata nad options

1.0.0

  • [dropped deprecation] removed request.locale in favour of pyramid’s request.locale_name

  • [breaking] Removed dependency on tzf.pyramid_yml. Now all settings should be set in the standard ini file.

  • [enhancement] Drop support for python 2

  • [dependency] Require pycountry at minimum 18.12.8, due to API change

  • [functionality] Language object’s name and native_name will filled automatically on language creation from pycountry [rmed]

0.1.0

  • weaker pyramid_yml requirements. Use registry['config'] instead of request.config which gets added only when explicitly including tzf.pyramid_yml package.

  • deprecated request.locale in favour of request.locale_name delivered by Pyramid 1.5

  • moved locale negotiator into it’s own submodule

backward incompatible

  • required cookie name changed to _LOCALE_ to be consistent with other places

  • fixed a typo from catalog to catalogue

tests

  • refactor tests to pytest

  • introduced pylama checks for:
    • pep8

    • pyflakes

    • pep257

    • mccabe

  • license information

  • requires at least pyramid 1.5a1 (rely on default localizer reify method)

  • py3 compatibility (require at least babel 1.0)

  • locale negotiator looks first for request attribute _LOCALE_

  • added pyramid_mako dependency (required by pyramid 1.5a2 changes)

0.0.5

  • fixes in catalog/index template [zusel, fizyk]

  • destination path added in translation_dirs as a translation source as well [fizyk]

0.0.4

  • fix issue with translation files path beeing not related to cwd [fizyk]

0.0.2

  • fixed MANIFEST.in [fizyk]

0.0.1

  • initial release [fizyk]

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

pyramid_localize-1.0.2.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

pyramid_localize-1.0.2-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file pyramid_localize-1.0.2.tar.gz.

File metadata

  • Download URL: pyramid_localize-1.0.2.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for pyramid_localize-1.0.2.tar.gz
Algorithm Hash digest
SHA256 24ee9effeb11aa2a25677c0e604f9cb0af42fe0db2cd66e6af73984be461e343
MD5 add127339a156561c049b80a94ce5d17
BLAKE2b-256 f3fc8950e620829442c2a88762de3e8bd77d7a928fe4326ab698864dacf5c9f6

See more details on using hashes here.

File details

Details for the file pyramid_localize-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pyramid_localize-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 71c1e0adb2401b3493e25398c1a1ade8bd0cb5949df5b3a6c90e0bf34dbce63b
MD5 ca775ca4936b83f64324acb710741d1f
BLAKE2b-256 13463dcc78505d8c8598b3259cad6cd7cedfbcedbb9a2353306bfc53d89e5158

See more details on using hashes here.

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