Better language in no space left-message.

This commit is contained in:
Dag Heyman 2016-06-09 10:07:22 +02:00
parent 98b26459e8
commit e2e87581cf
2 changed files with 3 additions and 3 deletions

View File

@ -166,8 +166,8 @@ def put(ctx, key, destination, name, oath_type, digits, imf, touch):
controller.add_cred(dev, name, key, oath_type, digits=digits,
imf=imf, require_touch=touch)
except NoSpaceError:
ctx.fail('There is no space available on your device. Maybe you '
'can delete som entries?')
ctx.fail('There is not enough space to add another credential on your device.'
'To create free space to add a new credential, delete those you no longer need.')
else:
controller.add_cred_legacy(destination, key, touch)

View File

@ -127,7 +127,7 @@ ccid_disabled = '<b>CCID (smart card capabilities) is disabled on the ' \
'able to store 2 credentials.<br><br>' \
'<a href="%s">Learn how to enable CCID</a><br>'
no_space="No space available"
no_space_desc="There is no space available on your device. Maybe you can delete som entries?"
no_space_desc="There is not enough space to add another credential on your device.\n\nTo create free space to add a new credential, delete those you no longer need."
def _translate(qt):
values = globals()