Skip to main content

A zope.schema field for inline translations.

Project description

ps.zope.i18nfield

PyPI Version Supported Python Versions Travis CI status Coverage Status

This package provides a zope.schema based field which allows multiple translations within the field. It uses a custom dictionary class for the storage. There is also a widget available for the z3c.form library.

Contributors

Changelog

0.6 (2018-01-19)

  • Add widget option for custom default language.

  • Add option to remove existing languages for Plone 5.

0.5 (2018-01-13)

  • Don’t depend on z3c.indexer which might only be used in pure Zope 3 applications.

0.4 (2018-01-13)

  • Fix unicode error in z3c.form data converter.

  • Add custom widget template for Plone 5.

0.3 (2017-11-17)

  • Add __hash__ method to I18NDict.

0.2 (2016-10-26)

  • Add missing method definition for ILanguageAvailability interface.

  • Add plone.registry persistent adapters.

  • Add required Plone utilities.

0.1.4 (2015-02-13)

  • Allow for indexing of normal dict and other values as well as I18NDict.

  • Better to iterate over the existing indices in case the available language configuration changes.

0.1.3.1 (2014-11-14)

  • Added en translation.

0.1.3 (2014-11-14)

  • Added translations (de, es).

  • Provide the ‘Add translation’ value already translated (e.g. for JS).

0.1.2 (2014-11-01)

  • Return empty dict when value is None.

  • Test for correct value types before we set any data.

  • Correctly evaluate the bool value of the I18NDict when the field is required.

  • When the fallback is the first value found, sort the values so that the result is consistent with each repeated call.

0.1.1 (2014-09-25)

  • Always return the super call instead of None when no sub-indices have been created yet.

  • Add tests to cover the sort method with and without values.

0.1 (2014-09-23)

  • Initial release.

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

ps.zope.i18nfield-0.6.zip (53.6 kB view details)

Uploaded Source

File details

Details for the file ps.zope.i18nfield-0.6.zip.

File metadata

File hashes

Hashes for ps.zope.i18nfield-0.6.zip
Algorithm Hash digest
SHA256 1212cfa10d1c413ebaa89fb6a32cc02e3aa91b2a4c7b240eadcf652afb4519fa
MD5 e5acb9e23e8148e05522e034801f777d
BLAKE2b-256 41ea14d05aee591b6eb313d52e6a7c012806971ac66138a8040cdbc7d43240e6

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