From fd587099cb738b29b843fd98345171d425cef727 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Wed, 20 Jan 2021 23:34:33 +0100 Subject: [PATCH] Channel titles are in french --- apps/participation/management/commands/fix_matrix_channels.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/participation/management/commands/fix_matrix_channels.py b/apps/participation/management/commands/fix_matrix_channels.py index 71d987c..a2dd5be 100644 --- a/apps/participation/management/commands/fix_matrix_channels.py +++ b/apps/participation/management/commands/fix_matrix_channels.py @@ -5,6 +5,7 @@ import os from asgiref.sync import async_to_sync from django.core.management import BaseCommand +from django.utils.translation import activate from participation.models import Team, Tournament from registration.models import AdminRegistration, Registration, VolunteerRegistration from tfjm.matrix import Matrix, RoomPreset, RoomVisibility @@ -12,6 +13,8 @@ from tfjm.matrix import Matrix, RoomPreset, RoomVisibility class Command(BaseCommand): def handle(self, *args, **options): # noqa: C901 + activate("fr") + Matrix.set_display_name("Bot du TFJM²") if not os.getenv("SYNAPSE_PASSWORD"):