1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2025-06-29 21:11:08 +02:00

Translate game fields into english

This commit is contained in:
2021-10-23 18:39:51 +02:00
parent 7396cfc017
commit 9f5807e3b5
4 changed files with 73 additions and 29 deletions

View File

@ -53,11 +53,11 @@ class Command(BaseCommand):
for game in Game.objects.order_by("name").all():
f.write(f"## {game.name}\n\n\n")
f.write(f"Durée : {game.duree}\n\n")
f.write(f"Nombre de joueurs : {game.nombre_joueurs_min} "
f"- {game.nombre_joueurs_max}\n\n")
if game.proprietaire.username != "Med":
f.write(f"Propriétaire : {game.proprietaire.username}\n\n")
f.write(f"Durée : {game.duration}\n\n")
f.write(f"Nombre de joueurs : {game.players_min} "
f"- {game.players_max}\n\n")
if game.owner.username != "Med":
f.write(f"Propriétaire : {game.owner.username}\n\n")
if game.comment:
f.write(f"Commentaire : {game.comment}\n\n")
f.write("\n\n\n")