1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2025-07-09 07:30:19 +02:00

Translate models in english

This commit is contained in:
2021-10-23 18:31:03 +02:00
parent 2a17a32d4c
commit 52ecd59bf6
21 changed files with 210 additions and 155 deletions

View File

@ -9,7 +9,7 @@ from django.utils.translation import gettext_lazy as _
from .fields import ISBNField
class Auteur(models.Model):
class Author(models.Model):
name = models.CharField(
max_length=255,
unique=True,
@ -30,7 +30,7 @@ class Auteur(models.Model):
ordering = ['name']
class BD(models.Model):
class Comic(models.Model):
isbn = ISBNField(
_('ISBN'),
help_text=_('You may be able to scan it from a bar code.'),
@ -61,7 +61,7 @@ class BD(models.Model):
)
authors = models.ManyToManyField(
'Auteur',
'Author',
verbose_name=_('authors'),
)
@ -90,8 +90,8 @@ class BD(models.Model):
return self.title
class Meta:
verbose_name = _("BD")
verbose_name_plural = _("BDs")
verbose_name = _("comic")
verbose_name_plural = _("comics")
ordering = ['title', 'subtitle']
@ -126,7 +126,7 @@ class Manga(models.Model):
)
authors = models.ManyToManyField(
'Auteur',
'Author',
verbose_name=_('authors'),
)
@ -157,7 +157,7 @@ class Manga(models.Model):
ordering = ['title']
class Roman(models.Model):
class Novel(models.Model):
isbn = ISBNField(
_('ISBN'),
help_text=_('You may be able to scan it from a bar code.'),
@ -188,7 +188,7 @@ class Roman(models.Model):
)
authors = models.ManyToManyField(
'Auteur',
'Author',
verbose_name=_('authors'),
)
@ -214,12 +214,12 @@ class Roman(models.Model):
return self.title
class Meta:
verbose_name = _("roman")
verbose_name_plural = _("romans")
verbose_name = _("novel")
verbose_name_plural = _("novels")
ordering = ['title', 'subtitle']
class Vinyle(models.Model):
class Vinyl(models.Model):
title = models.CharField(
verbose_name=_('title'),
max_length=255,
@ -239,7 +239,7 @@ class Vinyle(models.Model):
)
authors = models.ManyToManyField(
'Auteur',
'Author',
verbose_name=_('authors'),
)
@ -253,8 +253,8 @@ class Vinyle(models.Model):
return self.title
class Meta:
verbose_name = _("vinyle")
verbose_name_plural = _("vinyles")
verbose_name = _("vinyl")
verbose_name_plural = _("vinyls")
ordering = ['title']
@ -270,7 +270,7 @@ class CD(models.Model):
)
authors = models.ManyToManyField(
'Auteur',
'Author',
verbose_name=_('authors'),
)
@ -289,7 +289,7 @@ class CD(models.Model):
ordering = ['title']
class Revue(models.Model):
class Review(models.Model):
title = models.CharField(
verbose_name=_('title'),
max_length=255,
@ -335,12 +335,12 @@ class Revue(models.Model):
return self.title + "" + str(self.number)
class Meta:
verbose_name = _("revue")
verbose_name_plural = _("revues")
verbose_name = _("review")
verbose_name_plural = _("reviews")
ordering = ['title', 'number']
class FutureMedia(models.Model):
class FutureMedium(models.Model):
isbn = ISBNField(
_('ISBN'),
help_text=_('You may be able to scan it from a bar code.'),
@ -352,7 +352,7 @@ class FutureMedia(models.Model):
type = models.CharField(
_('type'),
choices=[
('bd', _('BD')),
('bd', _('Comic')),
('manga', _('Manga')),
('roman', _('Roman')),
],
@ -375,7 +375,7 @@ class FutureMedia(models.Model):
class Emprunt(models.Model):
media = models.ForeignKey(
'BD',
'Comic',
on_delete=models.PROTECT,
)
user = models.ForeignKey(
@ -417,7 +417,7 @@ class Emprunt(models.Model):
ordering = ['-date_emprunt']
class Jeu(models.Model):
class Game(models.Model):
DUREE = (
('-1h', '-1h'),
('1-2h', '1-2h'),