Skip to main content

Package to provide 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 status

Tests Coverage Status Requirements Status

Package resources

Instalation:

pip install pyramid_localize

or add pyramid_localize to your setup.py requirements.

Tests:

You’ll need: packages defined in extra_requires[tests] to run tests, and then:

python setup.py nosetests

CHANGES

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-0.1.0.tar.gz (22.9 kB view details)

Uploaded Source

Built Distributions

pyramid_localize-0.1.0-py3.4.egg (40.9 kB view details)

Uploaded Source

pyramid_localize-0.1.0-py3.3.egg (41.4 kB view details)

Uploaded Source

pyramid_localize-0.1.0-py2.py3-none-any.whl (23.2 kB view details)

Uploaded Python 2 Python 3

pyramid_localize-0.1.0-py2.7.egg (39.9 kB view details)

Uploaded Source

pyramid_localize-0.1.0-py2.6.egg (39.9 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for pyramid_localize-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e38f38be7b05115715ba3790209db47836940afe3a7e6a64246fb40b2cc1a4f9
MD5 0a0b032ab4a5623778a55f263a9601c7
BLAKE2b-256 9179bcdf906548c535da8287158434e90c1fd2101ab47443c412576d6d3cae1b

See more details on using hashes here.

File details

Details for the file pyramid_localize-0.1.0-py3.4.egg.

File metadata

File hashes

Hashes for pyramid_localize-0.1.0-py3.4.egg
Algorithm Hash digest
SHA256 bd1de39ec259b6d8d30c989606600370b4ecb4a96beaf6adb711e7715e517332
MD5 770172801d19d0567c54cd23ced43b00
BLAKE2b-256 86f73aaf0f48dccdb1ae2385d41236ed955dc7b77c2578ced7a408006f3a78ed

See more details on using hashes here.

File details

Details for the file pyramid_localize-0.1.0-py3.3.egg.

File metadata

File hashes

Hashes for pyramid_localize-0.1.0-py3.3.egg
Algorithm Hash digest
SHA256 5e0b82852af16c5aef0261acbed592640e7bf92155eea5ba1300ab83ea5dee9f
MD5 475443e1d445f38217fa1d643283bded
BLAKE2b-256 fa174b57c0b08cbb19b402838f37d6d428077453f22a2e5d9fa52497554ea926

See more details on using hashes here.

File details

Details for the file pyramid_localize-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pyramid_localize-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fa2298bfb30e17ca3f33b8805a5ba58617e4c75237b1f4883d12cbe5eee2434b
MD5 9fe5bd9d9485ae47045e4fa5524c274a
BLAKE2b-256 f56572e85fc470fb1b297dc09752c1a619db9d310c040974c6cec09e7c236915

See more details on using hashes here.

File details

Details for the file pyramid_localize-0.1.0-py2.7.egg.

File metadata

File hashes

Hashes for pyramid_localize-0.1.0-py2.7.egg
Algorithm Hash digest
SHA256 2933dc28bcb6baa82aff5fb3d198e711a45ecc8f6d11072fa414bc82a45a9093
MD5 dbad5a0b82d0c5234876ee4c9d7c8868
BLAKE2b-256 101c85fc5df61cbc082dfefc587bc3b1ebf32a7f18842adf20916f48ae5b33bc

See more details on using hashes here.

File details

Details for the file pyramid_localize-0.1.0-py2.6.egg.

File metadata

File hashes

Hashes for pyramid_localize-0.1.0-py2.6.egg
Algorithm Hash digest
SHA256 3151a3c55ef340ec9dc33172ca6ccb99fe5a2cbf7a4ff8a7107b5d7ec9297738
MD5 31700c5e5137950c39c463eeaca83ac3
BLAKE2b-256 ee283c1ca8757fd491e6ba1cff6cd5f85284a3f727ee8940b016e48ec68c8dce

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