Skip to main content

(c) 2005-2008, Hanno Schlichting (plone@hannosch.info) License: GPL

Products.i18ntestcase Readme

Products.i18ntestcase is build on top of the ZopeTestCase package. It has been developed to simplify testing of gettext i18n files for Zope products.

The Products.i18ntestcase package provides:

  • The class ‘I18NTestCase’ of which you can derive your own test cases.

  • The classes ‘PoTestCase.py’ and ‘PotTestCase.py’ which include a set of common tests for po and pot files.

  • The ‘test_i18n.py’ script, which you can put in your tests folder to easily use all these already written tests.

Copying the test_i18n.py to your tests folder is the preferred way.

Changelog

1.4.0 (2018-02-23)

New features:

  • More Python 2 / 3 compatibility adjustments [davilima6]

1.3.1 (2018-01-17)

Bug fixes:

  • Imports are Python3 compatible [ale-rt, b4oshany]

  • Fix import from Globals that is removed in Zope4. [pbauer]

1.3 (2013-01-17)

  • Allow laquo and raquo HTML entities in translations. [hannosch]

1.2 (2008-01-01)

  • Moved to a real package layout. [hannosch]

  • Extended support for locales folder. Now both a locales folder and an i18n folder are supported at the same time. [hannosch]

  • Added ® to the allowed HTML entities and removed ™. [hannosch]

  • Implemented support for locales folder layout as used by Zope3. If there’s an i18n folder inside a product this is used however. [hannosch]

1.1 (2005-11-20)

  • Finally made running tests via ‘zopectl test’ work. [hannosch]

  • Got rid of the last external binary dependency. Provided much nicer error messages for missing or additional messages in comparision of pot and po files. At least on Windows this results in a major speed improvement (16 sec now, 150 sec before)! [hannosch]

1.0 (2005-10-05)

  • Lower-cased package name, to conform to Zope3/Python style [hannosch]

  • Fixed an issue with getPoFiles not being strict enough on product matching, resulting in plonelanguagetool po’s found for the plone product [hannosch]

  • Move to new default comments (#. Default: “”) instead of old original comments (# Original: “”). [hannosch]

  • Adopted syntax for i18ndude 2.0. From this point forward i18ndude 1.x is not supported anymore. [hannosch]

  • Optimized slightly for speed (approx. 5% faster) [hannosch]

0.2 (2005-09-03)

  • Got rid of a bunch of external binary dependencies by replacing the testNoDuplicateMsgId() test by the Python-only version taken from CPS. [hannosch]

  • Reordered the “if __name__ == ‘__main__’:” magic calls in a way that calling the test_i18n.py script directly also works. [hannosch]

0.1 (2005-08-28)

  • Tagged and released v0.1 [hannosch]

Release files for Products.i18ntestcase 1.4.0

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

Source distribution (sdist)

Source distribution for Products.i18ntestcase 1.4.0
File Size Uploaded
Products.i18ntestcase-1.4.0.tar.gz 14.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Products.i18ntestcase 1.4.0
File Interpreter ABI Platform
Products.i18ntestcase-1.4.0-py2-none-any.whl Python 2 none any Details

Total release size: 26.7 kB

Release files / Products.i18ntestcase-1.4.0.tar.gz

Download URL Products.i18ntestcase-1.4.0.tar.gz
Size 14.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2ecfa8dc980c9bad0bcf20e165ea459d2d5d1e9fd003c270ece27adac3fb6b31
BLAKE2b-256 checksum
How to use checksums
79b77263f07b866c286861eb354ebbd52a0b7e46205f7c860345aa92e9a48b65
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / Products.i18ntestcase-1.4.0-py2-none-any.whl

Download URL Products.i18ntestcase-1.4.0-py2-none-any.whl
Size 12.4 kB
Tags Python 2
SHA-256 checksum
How to use checksums
23c7dac82bf8fa196efac59db4f78544737838d56135fb17dac7494c45804277
BLAKE2b-256 checksum
How to use checksums
1ce82ef68d1ccfb7b5236d6871cf49040d1c1810f82f479bb0838ee77207ca4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files

1.3.1

2 release files

1.3

1 release file

1.2

2 release files

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