diff --git a/.make/conf.d/django.mk b/.make/conf.d/django.mk index 99c4d03..49079be 100644 --- a/.make/conf.d/django.mk +++ b/.make/conf.d/django.mk @@ -5,9 +5,12 @@ pot: @echo "Creating or updating .pot file …" @django-admin makemessages \ - -l en \ + --locale en \ --keep-pot \ - --ignore 'build/*' + --ignore 'build/*' \ + --ignore 'node_modules/*' \ + --ignore 'testauth/*' \ + --ignore 'runtests.py' @current_app_version=$$(pip show $(appname) | grep 'Version: ' | awk '{print $$NF}'); \ sed -i "/\"Project-Id-Version: /c\\\"Project-Id-Version: $(appname_verbose) $$current_app_version\\\n\"" $(translation_template); \ sed -i "/\"Report-Msgid-Bugs-To: /c\\\"Report-Msgid-Bugs-To: $(git_repository_issues)\\\n\"" $(translation_template); @@ -18,9 +21,12 @@ add_translation: @echo "Adding a new translation" @read -p "Enter the language code (e.g. 'en_GB'): " language_code; \ django-admin makemessages \ - -l $$language_code \ + --locale $$language_code \ --keep-pot \ - --ignore 'build/*'; \ + --ignore 'build/*' \ + --ignore 'node_modules/*' \ + --ignore 'testauth/*' \ + --ignore 'runtests.py'; \ current_app_version=$$(pip show $(appname) | grep 'Version: ' | awk '{print $$NF}'); \ sed -i "/\"Project-Id-Version: /c\\\"Project-Id-Version: $(appname_verbose) $$current_app_version\\\n\"" $(translation_template); \ sed -i "/\"Report-Msgid-Bugs-To: /c\\\"Report-Msgid-Bugs-To: $(git_repository_issues)\\\n\"" $(translation_template); \ @@ -34,21 +40,24 @@ add_translation: translations: @echo "Creating or updating translation files" @django-admin makemessages \ - -l cs_CZ \ - -l de \ - -l es \ - -l fr_FR \ - -l it_IT \ - -l ja \ - -l ko_KR \ - -l nl_NL \ - -l pl_PL \ - -l ru \ - -l sk \ - -l uk \ - -l zh_Hans \ + --locale cs_CZ \ + --locale de \ + --locale es \ + --locale fr_FR \ + --locale it_IT \ + --locale ja \ + --locale ko_KR \ + --locale nl_NL \ + --locale pl_PL \ + --locale ru \ + --locale sk \ + --locale uk \ + --locale zh_Hans \ --keep-pot \ - --ignore 'build/*' + --ignore 'build/*' \ + --ignore 'node_modules/*' \ + --ignore 'testauth/*' \ + --ignore 'runtests.py' @current_app_version=$$(pip show $(appname) | grep 'Version: ' | awk '{print $$NF}'); \ sed -i "/\"Project-Id-Version: /c\\\"Project-Id-Version: $(appname_verbose) $$current_app_version\\\n\"" $(translation_template); \ sed -i "/\"Report-Msgid-Bugs-To: /c\\\"Report-Msgid-Bugs-To: $(git_repository_issues)\\\n\"" $(translation_template); \ @@ -69,19 +78,19 @@ translations: compile_translations: @echo "Compiling translation files" @django-admin compilemessages \ - -l cs_CZ \ - -l de \ - -l es \ - -l fr_FR \ - -l it_IT \ - -l ja \ - -l ko_KR \ - -l nl_NL \ - -l pl_PL \ - -l ru \ - -l sk \ - -l uk \ - -l zh_Hans + --locale cs_CZ \ + --locale de \ + --locale es \ + --locale fr_FR \ + --locale it_IT \ + --locale ja \ + --locale ko_KR \ + --locale nl_NL \ + --locale pl_PL \ + --locale ru \ + --locale sk \ + --locale uk \ + --locale zh_Hans # Migrate all database changes .PHONY: migrate diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ce73c7..0cb9b61 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,10 +35,20 @@ Section Order: ### Security --> +## [2.3.0] - 2025-01-21 + ### Fixed - Panel ID for Australia +### Changed + +- Updated translations +- SRI hash calculation now using `django-sri` package provided by Alliance Auth +- Minimum requirements: + - Alliance Auth >= 4.6.0 + - pytz >= 2024.2 + ## [2.2.3] - 2025-01-13 ### Fixed diff --git a/pyproject.toml b/pyproject.toml index a49418c..734175c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,9 +39,9 @@ dynamic = [ "version", ] dependencies = [ - "allianceauth>=4.3.1,<5", + "allianceauth>=4.6,<5", "allianceauth-app-utils>=1.25", - "pytz>=2023.3.post1", + "pytz>=2024.2", ] optional-dependencies.tests-allianceauth-latest = [ "allianceauth-discordbot", diff --git a/timezones/__init__.py b/timezones/__init__.py index da8d8f1..78a44fc 100644 --- a/timezones/__init__.py +++ b/timezones/__init__.py @@ -5,5 +5,5 @@ # Django from django.utils.translation import gettext_lazy as _ -__version__ = "2.2.3" +__version__ = "2.3.0" __title__ = _("Time Zones")