{ "info": { "author": "Evgeniy Dolgikh", "author_email": "marcon@atsy.org.ua", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "=====\r\nlangswitch\r\n=====\r\n\r\nlangswitch - is django app, that can be used on multilingual sites to allow users switch site language, and use some template tags for maintain multilang links etc.\r\n\r\nQuick start\r\n-----------\r\n\r\n1. Add \"langswitch\" to your INSTALLED_APPS setting like this::\r\n\r\n INSTALLED_APPS = (\r\n ...\r\n 'langswitch',\r\n )\r\n \r\n and make sure that you have django.core.context_processors.request in TEMPLATE_CONTEXT_PROCESSORS:\r\n \r\n TEMPLATE_CONTEXT_PROCESSORS = (\r\n ...\r\n 'django.core.context_processors.request',\r\n ...\r\n )\r\n\r\n2. Load langswitch in your template:\r\n {% load lang_switch %}\r\n\r\n3. Use template tag {% set_lang_from_path %} to activate translation, from url path (like /en/example/article/ for english language or /ru/example/article/ for russian)\r\nthis tag also defines variable 'lang' in template context, so you can use it.\r\n\r\n4. Also you can just get variable 'lang' to template context with {% get_lang %} template tag", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/Marcon/django-langswitch/releases/download/v0.1.1/django-langswitch-0.1.1.zip", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Marcon/django-langswitch", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "django-langswitch", "package_url": "https://pypi.org/project/django-langswitch/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-langswitch/", "project_urls": { "Download": "https://github.com/Marcon/django-langswitch/releases/download/v0.1.1/django-langswitch-0.1.1.zip", "Homepage": "https://github.com/Marcon/django-langswitch" }, "release_url": "https://pypi.org/project/django-langswitch/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "django app, that can be used on multilingual sites", "version": "0.1.1" }, "last_serial": 1391728, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "908f66a4f8a2442381caf04faa78e505", "sha256": "5ff8e66b53207673d0ee353f74e9e788e0623e573dea0b04ec0e07dab7a08494" }, "downloads": -1, "filename": "django-langswitch-0.1.zip", "has_sig": false, "md5_digest": "908f66a4f8a2442381caf04faa78e505", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6306, "upload_time": "2015-01-21T16:03:40", "url": "https://files.pythonhosted.org/packages/62/69/7e148c3eb44ba857e4cc1fd26e0f792d5907b4d8dfc3fc9eb8394fde9377/django-langswitch-0.1.zip" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "850d868228b3323648e601f1ed2e4cd2", "sha256": "99f6faeab11ed870aa7f3f92e2acfa73993328cb491994e4de1107af4862669e" }, "downloads": -1, "filename": "django-langswitch-0.1.1.zip", "has_sig": false, "md5_digest": "850d868228b3323648e601f1ed2e4cd2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6355, "upload_time": "2015-01-22T12:01:47", "url": "https://files.pythonhosted.org/packages/c9/aa/ea1f2c98a9b5e5712e2b0aa3b847387cff5f6d5e33f111d80dec38d606b7/django-langswitch-0.1.1.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "850d868228b3323648e601f1ed2e4cd2", "sha256": "99f6faeab11ed870aa7f3f92e2acfa73993328cb491994e4de1107af4862669e" }, "downloads": -1, "filename": "django-langswitch-0.1.1.zip", "has_sig": false, "md5_digest": "850d868228b3323648e601f1ed2e4cd2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6355, "upload_time": "2015-01-22T12:01:47", "url": "https://files.pythonhosted.org/packages/c9/aa/ea1f2c98a9b5e5712e2b0aa3b847387cff5f6d5e33f111d80dec38d606b7/django-langswitch-0.1.1.zip" } ] }