mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 11:52:20 +01:00 
			
		
		
		
	Channel titles are in french
This commit is contained in:
		@@ -5,6 +5,7 @@ import os
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
from asgiref.sync import async_to_sync
 | 
					from asgiref.sync import async_to_sync
 | 
				
			||||||
from django.core.management import BaseCommand
 | 
					from django.core.management import BaseCommand
 | 
				
			||||||
 | 
					from django.utils.translation import activate
 | 
				
			||||||
from participation.models import Team, Tournament
 | 
					from participation.models import Team, Tournament
 | 
				
			||||||
from registration.models import AdminRegistration, Registration, VolunteerRegistration
 | 
					from registration.models import AdminRegistration, Registration, VolunteerRegistration
 | 
				
			||||||
from tfjm.matrix import Matrix, RoomPreset, RoomVisibility
 | 
					from tfjm.matrix import Matrix, RoomPreset, RoomVisibility
 | 
				
			||||||
@@ -12,6 +13,8 @@ from tfjm.matrix import Matrix, RoomPreset, RoomVisibility
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
class Command(BaseCommand):
 | 
					class Command(BaseCommand):
 | 
				
			||||||
    def handle(self, *args, **options):  # noqa: C901
 | 
					    def handle(self, *args, **options):  # noqa: C901
 | 
				
			||||||
 | 
					        activate("fr")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        Matrix.set_display_name("Bot du TFJM²")
 | 
					        Matrix.set_display_name("Bot du TFJM²")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if not os.getenv("SYNAPSE_PASSWORD"):
 | 
					        if not os.getenv("SYNAPSE_PASSWORD"):
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user