{ "info": { "author": "Aymeric Augustin", "author_email": "aymeric.augustin@oscaro.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "Use case\n--------\n\nDjango's [i18n_patterns][] prefixes URLs with a language code which may\ncontain a variant e.g. `/en`, `/fr`, `/fr-ca`.\n\no18n_patterns is similar but it prefixes URLs with a country code and a\nlanguage code e.g. `/us`, `/ca/en`, `/ca/fr`.\n\nThis is useful for websites that are mainly segmented by country rather than\nby language.\n\n[i18n_patterns]: https://docs.djangoproject.com/en/stable/topics/i18n/translation/#django.conf.urls.i18n.i18n_patterns\n\nFeatures\n--------\n\nSome countries have a main language. In that case, the URL for the main\nlanguage only contains the country e.g. `/us`. URLs for other languages\ncontain the country and the language e.g. `/us/es`.\n\nSome countries don't have a main language \u2014 and it may be a sensitive topic!\nIn that case, all URLs contain the country and the language e.g. `/ca/en` and\n`/ca/fr`.\n\nUnlike i18_patterns, o18n_patterns doesn't attempt to determine the country\nand language and automatically redirect the user to the appropriate URL.\n\nIf an URL doesn't match a valid country and language combination, it doesn't\nresolve with o18n_patterns and no country is activated. Vice-versa, if no\ncountry is active, reversing an URL raises an exception.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/oscaro/django-o18n", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-o18n", "package_url": "https://pypi.org/project/django-o18n/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-o18n/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/oscaro/django-o18n" }, "release_url": "https://pypi.org/project/django-o18n/1.0/", "requires_dist": null, "requires_python": null, "summary": "/// URL scheme, like Django's i18n_patterns.", "version": "1.0" }, "last_serial": 1143006, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "b60cb4ada5a0ca61a22dc9905de14e61", "sha256": "0a6952f23ccbbbb44406bdd38f40eb88b2349cbcd8a9e576e6c581f551be5194" }, "downloads": -1, "filename": "django_o18n-1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b60cb4ada5a0ca61a22dc9905de14e61", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 10029, "upload_time": "2014-07-01T09:20:14", "url": "https://files.pythonhosted.org/packages/f7/2a/6054a838973636aa76d4b3a21cf1af50b941f86881c515e45beab0d093c2/django_o18n-1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7fd65267e315755938d77ff3efcaa61d", "sha256": "a44dd03b92fd0197abef97b65bec34c640e4998087e3a782b5c25fdcbf15c873" }, "downloads": -1, "filename": "django-o18n-1.0.tar.gz", "has_sig": false, "md5_digest": "7fd65267e315755938d77ff3efcaa61d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9799, "upload_time": "2014-07-01T09:20:12", "url": "https://files.pythonhosted.org/packages/7f/b4/bdec4c2fb24f2db0126e6b7d5a97bd7c122cfc0480c1a8a9d7bf22b3b2f2/django-o18n-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b60cb4ada5a0ca61a22dc9905de14e61", "sha256": "0a6952f23ccbbbb44406bdd38f40eb88b2349cbcd8a9e576e6c581f551be5194" }, "downloads": -1, "filename": "django_o18n-1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b60cb4ada5a0ca61a22dc9905de14e61", "packagetype": "bdist_wheel", "python_version": "3.4", "requires_python": null, "size": 10029, "upload_time": "2014-07-01T09:20:14", "url": "https://files.pythonhosted.org/packages/f7/2a/6054a838973636aa76d4b3a21cf1af50b941f86881c515e45beab0d093c2/django_o18n-1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7fd65267e315755938d77ff3efcaa61d", "sha256": "a44dd03b92fd0197abef97b65bec34c640e4998087e3a782b5c25fdcbf15c873" }, "downloads": -1, "filename": "django-o18n-1.0.tar.gz", "has_sig": false, "md5_digest": "7fd65267e315755938d77ff3efcaa61d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9799, "upload_time": "2014-07-01T09:20:12", "url": "https://files.pythonhosted.org/packages/7f/b4/bdec4c2fb24f2db0126e6b7d5a97bd7c122cfc0480c1a8a9d7bf22b3b2f2/django-o18n-1.0.tar.gz" } ] }