Skip to main content

Message Identifiers for internationalization

Project description

To translate any text, we must be able to discover the source domain of the text. A source domain is an identifier that identifies a project that produces program source strings. Source strings occur as literals in python programs, text in templates, and some text in XML data. The project implies a source language and an application context.

We can think of a source domain as a collection of messages and associated translation strings.

We often need to create unicode strings that will be displayed by separate views. The view cannot translate the string without knowing its source domain. A string or unicode literal carries no domain information, therefore we use messages. Messages are unicode strings which carry a translation source domain and possibly a default translation. They are created by a message factory. The message factory is created by calling MessageFactory with the source domain.

This package provides facilities for declaring such messages within program source text; translation of the messages is the responsiblitiy of the ‘zope.i18n’ package.

CHANGES

4.0.0 (2012-05-16)

  • Automated build of Sphinx HTML docs and running doctest snippets via tox.

  • Removed use of ‘2to3’ and associated fixers when installing under Py3k. The code is now in a “compatible subset” which supports Python 2.6, 2.7, and 3.2, including PyPy 1.8 (the version compatible with the 2.7 language spec).

  • 100% unit test coverage.

  • Move doctest examples into Sphinx documentation.

  • Dropped explicit support for Python 2.4 / 2.5 / 3.1.

  • Added explicit support for PyPy.

  • Added ‘setup.py dev’ alias (runs setup.py develop plus installs nose and coverage).

  • Added ‘setup.py docs’ alias (installs Sphinx and dependencies).

3.6.1 (2011-07-20)

  • Correct metadata in this file for release date.

3.6.0 (2011-07-20)

3.5.3 (2010-08-10)

  • Made compilation of C extension optional again; 3.5.1 broke this inasmuch as this package become unusable on non-CPython platforms. Making the compilation of the C extension optional again implied removing setup.py code added in 3.5.1 which made the C extension a setuptools “Feature” and readding code from 3.5.0 which overrides the distutils build_ext command.

  • Move pickle equality tests into a unittest.TestCase test to make it easier to condition the tests on whether the C extension has been compiled. This also makes the tests pass on Jython.

3.5.2 (2010-04-30)

  • Removed use of ‘zope.testing.doctestunit’ in favor of stdlib’s ‘doctest.

3.5.1 (2010-04-10)

  • LP #257657 / 489529: Fix memory leak in C extension.

  • Fixed the compilation of the C extension with python 2.6: refactored it as a setuptools Feature.

3.5.0 (2009-06-27)

  • Made compilation of C extension optional.

  • Added support to bootstrap on Jython.

  • Changed package’s mailing list address from zope3-dev at zope.org to zope-dev at zope.org, because zope3-dev is now retired.

  • Reformatted change log to common formatting style.

  • Update package description and docs a little.

  • Remove old .cfg files for zpkg.

3.4.3 (2007-09-26)

  • Make PyPI the home URL.

3.4.2 (2007-09-25)

  • Moved the ZopeMessageFactory from zope.app.i18n to this package.

3.4.0 (2007-07-19)

  • Remove incorrect dependency.

  • Create final release to reflect package status.

3.2.0 (2006-01-05)

  • Corresponds to the verison of the zope.i18nmessageid package shipped as part of the Zope 3.2.0 release.

  • Implemented ‘zope.i18nmessageid.message’ as a C extension.

  • Deprecated ‘zope.i18nmessageid.messageid’ APIs (‘MessageID’, ‘MessageIDFactory’) in favor of replacements in ‘zope.i18nmessageid.message’ (‘Message’, ‘MessageFactory’). Deprecated items are scheduled for removal in Zope 3.3.

