From 4cda6d42e4cd53abf0e31adb8df96c71e1797bcc Mon Sep 17 00:00:00 2001 From: bkfox Date: Sun, 31 May 2020 16:17:11 +0200 Subject: [PATCH] fix translation --- aircox/locale/fr/LC_MESSAGES/django.po | 5 ++++- aircox/models/program.py | 2 +- aircox/templates/aircox/program_header.html | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/aircox/locale/fr/LC_MESSAGES/django.po b/aircox/locale/fr/LC_MESSAGES/django.po index f6a0079..39ec09a 100644 --- a/aircox/locale/fr/LC_MESSAGES/django.po +++ b/aircox/locale/fr/LC_MESSAGES/django.po @@ -123,10 +123,13 @@ msgid "edit the diffusion's planification" msgstr "éditer la planification de la diffusion" #: aircox/models/episode.py:180 aircox/templates/aircox/episode_detail.html:22 -#: aircox/templates/aircox/program_header.html:21 msgid "rerun" msgstr "rediffusion" +#: aircox/templates/aircox/program_header.html:21 +msgid "Rerun" +msgstr "Rediffusion" + #: aircox/models/log.py:82 msgid "stop" msgstr "stop" diff --git a/aircox/models/program.py b/aircox/models/program.py index f78afc5..27d8a8e 100644 --- a/aircox/models/program.py +++ b/aircox/models/program.py @@ -320,7 +320,7 @@ class Schedule(BaseRerun): from django.template.defaultfilters import date return self.get_frequency_display().format( day=date(self.date, 'l') - ) + ).capitalize() # initial cached data __initial = None diff --git a/aircox/templates/aircox/program_header.html b/aircox/templates/aircox/program_header.html index c2a18c8..3c9a476 100644 --- a/aircox/templates/aircox/program_header.html +++ b/aircox/templates/aircox/program_header.html @@ -18,7 +18,7 @@ FIXME: consider moving into the "widgets" directory. {% if schedule.initial %} {% with schedule.initial.date as date %} - ({% trans "rerun" %}) + ({% trans "Rerun" %}) {% endwith %} {% endif %}