{ "info": { "author": "Guido Wesdorp", "author_email": "info@infrae.com", "bugtrack_url": null, "classifiers": [ "Framework :: Zope2", "Framework :: Zope3", "License :: OSI Approved :: Zope Public License", "Programming Language :: Python", "Topic :: Software Development :: Internationalization", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "=========\nz3locales\n=========\n\nThe code is distributed under terms of the Zope Public License version 2.1.\nSee also LICENSE.txt.\n\nZ3locales is a library which translates dates in Zope 2 to the current\nuser language using Zope 3 technology.\n\nThose functions are available in the module ``localdatetime``:\n\n``get_formatted_now(request)``\n Return the current date formatted and translated in the current\n user language. The target user language is determined via the\n provided request.\n\n``get_formatted_date(date, size=\"full\", request=_marker, locale=_marker, display_time=True)``\n Take a date (should be a tuple ``(year, month, day[, hour[,\n minute[, second]]])`` or a Python datetime object), format it and\n translate it in the target user language (determined via locale or the\n given request). The modifier size and display_time can be used to\n change the output.\n\n``get_month_names(request=_marker, locale=_marker, calendar='gregorian')``\n Return a list of month names translated in the target language\n (determined via locale or the given request).\n\n``get_month_abbreviations(request=_marker, locale=_marker, calendar='gregorian')``\n Return a list of month abbreviations (usually the first three\n letters) translated in the target user language (determined via\n locale or the given request).\n\n``get_locale_info(request)``\n Return the locale representing the target user language using the\n provided request. This locale can be used after by other functions\n of this package.\n\n\nCompatibility API exists with previous versions.\n\nChanges\n=======\n\n0.4.1 (2013-05-13)\n------------------\n\n* Fallback to english if the local that is asked is not available.\n\n0.4 (2012-09-03)\n----------------\n\n* Use local information from Zope API's getPreferredLanguages when no\n specific local is given.\n\n0.3 (2010-10-06)\n----------------\n\n* Refactor API to factorize needed computation. The API changed to be\n compatible PEP8.\n\n0.2 (2008-09-25)\n----------------\n\n* First release as an egg.\n* Use zope.i18n as a dependencies, not having a local copy of it.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://infrae.com/download/z3locales", "keywords": "internationalization zope2 zope3 i18n", "license": "ZPL 2.1", "maintainer": null, "maintainer_email": null, "name": "z3locales", "package_url": "https://pypi.org/project/z3locales/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/z3locales/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://infrae.com/download/z3locales" }, "release_url": "https://pypi.org/project/z3locales/0.4.1/", "requires_dist": null, "requires_python": null, "summary": "Display localized dates in Zope 2 using Zope 3 components.", "version": "0.4.1" }, "last_serial": 945386, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "78144d2a6c2fe6e3bcf83edec944f352", "sha256": "5cefbbfbb827b99d54649440392f81e9f32279c313427e76dd896ed7ac64dadf" }, "downloads": -1, "filename": "z3locales-0.2-py2.4.egg", "has_sig": false, "md5_digest": "78144d2a6c2fe6e3bcf83edec944f352", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 6670, "upload_time": "2008-09-25T08:49:53", "url": "https://files.pythonhosted.org/packages/7d/4c/9d6376a640ef8c723be4b322f8d7fc8ecb1b7763306678ee78152383e149/z3locales-0.2-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "1a49031cbf747f32228cd15cb79b6172", "sha256": "dd72006c6c92fa24c1071aebf1f800f1d6746da23d340ac4bd6335f7b880420d" }, "downloads": -1, "filename": "z3locales-0.2.tar.gz", "has_sig": false, "md5_digest": "1a49031cbf747f32228cd15cb79b6172", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4134, "upload_time": "2008-09-25T08:37:44", "url": "https://files.pythonhosted.org/packages/b9/ef/e0c1880e75b590e302322e74990b1c7d269c3f4d4a29cfa688cc9a37cc7c/z3locales-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "b353c801c1b03456f58b14d28baa4852", "sha256": "b83030295804d99de4c80a6b2ca3ebbf5f1f5eb01cae12f49bdaf07eb7761f7d" }, "downloads": -1, "filename": "z3locales-0.3.tar.gz", "has_sig": false, "md5_digest": "b353c801c1b03456f58b14d28baa4852", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4415, "upload_time": "2010-10-06T12:13:26", "url": "https://files.pythonhosted.org/packages/70/fb/6cd4ba77e3f3e04a195d4779c9e8596ecea1fb2ae5dc191282c9e3419770/z3locales-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "89a77b2e3f7088cccc9c7d00bcb8af78", "sha256": "2d2c949dc9e803b1ef1c19b32ce7b30d2810dec18fb8598d07a5710382336d81" }, "downloads": -1, "filename": "z3locales-0.4.tar.gz", "has_sig": false, "md5_digest": "89a77b2e3f7088cccc9c7d00bcb8af78", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4027, "upload_time": "2012-09-03T14:02:08", "url": "https://files.pythonhosted.org/packages/8d/49/053f952ce413f44ea4a10cfc4f83f014688470c4d2bbad0b071c284e91f3/z3locales-0.4.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "ceb9f6d282311588f040d2d379fd7bdf", "sha256": "02f823d6ce5c2acd74b0883df72b8dc942a9cf0bbe1e967ff97520fa5988c948" }, "downloads": -1, "filename": "z3locales-0.4.1.tar.gz", "has_sig": false, "md5_digest": "ceb9f6d282311588f040d2d379fd7bdf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4172, "upload_time": "2013-05-23T09:23:10", "url": "https://files.pythonhosted.org/packages/4f/07/df846482879a9bb381f32eb80b59acf01d8dd7afbbf4a55edeb8b7ecf295/z3locales-0.4.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ceb9f6d282311588f040d2d379fd7bdf", "sha256": "02f823d6ce5c2acd74b0883df72b8dc942a9cf0bbe1e967ff97520fa5988c948" }, "downloads": -1, "filename": "z3locales-0.4.1.tar.gz", "has_sig": false, "md5_digest": "ceb9f6d282311588f040d2d379fd7bdf", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4172, "upload_time": "2013-05-23T09:23:10", "url": "https://files.pythonhosted.org/packages/4f/07/df846482879a9bb381f32eb80b59acf01d8dd7afbbf4a55edeb8b7ecf295/z3locales-0.4.1.tar.gz" } ] }