{ "info": { "author": "Ludwik Trammer", "author_email": "ludwik@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.11", "Framework :: Django :: 1.7", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Framework :: Django :: 2.0", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "===================\nDjango Pluralize PL\n===================\n\nSimple Django plugin providing `pluralize_pl` template filter that works similarly to Django's built-in `pluralize `_ plugin but respects Polish grammar rules.\n\nQuick start\n-----------\n\n1. Install the plugin from PyPi::\n\n pip install django-pluralize-pl\n\n1. Add `pluralize_pl` to your INSTALLED_APPS setting like this::\n\n INSTALLED_APPS = [\n ...\n 'pluralize_pl',\n ]\n\n2. Load `pluralize_pl` in your templates:\n\n {% load pluralize_pl %}\n\n3. Use the `pluralize_pl` filter when you need it:\n\n {{ comments | pluralize_pl:\"komentarz,komentarzy,komentarze\" }}\n\n\nOverview\n--------\n\n`pluralize_pl` is fully compatible with Django's `pluralize `_ filter. It works the same as long as you are giving it up to 2 comma-separated arguments. The difference is, you can provide it with a third argument, which will be used as a second plural form and applied according to Polish grammar rules:\n\n* If value is **0**, ``{{ value|pluralize:\"komentarz,komentarzy,komentarze\" }}`` displays \"komentarzy\".\n* If value is **1**, ``{{ value|pluralize:\"komentarz,komentarzy,komentarze\" }}`` displays \"komentarz\".\n* If value is **2**, ``{{ value|pluralize:\"komentarz,komentarzy,komentarze\" }}`` displays \"komentarze\".\n* If value is **5**, ``{{ value|pluralize:\"komentarz,komentarzy,komentarze\" }}`` displays \"komentarzy\".\n\nNote that using the filter only makes sense if you do not utilize Django's translation system, which already has `built-in support for pluralization `_ based on grammar rules of the target language.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ludwiktrammer/django-pluralize-pl", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "django-pluralize-pl", "package_url": "https://pypi.org/project/django-pluralize-pl/", "platform": "", "project_url": "https://pypi.org/project/django-pluralize-pl/", "project_urls": { "Homepage": "https://github.com/ludwiktrammer/django-pluralize-pl" }, "release_url": "https://pypi.org/project/django-pluralize-pl/0.2/", "requires_dist": null, "requires_python": "", "summary": "Polish pluralization for Django templates.", "version": "0.2" }, "last_serial": 3553815, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "3333d9c4a82809e513ebbf82ffbe876f", "sha256": "462e7c9b617e98382cf0a078fdeaa3b52ac49123421ff051e3d4ee9e9ff84afd" }, "downloads": -1, "filename": "django-pluralize-pl-0.2.tar.gz", "has_sig": false, "md5_digest": "3333d9c4a82809e513ebbf82ffbe876f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3533, "upload_time": "2018-02-05T15:56:36", "url": "https://files.pythonhosted.org/packages/38/fd/dbc18b6a62ee93f83ee3d6d633f0d79bce50796fca49d123a05e26788cc6/django-pluralize-pl-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3333d9c4a82809e513ebbf82ffbe876f", "sha256": "462e7c9b617e98382cf0a078fdeaa3b52ac49123421ff051e3d4ee9e9ff84afd" }, "downloads": -1, "filename": "django-pluralize-pl-0.2.tar.gz", "has_sig": false, "md5_digest": "3333d9c4a82809e513ebbf82ffbe876f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3533, "upload_time": "2018-02-05T15:56:36", "url": "https://files.pythonhosted.org/packages/38/fd/dbc18b6a62ee93f83ee3d6d633f0d79bce50796fca49d123a05e26788cc6/django-pluralize-pl-0.2.tar.gz" } ] }