add missing format strings for translation
This commit is contained in:
parent
7f8353561d
commit
a4c3fff8b9
|
@ -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)
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue