Commit Graph

24 Commits (a52f670c857b612ee35af0dc82ca3acc6d14a2ed)

Author SHA1 Message Date
Julian Wachholz b393c11ecb
Simplify language chooser (#328)
* 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
2023-12-05 12:18:44 +01:00
Fabio Caccamo d269de0b63 Add Russian language to tests. 2023-06-26 21:45:36 +02:00
Fabio Caccamo 191d82a5c2 Set max line length to `88`. 2023-02-13 15:52:13 +01:00
Fabio Caccamo fa81b2ea5e Reformat code. 2023-02-09 19:14:51 +01:00
derzinn 14634aa505
Add german translation (#222)
* 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
2022-12-05 10:13:11 +01:00
Éric d62593e01b
Drop old Python and Django versions (#220)
* drop old python and django versions

* fix tests

* remove compat module entirely

Co-authored-by: Fabio Caccamo <fabio.caccamo@gmail.com>
2022-12-03 13:49:09 +01:00
Fabio Caccamo 2141298e27 Add Farsi language to `tests.settings.LANGUAGES`.
Co-Authored-By: Éric <635179+merwok@users.noreply.github.com>
2022-12-01 09:52:34 +01:00
Vasanth 23511d04b2
Fix #208 - do not assume active DB when not specified (#210).
* 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>
2022-11-26 09:53:33 +01:00
Vasanth 946b9c98e0
Respect 'using' in signals (#200) 2022-11-18 13:07:59 +01:00
Fabio Caccamo 03e5cbdf9e Fix `pt-BR` language code. 2022-10-17 14:42:07 +02:00
Fabio Caccamo d48c8cc182 Fix `pt_br` language code. 2022-10-17 14:37:08 +02:00
Fabio Caccamo ead930d3b4 Replace `update-translations.sh` script with `makemessages --all`. 2022-10-17 14:24:35 +02:00
Fabio Caccamo f4617ac126 Update `tests.settings.LANGUAGES` list. 2022-10-17 14:21:44 +02:00
Fabio Caccamo 5e58c35b08 Run `pre-commit`. 2022-10-14 17:31:57 +02:00
Fabio Caccamo e64614274c Reformatted code with Black. 2022-02-08 18:58:59 +01:00
Fabio Caccamo cc4c379465 Fixed missing comma in tests settings `MIDDLEWARE_CLASSES`. #145 2022-01-04 18:16:53 +01:00
Fabio Caccamo 70ed000f08 Replaced travis with GitHub action workflow. #142 2021-12-07 10:43:46 +01:00
Fabio Caccamo 11f7440273 Improved tests coverage. 2020-10-21 12:27:14 +02:00
Fabio Caccamo 28dfc70474 Fixed tests warning (admin.W411). 2020-09-15 09:47:01 +02:00
Fabio Caccamo 8bffc8f82a Added postgres to tox and travis and included django 2.2. 2019-02-06 16:23:22 +01:00
Fabio Caccamo ab0afff087 Added automatic check of 3rd party installed apps according to django version. 2018-10-11 12:11:32 +02:00
Fabio Caccamo 6a1897b95c Updated tests, tox and travis to support django 2.1 and python 3.7. 2018-10-10 15:48:43 +02:00
Fabio Caccamo d1c912e875 Added django 1.11 support 2017-04-14 13:13:12 +02:00
Fabio Caccamo aa18e19625 Added tests 2017-03-29 16:21:41 +02:00