nixpkgs/pkgs/by-name/pr/pretix/language-build.patch
Martin Weinelt 3f35c474b8
pretix: compile all languages at build time
Pretix wants to build locales according to the user configuration, which
does not exist in our case and leads to certain languages not being
built.

As our packages are immutable, the user config will never be able to
influence them and we therefore must enable all languages at build time.

Closes: #297708
2024-03-21 15:08:30 +01:00

13 lines
430 B
Diff

diff --git a/src/pretix/_build_settings.py b/src/pretix/_build_settings.py
index d1ea73b84..9e13cdc87 100644
--- a/src/pretix/_build_settings.py
+++ b/src/pretix/_build_settings.py
@@ -49,6 +49,7 @@ HAS_MEMCACHED = False
HAS_CELERY = False
HAS_GEOIP = False
SENTRY_ENABLED = False
+LANGUAGES = ALL_LANGUAGES
for entry_point in entry_points(group='pretix.plugin'):
INSTALLED_APPS.append(entry_point.module) # noqa: F405