misc: use dictionary substitution in translable string (#37123)
This commit is contained in:
parent
7c707f6674
commit
a4666a8ecb
|
@ -304,9 +304,10 @@ class VirtualMember(models.Model):
|
|||
error = True
|
||||
error_msg += [
|
||||
_(
|
||||
'Meeting type "%s" (%s minutes) (identifier: %s) does no exist.'
|
||||
% (meetingtype.label, meetingtype.duration, meetingtype.slug)
|
||||
'Meeting type "%(label)s" (%(duration)s minutes) '
|
||||
'(identifier: %(slug)s) does no exist.'
|
||||
)
|
||||
% {'label': meetingtype.label, 'duration': meetingtype.duration, 'slug': meetingtype.slug}
|
||||
]
|
||||
if error:
|
||||
raise ValidationError(error_msg)
|
||||
|
|
Loading…
Reference in New Issue