Skip to main content

A zope.schema field for inline translations.

Project description

Introduction

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.

Mostly Harmless

https://travis-ci.org/propertyshelf/ps.zope.i18nfield.svg?branch=master

Changelog

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

Uploaded Source

File details

Details for the file ps.zope.i18nfield-0.1.2.tar.gz.

File metadata

File hashes

Hashes for ps.zope.i18nfield-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b0ffcc688736ed0232f69e47b3e1f18a2542bb93a569491aea7a4c72fcce6150
MD5 6ed968e1e46bab22fe43bf7aa36254c2
BLAKE2b-256 25e13f9de0d1f1fc1933970c18d9c597831f6afdef4eceb278476a78392e8a99

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