From 5668e1e64267f45c57ea7e051d47ba011aa1f5eb Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Fri, 8 May 2020 19:44:46 +0200 Subject: [PATCH] Name of solutions --- apps/tournament/views.py | 3 ++- locale/fr/LC_MESSAGES/django.po | 10 ++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/apps/tournament/views.py b/apps/tournament/views.py index 39fecab..45611e9 100644 --- a/apps/tournament/views.py +++ b/apps/tournament/views.py @@ -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(): diff --git a/locale/fr/LC_MESSAGES/django.po b/locale/fr/LC_MESSAGES/django.po index ab6c9ec..1d38dc3 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 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 \n" "Language-Team: fr \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"