3.0.0 (2004-11-07)

  • Corresponds to the verison of the zope.i18nmessageid package shipped as part of the Zope X3.0.0 release.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zope.i18nmessageid-4.0.0.tar.gz (20.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

zope.i18nmessageid-4.0.0.win-amd64-py2.7.exe (243.6 kB view details)

Uploaded Source

zope.i18nmessageid-4.0.0.win-amd64-py2.6.exe (243.6 kB view details)

Uploaded Source

zope.i18nmessageid-4.0.0.win32-py2.7.exe (216.2 kB view details)

Uploaded Source

zope.i18nmessageid-4.0.0.win32-py2.6.exe (216.2 kB view details)

Uploaded Source

zope.i18nmessageid-4.0.0-py2.7-win-amd64.egg (19.0 kB view details)

Uploaded Egg

zope.i18nmessageid-4.0.0-py2.7-win32.egg (19.2 kB view details)

Uploaded Egg

zope.i18nmessageid-4.0.0-py2.6-win-amd64.egg (19.0 kB view details)

Uploaded Egg

zope.i18nmessageid-4.0.0-py2.6-win32.egg (19.1 kB view details)

Uploaded Egg

zope.i18nmessageid-4.0.0-py2.5-win32.egg (18.7 kB view details)

Uploaded Egg

zope.i18nmessageid-4.0.0-py2.4-win32.egg (18.8 kB view details)

Uploaded Egg

File details

Details for the file zope.i18nmessageid-4.0.0.tar.gz.

File metadata

File hashes

Hashes for zope.i18nmessageid-4.0.0.tar.gz
Algorithm Hash digest
SHA256 483902dcf5653d456e56f81b2133f9f6539f20b2fe5e6635a8f69d805a41cb1d
MD5 df05b76eca55a0921cf8f1a54502a0b5
BLAKE2b-256 9691b031bd95bda58f36de6e2b8cb5d5eced9d49ed4eddfa687a0f50ceceadf3

See more details on using hashes here.

File details

Details for the file zope.i18nmessageid-4.0.0.win-amd64-py2.7.exe.

File metadata

File hashes

Hashes for zope.i18nmessageid-4.0.0.win-amd64-py2.7.exe
Algorithm Hash digest
SHA256 25959ca3948b01480d06bb898e0ba7166aaa746d989d7964e422d0f1c8dda6aa
MD5 00edea176977f01d69447d596808e9e9
BLAKE2b-256 09be01112e23bad972cd543c163af1033f4a4595d9982cb6f5ed506dc97c0f8d

See more details on using hashes here.

File details

Details for the file zope.i18nmessageid-4.0.0.win-amd64-py2.6.exe.

File metadata

File hashes

Hashes for zope.i18nmessageid-4.0.0.win-amd64-py2.6.exe
Algorithm Hash digest
SHA256 1cbe19001ea00132bbd97965eb9a3e4fe27729fd5b9f09375556310620ed788a
MD5 c4e1fc854f552d52f09e17a1f282d76d
BLAKE2b-256 7cf2d08c874ea51b7d91540b53c2c1ca8e46da07cc21dbecbb7c3cff8b97aa31

See more details on using hashes here.

File details

Details for the file zope.i18nmessageid-4.0.0.win32-py2.7.exe.

File metadata

File hashes

Hashes for zope.i18nmessageid-4.0.0.win32-py2.7.exe
Algorithm Hash digest
SHA256 a049ae9aea34659c8eac02a3c1534b2e90788f5502ae7860b97615d26d223e30
MD5 957bf45f5b2c2898e0a8e0fbab5d11eb
BLAKE2b-256 288b51f971ade5d53a0c93ee5d3ca1c3c64d88ab2087605f2f2e93f0528494e2

See more details on using hashes here.

File details

Details for the file zope.i18nmessageid-4.0.0.win32-py2.6.exe.

File metadata

File hashes

Hashes for zope.i18nmessageid-4.0.0.win32-py2.6.exe
Algorithm Hash digest
SHA256 1cc86f667a3911533b8260ca69156213b567bcc47b57b955083b3fca319f3be6
MD5 d1c674594539416d6b0384aa3e9cda4b
BLAKE2b-256 9fbd7f3612ba5c5f341bdfd76dc19ce07397489e0d1cf753d02226b1cdda4fca

See more details on using hashes here.

File details

Details for the file zope.i18nmessageid-4.0.0-py2.7-win-amd64.egg.

File metadata

File hashes

Hashes for zope.i18nmessageid-4.0.0-py2.7-win-amd64.egg
Algorithm Hash digest
SHA256 f6376971071eafb2fa179b17e4fbc7cf30ca9c1b62ced6fb662246e541f55cc3
MD5 7434dd4468d947e5ac3cb23a1262a937
BLAKE2b-256 83e84098999ceff2c0277b2ec26dde92c1977450024f271c1da2fe32df6efaeb

See more details on using hashes here.

File details

Details for the file zope.i18nmessageid-4.0.0-py2.7-win32.egg.

File metadata

File hashes

Hashes for zope.i18nmessageid-4.0.0-py2.7-win32.egg
Algorithm Hash digest
SHA256 c62ffb8edba6fd5934b69a583ff60a7e134824c0cbec3b09cff98c47a984c692
MD5 e4a9e78855581c1df7fb3037a8bba6a1
BLAKE2b-256 f6603c4fc4e24e1a81de856c6d93171c00282d8c8d9ab41f2b2aa532f3ca4c91

See more details on using hashes here.

File details

Details for the file zope.i18nmessageid-4.0.0-py2.6-win-amd64.egg.

File metadata

File hashes

Hashes for zope.i18nmessageid-4.0.0-py2.6-win-amd64.egg
Algorithm Hash digest
SHA256 3c0afa06839fb8f3db222bdabb58261e736705a7338640ad4a816851e8b310fa
MD5 51e5cd4de1ef1b16e8cdf0728d25f300
BLAKE2b-256 e869976d21d58a3d71430265517ca27253cdaed3aded9b468b6a2cd37465b182

See more details on using hashes here.

File details

Details for the file zope.i18nmessageid-4.0.0-py2.6-win32.egg.

File metadata

File hashes

Hashes for zope.i18nmessageid-4.0.0-py2.6-win32.egg
Algorithm Hash digest
SHA256 6d4988cb811986d87c35a0933f6e1c3acd3116736970bf3796123ba74c8d707c
MD5 a5b13398615848dd237e89c80a908969
BLAKE2b-256 f239c57ef5bb729d12344ff69227217914f14a54fcb3dd094b2f65116894acc4

See more details on using hashes here.

File details

Details for the file zope.i18nmessageid-4.0.0-py2.5-win32.egg.

File metadata

File hashes

Hashes for zope.i18nmessageid-4.0.0-py2.5-win32.egg
Algorithm Hash digest
SHA256 1311b317dcdf046a4dfdbebf98e48644aeaee704661599a80b40cde648893496
MD5 e45c5b0a6f8fdc3477259aa60ff7254f
BLAKE2b-256 0f4ba68c2ee20b5a1f48fccdf268552d13772951ca00f60bb081393773620202

See more details on using hashes here.

File details

Details for the file zope.i18nmessageid-4.0.0-py2.4-win32.egg.

File metadata

File hashes

Hashes for zope.i18nmessageid-4.0.0-py2.4-win32.egg
Algorithm Hash digest
SHA256 e5ed4be50c20669b2d2ee9530944e123269cd58a2cb3755d06efc6f9d79fa8ec
MD5 b54b6ca123f2bae5722e61eb26ca9fe8
BLAKE2b-256 e111612f2625d938b4a5fa0971e3b5066b2d3e14c09bcb21cd9454d968a8dbc8

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