mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
string changes
This commit is contained in:
parent
a0695c24b4
commit
b67e54744a
@ -402,7 +402,7 @@ def manage_users_cli(path=None, args=()):
|
|||||||
names = list(filter(None, [x.strip() for x in names.split(',')]))
|
names = list(filter(None, [x.strip() for x in names.split(',')]))
|
||||||
w = 'allowed_library_names' if c == 1 else 'blocked_library_names'
|
w = 'allowed_library_names' if c == 1 else 'blocked_library_names'
|
||||||
t = _('Allowing access only to libraries: {}') if c == 1 else _(
|
t = _('Allowing access only to libraries: {}') if c == 1 else _(
|
||||||
'Allowing access to all libraries, except Exception: {}')
|
'Allowing access to all libraries, except: {}')
|
||||||
prints(t.format(', '.join(names)))
|
prints(t.format(', '.join(names)))
|
||||||
m.update_user_restrictions(username, {w: names})
|
m.update_user_restrictions(username, {w: names})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user