Skip to main content

What is ztfy.i18n ?

ztfy.i18n is a package used to handle internalization of contents attributes.

Supported attributes types include:
  • text and textline fields

  • file and images fields

  • HTML fields

How to use ztfy.i18n ?

A set of ztfy.i18n usages are given as doctests in ztfy/i18n/doctests/README.txt

Changelog

0.3.5

  • use all file content instead of 4Kb sample to extract MIME type to prevent errors when checking MS-Office files

0.3.4

  • refactored interfaces to prevent circular references

  • added configuration directives to remove static dependencies with “ztfy.skin” package

0.3.3

  • use new “getMagicContentType()” function from ztfy.extfile package

  • small imports cleanup

0.3.2

  • use Unicode for default language when no language nogotiator is available

0.3.1

  • updated locales

  • updated style of files download links

0.3.0

  • use ZTFY.skin data API

  • removed unused CSS styles

  • make package resources compatibles with Fanstatic “bottom” option

0.2.14

  • small CSS update for flags tabs

0.2.13

  • added custom title viewlet for I18n contents

  • modified CSS to match new ZTFY skin

0.2.12

  • added “translated” property decorator

  • use getMagicContentType method from ztfy.file package

0.2.11

  • changed package source layout

0.2.10

  • remove default JPEG format when creating or using thumbnails

0.2.9

  • added “translate” TAL adapter

0.2.8

  • automatically add file’s extension in I18nFileField and I18nImageField attributes values

  • use mimetypes package to get content-type for text files

0.2.7

  • use dictionaries instead of tuples in languages vocabularies

0.2.6

  • added request context to languages vocabularies translations

  • modified “setLanguage.html” view to use context’s absolute URL and avoid bad redirections when using virtual hosting

0.2.5

  • added missing widgets permissions registration

0.2.4

  • added “ZTFY base languages” vocabulary, to handle a list of languages not including country codes

  • updated translations

  • changed position of file input fields

  • changed handling of jQuery’s “imgAreaSelect” plug-in

  • minor changes in CSS styling

0.2.3

  • added check in image field widget thumbnail generation code

0.2.2

  • added extension in displays URLs

  • handle square thumbnails via JQuery imgAreaSelect plug-in

  • check II18n adapter correctly in I18nTalesAdapter

  • better check for request in I18nAttributesAdapter.getPreferedLanguage method

0.2.1

  • migrated resources management from zc.resourcelibrary to fanstatic

0.2

  • switched to ZTK-1.1.2

  • restrictions on I18nAttributesAdapter adapted interface to II18nAttributesAware

  • handle z3c.form “NOT_CHANGED” value for I18n file attributes properties

0.1.1

  • use Invalid exception instead of ValueError to handle invariants

0.1

  • initial release

Release files for ztfy.i18n 0.3.5

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

Source distribution (sdist)

Source distribution for ztfy.i18n 0.3.5
File Size Uploaded
ztfy.i18n-0.3.5.tar.gz 152.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ztfy.i18n 0.3.5
File Interpreter ABI Platform
ztfy.i18n-0.3.5-py2.7.egg Legacy Egg format - - Details

Total release size: 467.6 kB

Release files / ztfy.i18n-0.3.5.tar.gz

Download URL ztfy.i18n-0.3.5.tar.gz
Size 152.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f885c5f62b8213340a170468720755215ae871f9faea74fbb4b27fa3add32e8c
BLAKE2b-256 checksum
How to use checksums
f28b14d5b1298ea9eed9ac7d8d8f808cac7e2d32359ca3c540a3766858e24358
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / ztfy.i18n-0.3.5-py2.7.egg

Download URL ztfy.i18n-0.3.5-py2.7.egg
Size 315.4 kB
Tags Egg
SHA-256 checksum
How to use checksums
391ed54561b2b63df7f6c65219da93e5fe3076cd54c8062e2856abdd8b0826c3
BLAKE2b-256 checksum
How to use checksums
b85b997a735af966e1e3dfc6144a541edc6385732b7b24bd43f4abe9e7fc940a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.5 This release

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.14

2 release files

0.2.12

2 release files

0.2.11

2 release files

0.2.10

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.1

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