add missing format strings for translation

This commit is contained in:
Valentin Deniaud 2021-04-28 11:37:37 +02:00
parent 7f8353561d
commit a4c3fff8b9
2 changed files with 4 additions and 4 deletions

View File

@ -855,5 +855,5 @@ class RolesCsvImportForm(LimitQuerysetFormMixin, forms.Form):
self.roles.append(role)
def add_line_error(self, error, line):
error = _('%s (line %d)') % (error, line + 1)
error = _('%(error)s (line %(number)d)') % {'error': error, 'number': line + 1}
self.add_error('import_file', error)

View File

@ -391,12 +391,12 @@ class LoginOrLinkView(View):
messages.warning(
request,
_(
'Your FranceConnect email address "%s" is already used by the '
'FranceConnect account of "%s", so we cannot create an account for you. Please create '
'Your FranceConnect email address "%(email)s" is already used by the FranceConnect '
'account of "%(user)s", so we cannot create an account for you. Please create '
'an account with another email address then link it to FranceConnect '
'using your account management page.'
)
% (email, user.get_full_name()),
% {'email': email, 'user': user.get_full_name()},
)
else: # no email, we cannot disembiguate users, let's create it anyway
user = User.objects.create()