{ "info": { "author": "Jan Mus\u00edlek", "author_email": "jan.musilek@nic.cz", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 2.0", "Framework :: Django :: 2.1", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "==================\ndjango-lang-switch\n==================\n\n.. image:: https://travis-ci.org/stinovlas/django-lang-switch.svg?branch=devel\n :target: https://travis-ci.org/stinovlas/django-lang-switch/branches\n.. image:: https://codecov.io/gh/stinovlas/django-lang-switch/branch/devel/graph/badge.svg\n :target: https://codecov.io/gh/stinovlas/django-lang-switch/branch/devel\n.. image:: https://img.shields.io/pypi/v/django-lang-switch.svg\n :target: https://pypi.org/project/django-lang-switch\n.. image:: https://img.shields.io/pypi/pyversions/django-lang-switch.svg\n :target: https://pypi.org/project/django-lang-switch\n.. image:: https://img.shields.io/pypi/djversions/django-lang-switch.svg\n :target: https://pypi.org/project/django-lang-switch\n\nLanguage switch for Django.\n\n\n--------------\n Installation\n--------------\n\nYou can install ``django-lang-switch`` from PyPi:\n\n.. code-block:: bash\n\n $ pip install django-lang-switch\n\n\n---------------\n Configuration\n---------------\n\nYou need to add ``django_lang_switch.apps.DjangoLangSwitchConfig`` into your ``INSTALLED_APPS`` setting.\nIf you want to add enable language switch in django admin site, you have to add it before ``django.contrib.admin``.\nOtherwise, you need to put ``django.contrib.admin`` first.\nIf you don't use django admin site, the order does not matter.\n\nIf you tweaked the ``admin/base_site.html`` template yourself,\nput this application after yours and use the template tag as described below.\n\nYou also need to include ``django-lang-switch`` urls to your ``ROOT_URLCONF``. Example:\n\n.. code-block:: python\n\n from django.urls import include, path\n\n urlpatterns = [\n ...\n path('django_lang_switch/', include('django_lang_switch.urls')),\n ]\n\nYou can of course change the path to suit your needs.\n\n\n-------\n Usage\n-------\n\nIf you just want to add language switch to django admin site,\nadd this application to your ``INSTALLED_APPS`` as described above and you are done.\n\nIf you want to use the same switch elsewhere, add template tage ``lang_switch_dropdown`` to your template.\nDon't forget to load ``lang_switch`` tag collection to your template. Example:\n\n.. code-block:: html\n\n {% extends myapp/base_site.html %}\n {% load lang_switch %}\n
\n Welcome to MyApp!\n
\n {% lang_switch_dropdown %}\n
\n
\n\n\n---------\n Styling\n---------\n\nLanguage switch in django admin site is already styled to fit the default design.\nIf you want to style the lang switch yourselves,\nyou may set css for the ``div.lang-switch`` element and its descendants.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/stinovlas/django-lang-switch", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "django-lang-switch", "package_url": "https://pypi.org/project/django-lang-switch/", "platform": "", "project_url": "https://pypi.org/project/django-lang-switch/", "project_urls": { "Homepage": "https://github.com/stinovlas/django-lang-switch" }, "release_url": "https://pypi.org/project/django-lang-switch/0.3/", "requires_dist": [ "Django (>=2.0)", "flake8; extra == 'quality'", "isort; extra == 'quality'", "mypy; extra == 'quality'", "pydocstyle; extra == 'quality'" ], "requires_python": ">=3.5", "summary": "Language switch for Django", "version": "0.3" }, "last_serial": 4486065, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "ade8f36f2e2dfefac4c8d274d930a98a", "sha256": "4bb79be0b2b7299b9b50e045c8fdd4056cd7a832f2a40400cb3a556239e2f3b2" }, "downloads": -1, "filename": "django_lang_switch-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "ade8f36f2e2dfefac4c8d274d930a98a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 5643, "upload_time": "2018-08-24T13:11:35", "url": "https://files.pythonhosted.org/packages/70/5c/a2766b6d922f5dce6455fddaf510102f2bbb0cc9aafa601f63b89f9f81c7/django_lang_switch-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c6f46493dfe5bda8b1981adffa6727b6", "sha256": "fa9e98250af58d2e572abcb145150184c5a2db4f60f00eda55e1f598aab341f1" }, "downloads": -1, "filename": "django-lang-switch-0.1.tar.gz", "has_sig": false, "md5_digest": "c6f46493dfe5bda8b1981adffa6727b6", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 17167, "upload_time": "2018-08-24T13:11:37", "url": "https://files.pythonhosted.org/packages/45/9b/f488adc44ceed6024096fe9d5aad9a32f3eafe2ba784f46925d220da1a8d/django-lang-switch-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "eb6b039692be0a674fac6a3aad220dca", "sha256": "c96eac9e8be04ad0775e5a4a28f323da082668f0239390cc6cb3684829af3fdf" }, "downloads": -1, "filename": "django_lang_switch-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "eb6b039692be0a674fac6a3aad220dca", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 6403, "upload_time": "2018-08-24T13:21:58", "url": "https://files.pythonhosted.org/packages/f1/65/8bdbbdd8852a69cc011f40f9ba51581a92d7a523c7aec2b16462e1cb65e6/django_lang_switch-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "51b8ece806c3b0394ac0a044bb6f53bc", "sha256": "9e2de9bbe68afb7319631d7f69328fcbaec31e22218791f050eaaaf68957826d" }, "downloads": -1, "filename": "django-lang-switch-0.2.tar.gz", "has_sig": false, "md5_digest": "51b8ece806c3b0394ac0a044bb6f53bc", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 17491, "upload_time": "2018-08-24T13:21:59", "url": "https://files.pythonhosted.org/packages/bd/c2/ec28a4523fd9da9014cc6980f318c3bbc776578366a1e9775bf2cfed06de/django-lang-switch-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "8f7ab9e86a157edb07c4a5ced0604853", "sha256": "290c423fe04a84d0f1750178131328c780f904bdf7a59dd97bc166e9eee7d3dd" }, "downloads": -1, "filename": "django_lang_switch-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "8f7ab9e86a157edb07c4a5ced0604853", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 9543, "upload_time": "2018-11-14T15:31:18", "url": "https://files.pythonhosted.org/packages/f1/2b/07cc6dad7e9401d18c609cd9730a2a54189edbc86801ad1381d4e8bd5ec6/django_lang_switch-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5a12ec0de97f02623a594ab92cae81d8", "sha256": "15c8d3cfff476a05fcd5036ca17837711cf5d4628882fa7eeb052e0d0bfaa04d" }, "downloads": -1, "filename": "django-lang-switch-0.3.tar.gz", "has_sig": false, "md5_digest": "5a12ec0de97f02623a594ab92cae81d8", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 18230, "upload_time": "2018-11-14T15:31:20", "url": "https://files.pythonhosted.org/packages/4a/07/e56deda6bfacf5c9bd3336811064b1769142a3375ad062d58a6b3f0e4059/django-lang-switch-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8f7ab9e86a157edb07c4a5ced0604853", "sha256": "290c423fe04a84d0f1750178131328c780f904bdf7a59dd97bc166e9eee7d3dd" }, "downloads": -1, "filename": "django_lang_switch-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "8f7ab9e86a157edb07c4a5ced0604853", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 9543, "upload_time": "2018-11-14T15:31:18", "url": "https://files.pythonhosted.org/packages/f1/2b/07cc6dad7e9401d18c609cd9730a2a54189edbc86801ad1381d4e8bd5ec6/django_lang_switch-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5a12ec0de97f02623a594ab92cae81d8", "sha256": "15c8d3cfff476a05fcd5036ca17837711cf5d4628882fa7eeb052e0d0bfaa04d" }, "downloads": -1, "filename": "django-lang-switch-0.3.tar.gz", "has_sig": false, "md5_digest": "5a12ec0de97f02623a594ab92cae81d8", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 18230, "upload_time": "2018-11-14T15:31:20", "url": "https://files.pythonhosted.org/packages/4a/07/e56deda6bfacf5c9bd3336811064b1769142a3375ad062d58a6b3f0e4059/django-lang-switch-0.3.tar.gz" } ] }