* Simplify language chooser
- Allows usage of i18n_patterns with prefix_default_language=False
- Change templatetag from simple tag to an inclusion tag
- Reduces complexity by relying on Django's behavior in the
set_language view: it will translate any url passed as 'next'.
This behavior has been present since Django 1.9.
- Remove individual forms for each language
Fixes#327
Reference: aa5ab114e3
* Add check to ensure LocaleMiddleware
* Remove check in favor of silent warning
* Fix template tag tests
* Added german translation
* Updated languages for test cases
* Updated identical message strings
* Updated django.po with corrected file paths
* Re-generated django.mo file
* Language lists sorted by code for test cases
* Do not assume active DB when not specified
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Add db routing test case
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* one more test
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* use assertRaises instead of expectedFailure
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Catch a general exception for django < 2.0
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* use `with` instead of callable
* skip test for django < 2.0
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* remove repeated test
Co-authored-by: vaz <vmohan@lenbox.io>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>