Name of solutions

This commit is contained in:
Yohann D'ANELLO 2020-05-08 19:44:46 +02:00
parent 6c907e0168
commit 5668e1e642
2 changed files with 8 additions and 5 deletions

View File

@ -508,7 +508,8 @@ class PoolDetailView(LoginRequiredMixin, DetailView):
resp = HttpResponse(out.getvalue(), content_type="application/x-zip-compressed")
resp['Content-Disposition'] = 'attachment; filename={}' \
.format(_("Solutions of a pool.zip").replace(" ", "%20"))
.format(_("Solutions of a pool for the round {round} of the tournament {tournament}.zip")
.format(round=pool.round, tournament=str(pool.tournament)).replace(" ", "%20"))
return resp
elif "syntheses_zip" in request.POST and user.organizes:
if user.participates and pool.round == 2 and pool.tournament.date_solutions_2 > timezone.now():

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: TFJM2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-08 19:05+0200\n"
"POT-Creation-Date: 2020-05-08 19:44+0200\n"
"PO-Revision-Date: 2020-04-29 02:30+0000\n"
"Last-Translator: Yohann D'ANELLO <yohann.danello@animath.fr>\n"
"Language-Team: fr <LL@li.org>\n"
@ -678,10 +678,12 @@ msgid "Pool detail"
msgstr "Détails d'une poule"
#: apps/tournament/views.py:511
msgid "Solutions of a pool.zip"
msgstr "Solutions d'une poule.zip"
#, python-brace-format
msgid ""
"Solutions of a pool for the round {round} of the tournament {tournament}.zip"
msgstr "solutions d'une poule du tour {round} du tournoi {tournament}.zip"
#: apps/tournament/views.py:527
#: apps/tournament/views.py:528
#, python-brace-format
msgid ""
"Syntheses of a pool for the round {round} of the tournament {tournament}.zip"