mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
String changes
This commit is contained in:
parent
aa9bfb5c59
commit
464fafd047
@ -725,7 +725,7 @@ class User(QWidget):
|
|||||||
self.cpb = b = QPushButton(_('Change &password'))
|
self.cpb = b = QPushButton(_('Change &password'))
|
||||||
l.addWidget(b)
|
l.addWidget(b)
|
||||||
b.clicked.connect(self.change_password)
|
b.clicked.connect(self.change_password)
|
||||||
self.ro_text = _('Allow {} to make &changes (i.e. grant write access)?')
|
self.ro_text = _('Allow {} to make &changes (i.e. grant write access)')
|
||||||
self.rw = rw = QCheckBox(self)
|
self.rw = rw = QCheckBox(self)
|
||||||
rw.setToolTip(
|
rw.setToolTip(
|
||||||
_(
|
_(
|
||||||
|
@ -122,10 +122,10 @@ def manage_users_cli(path=None):
|
|||||||
def change_readonly(username):
|
def change_readonly(username):
|
||||||
readonly = m.is_readonly(username)
|
readonly = m.is_readonly(username)
|
||||||
if readonly:
|
if readonly:
|
||||||
q = _('Allow {} to make changes (i.e. grant write access)?')
|
q = _('Allow {} to make changes (i.e. grant write access)')
|
||||||
else:
|
else:
|
||||||
q = _('Prevent {} from making changes (i.e. remove write access)?')
|
q = _('Prevent {} from making changes (i.e. remove write access)')
|
||||||
if get_input(q.format(username) + ' [y/n]:').lower() == 'y':
|
if get_input(q.format(username) + '? [y/n]:').lower() == 'y':
|
||||||
m.set_readonly(username, not readonly)
|
m.set_readonly(username, not readonly)
|
||||||
|
|
||||||
def change_restriction(username):
|
def change_restriction(username):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user