Я использую перевод во всех моих формах, но я не знаю, почему только одно поле не переведено, тогда как все остальные переведены правильно ...
. Я вижу, что мой французский перевод появляется, когда я нажимаю F5, но сразу же Engli sh отображается метка ...
models.py
class Aveugle(models.Model):
unb_ide = models.AutoField(primary_key=True)
unb_val = models.IntegerField("I have read ITBM procedure and want to unblind treatment", null=True, blank=True)
unb_pro = models.IntegerField("Procedure flow", null=True, blank=True)
unb_nom_dem = models.CharField("Surname and firstname of the person requesting unblind", max_length=20, null=True, blank=True)
unb_nom_rea = models.CharField("Surname and firstname of the person requesting realizing unblind", max_length=20, null=True, blank=True)
unb_dat = models.DateField("Date request", null=True, blank=True)
pat = models.CharField("Patient code",max_length=10, unique=True, null=True, blank=True, error_messages={'unique':"Patient\'s treatment already unblind."})
unb_num = models.CharField("Drug batch number",max_length=6, null=True, blank=True)
unb_mot = models.IntegerField("Request reason",null=True, blank=True)
unb_rec = models.IntegerField("I certify that I have read the treatment received by the patient",null=True, blank=True)
unb_com = models.CharField("Additional explanations",max_length=255, null=True, blank=True)
unb_log_dat = models.DateTimeField("Date", null=True, blank=True)
unb_log = models.CharField("User connected", max_length=10, null=True, blank=True)
unb_log_sit = models.CharField("Site",max_length=2,null=True, blank=True)
log = HistoricalRecords()
class Meta:
db_table = 'crf_unb'
verbose_name_plural = 'unblind'
ordering = ['unb_ide']
permissions = [
('can_unblind','Can unblind a patient treatment'),
]
@classmethod
def nombre_enregistrement(cls):
return cls.objects.count()
def __str__(self):
return f"{self.unb_ide}"
django .po
...
#: .\unblind\forms.py:94
msgid "I certify that I have read the treatment received by the patient"
msgstr "J'atteste avoir lu le traitement reçu par ce patient"
...