french translation

This commit is contained in:
bkfox
2020-05-27 17:44:57 +02:00
parent 18e70ebbaf
commit 4076368ff7
14 changed files with 182 additions and 411 deletions

View File

@ -8,12 +8,6 @@ from .program import Program, ProgramChildQuerySet
class Article(Page):
detail_url_name = 'article-detail'
is_static = models.BooleanField(
_('is static'), default=False,
help_text=_('Should this article be considered as a page '
'instead of a blog article'),
)
objects = ProgramChildQuerySet.as_manager()
class Meta:

View File

@ -73,7 +73,7 @@ class DiffusionQuerySet(BaseRerunQuerySet):
def date(self, date=None, order=True):
""" Diffusions occuring date. """
date = date or datetime.date.date()
date = date or datetime.date.today()
start = tz.datetime.combine(date, datetime.time())
end = tz.datetime.combine(date, datetime.time(23, 59, 59, 999))
qs = self.filter(start__range = (start, end))

View File

@ -181,10 +181,9 @@ class BaseRerun(models.Model):
)
initial = models.ForeignKey(
'self', models.SET_NULL, related_name='rerun_set',
verbose_name=_('initial schedule'),
verbose_name=_('rerun of'),
limit_choices_to={'initial__isnull': True},
blank=True, null=True,
help_text=_('mark as rerun of this %(model_name)'),
)
objects = BaseRerunQuerySet.as_manager()
@ -226,7 +225,7 @@ class BaseRerun(models.Model):
super().clean()
if self.initial is not None and self.initial.start >= self.start:
raise ValidationError({
'initial': _('rerun must happen after initial')
'initial': _('rerun must happen after original')
})
@ -278,8 +277,8 @@ class Schedule(BaseRerun):
'third': _('3rd {day} of the month'),
'fourth': _('4th {day} of the month'),
'last': _('last {day} of the month'),
'first_and_third': _('1st and 3rd {day}s of the month'),
'second_and_fourth': _('2nd and 4th {day}s of the month'),
'first_and_third': _('1st and 3rd {day} of the month'),
'second_and_fourth': _('2nd and 4th {day} of the month'),
'every': _('every {day}'),
'one_on_two': _('one {day} on two'),
}[x]) for x, y in Frequency.__members__.items()],

View File

@ -289,7 +289,7 @@ class Track(models.Model):
timestamp = models.PositiveSmallIntegerField(
_('timestamp'),
blank=True, null=True,
help_text=_('position in seconds')
help_text=_('position (in seconds)')
)
title = models.CharField(_('title'), max_length=128)
artist = models.CharField(_('artist'), max_length=128)

View File

@ -68,7 +68,7 @@ class Station(models.Model):
)
default_cover = FilerImageField(
on_delete=models.SET_NULL,
verbose_name=_('Default pages cover'), null=True, blank=True,
verbose_name=_('Default pages\' cover'), null=True, blank=True,
related_name='+',
)