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
Changelog
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file ps.zope.i18nfield-0.1.4.tar.gz
.
File metadata
- Download URL: ps.zope.i18nfield-0.1.4.tar.gz
- Upload date:
- Size: 18.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 293a2f918cc8c9f6e86f9b96a5f447130b1a1db986f048e6730e85e2b3e2ec89 |
|
MD5 | 9c3fce6ede6939e0a2cb6e08cfe0dcec |
|
BLAKE2b-256 | 04e946ae1f3aecc5814da71cfb2cff8646dc172247f1b2ff4c41d2f1aeb6667a |