From 6c907e016838a1eb024b8696eed0f5a58a21ef0b Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Fri, 8 May 2020 19:06:04 +0200 Subject: [PATCH] Name of syntheses --- apps/tournament/views.py | 3 ++- locale/fr/LC_MESSAGES/django.po | 28 ++++++++++++++++------------ 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/apps/tournament/views.py b/apps/tournament/views.py index 9384825..39fecab 100644 --- a/apps/tournament/views.py +++ b/apps/tournament/views.py @@ -524,7 +524,8 @@ class PoolDetailView(LoginRequiredMixin, DetailView): resp = HttpResponse(out.getvalue(), content_type="application/x-zip-compressed") resp['Content-Disposition'] = 'attachment; filename={}' \ - .format(_("Syntheses of a pool.zip").replace(" ", "%20")) + .format(_("Syntheses of a pool for the round {round} of the tournament {tournament}.zip") + .format(round=pool.round, tournament=str(pool.tournament)).replace(" ", "%20")) return resp return self.get(request, *args, **kwargs) diff --git a/locale/fr/LC_MESSAGES/django.po b/locale/fr/LC_MESSAGES/django.po index f077c5d..ab6c9ec 100644 --- a/locale/fr/LC_MESSAGES/django.po +++ b/locale/fr/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: TFJM2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-05-08 16:29+0200\n" +"POT-Creation-Date: 2020-05-08 19:05+0200\n" "PO-Revision-Date: 2020-04-29 02:30+0000\n" "Last-Translator: Yohann D'ANELLO \n" "Language-Team: fr \n" @@ -271,23 +271,25 @@ msgstr "synthèses" #: apps/member/models.py:300 #, python-brace-format msgid "" -"Synthesis of team {trigram} that is {source} for the tournament {tournament}" +"Synthesis of team {trigram} that is {source} for the round {round} of " +"tournament {tournament}" msgstr "" -"Synthèse de l'équipe {trigram} qui est {source} pour le tournoi {tournament}" +"Synthèse de l'équipe {trigram} qui est {source} pour le tour {round} du " +"tournoi {tournament}" -#: apps/member/models.py:308 +#: apps/member/models.py:309 msgid "key" msgstr "clé" -#: apps/member/models.py:313 +#: apps/member/models.py:314 msgid "value" msgstr "valeur" -#: apps/member/models.py:317 +#: apps/member/models.py:318 msgid "configuration" msgstr "configuration" -#: apps/member/models.py:318 +#: apps/member/models.py:319 msgid "configurations" msgstr "configurations" @@ -680,8 +682,10 @@ msgid "Solutions of a pool.zip" msgstr "Solutions d'une poule.zip" #: apps/tournament/views.py:527 -msgid "Syntheses of a pool.zip" -msgstr "Notes de synthèse d'une poule.zip" +#, python-brace-format +msgid "" +"Syntheses of a pool for the round {round} of the tournament {tournament}.zip" +msgstr "Synthèse d'une poule du tour {round} du tournoi {tournament}.zip" #: templates/400.html:6 msgid "Bad request" @@ -1039,9 +1043,9 @@ msgid "" "However, you have an extra time of 30 minutes to send your papers, no " "panic :)" msgstr "" -"La date limite pour envoyer vos notes de synthèses pour le tour %(round)s est " -"dépassée. Toutefois, vous avez droit à un délai supplémentaire de 30 minutes " -"pour envoyer vos papiers, pas de panique :)" +"La date limite pour envoyer vos notes de synthèses pour le tour %(round)s " +"est dépassée. Toutefois, vous avez droit à un délai supplémentaire de 30 " +"minutes pour envoyer vos papiers, pas de panique :)" #: templates/tournament/syntheses_list.html:22 #: templates/tournament/syntheses_list.html:34