This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

The code is distributed under terms of the Zope Public License version 2.1. See also LICENSE.txt.

Z3locales is a library which translates dates in Zope 2 to the current user language using Zope 3 technology.

Those functions are available in the module localdatetime:

get_formatted_now(request)
Return the current date formatted and translated in the current user language. The target user language is determined via the provided request.
get_formatted_date(date, size="full", request=_marker, locale=_marker, display_time=True)
Take a date (should be a tuple (year, month, day[, hour[, minute[, second]]]) or a Python datetime object), format it and translate it in the target user language (determined via locale or the given request). The modifier size and display_time can be used to change the output.
get_month_names(request=_marker, locale=_marker, calendar='gregorian')
Return a list of month names translated in the target language (determined via locale or the given request).
get_month_abbreviations(request=_marker, locale=_marker, calendar='gregorian')
Return a list of month abbreviations (usually the first three letters) translated in the target user language (determined via locale or the given request).
get_locale_info(request)
Return the locale representing the target user language using the provided request. This locale can be used after by other functions of this package.

Compatibility API exists with previous versions.

Changes

0.4.1 (2013-05-13)

  • Fallback to english if the local that is asked is not available.

0.4 (2012-09-03)

  • Use local information from Zope API’s getPreferredLanguages when no specific local is given.

0.3 (2010-10-06)

  • Refactor API to factorize needed computation. The API changed to be compatible PEP8.

0.2 (2008-09-25)

  • First release as an egg.
  • Use zope.i18n as a dependencies, not having a local copy of it.
Release History

Release History

0.4.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.4

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.3

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.2

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
z3locales-0.4.1.tar.gz (4.2 kB) Copy SHA256 Checksum SHA256 Source May 23, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting