From 1a1e41211b0557c523beaed9cd1586779c6d7fef Mon Sep 17 00:00:00 2001 From: jorgepastorr Date: Mon, 18 Nov 2024 12:35:25 +0100 Subject: [PATCH] musician only 3 languages --- orchestra/contrib/musician/mixins.py | 4 +++- orchestra/contrib/musician/settings.py | 6 ++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/orchestra/contrib/musician/mixins.py b/orchestra/contrib/musician/mixins.py index 4c98f278..c0189275 100644 --- a/orchestra/contrib/musician/mixins.py +++ b/orchestra/contrib/musician/mixins.py @@ -6,6 +6,7 @@ from django.views.generic.base import ContextMixin from orchestra import get_version from . import api +from .settings import LANGUAGES from .auth import SESSION_KEY_TOKEN @@ -29,7 +30,8 @@ class CustomContextMixin(ContextMixin): context.update({ 'services_menu': services_menu, 'version': get_version(), - 'languages': settings.LANGUAGES, + # 'languages': settings.LANGUAGES, + 'languages': LANGUAGES, }) return context diff --git a/orchestra/contrib/musician/settings.py b/orchestra/contrib/musician/settings.py index 0836a2eb..2a113cd6 100644 --- a/orchestra/contrib/musician/settings.py +++ b/orchestra/contrib/musician/settings.py @@ -70,3 +70,9 @@ MUSICIAN_WEBSITES_ENABLE_GROUP_DIRECTIVE = Setting('MUSICIAN_WEBSITES_ENABLE_GRO ), help_text="Valid groups: HTTPD, ModSecurity, SSL, SaaS" ) + +LANGUAGES = [ + ('en', 'English'), + ('es', 'Spanish'), + ('ca', 'Catalan'), +] \ No newline at end of file