Metadata-Version: 2.1
Name: django-languageselect
Version: 2.0.1
Summary: Simple language select as custom template tag
Home-page: https://github.com/RegioHelden/django-languageselect
Author: RegioHelden GmbH
Author-email: entwicklung@regiohelden.de
License: MIT license
Keywords: django_languageselect
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Description-Content-Type: text/x-rst
Requires-Dist: Django (>=2.2.19)

=====================
django_languageselect
=====================


.. image:: https://img.shields.io/pypi/v/django_languageselect.svg
        :target: https://pypi.python.org/pypi/django_languageselect

.. image:: https://img.shields.io/travis/RegioHelden/django-languageselect.svg
        :target: https://travis-ci.org/RegioHelden/django-languageselect

.. image:: https://readthedocs.org/projects/django-languageselect/badge/?version=latest
        :target: https://django-languageselect.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status


Simple language select as custom template tag


Requirements
============

- "django.middleware.locale.LocaleMiddleware" in MIDDLEWARE_CLASSES / MIDDLEWARE
- "django.core.context_processors.request" in TEMPLATE_CONTEXT_PROCESSORS / TEMPLATES['OPTIONS']['context_processors']
- Add 'django_languageselect', to INSTALLED_APPS

Usage:
======

{% load languageselect %}
{% languageselect %}

Routes:
=======

The only url provided by this application is "languageselect_index". Required GET-parameter is "language", optional GET-parameter is "next". Next contains the named url to redirect after the language change. This parameter is pre-filled with the current page url.
Customization

Feel free to use your own template, just add languageselect/layer.html


* Free software: MIT license
* Documentation: https://django-languageselect.readthedocs.io.

Tests
=====

Tests will be automatically run by travis on commit to master.

They can also be executed locally using docker-compose by running ```docker-compose up```

Requirements upgrades
=====================

Check for upgradeable packages by running ```docker-compose run --rm python pip-check```

Making a new release
====================

bumpversion_ is used to manage releases.

.. _bumpversion: https://github.com/peritus/bumpversion

Add your changes to the HISTORY_ and run ```docker-compose run --rm python bumpversion <major|minor|patch>```, then push (including tags)

.. _HISTORY: ./HISTORY.rst


=======
History
=======

2.0.1 (2021-03-25)
==================

* Fix documentation syntax

2.0.0 (2021-03-25)
==================

* Update packages
* Update Docker env
* Remove support for Django < 2.2

1.0.0 (2019-11-04)
==================

* Update packages
* Remove Python 2 support
* Add docker container to run tests locally

0.1.6 (2018-01-27)
==================

* Add missing folders and modules from package

0.1.5 (2018-01-15)
==================

* Add support for python 3 and Django 2, impleneting tests in travis ci


0.1.4 (2017-04-18)
==================

* Rename package to django_languageselect (backwards incompatible) to be able to import the module


0.1.3 (2016-06-17)
==================

*  Fix session key to store language, Django 1.9 compatibility


