String changes

This commit is contained in:
Kovid Goyal 2020-01-06 18:35:55 +05:30
parent aa9bfb5c59
commit 464fafd047
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 4 deletions

View File

@ -725,7 +725,7 @@ class User(QWidget):
self.cpb = b = QPushButton(_('Change &password'))
l.addWidget(b)
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)
rw.setToolTip(
_(

View File

@ -122,10 +122,10 @@ def manage_users_cli(path=None):
def change_readonly(username):
readonly = m.is_readonly(username)
if readonly:
q = _('Allow {} to make changes (i.e. grant write access)?')
q = _('Allow {} to make changes (i.e. grant write access)')
else:
q = _('Prevent {} from making changes (i.e. remove write access)?')
if get_input(q.format(username) + ' [y/n]:').lower() == 'y':
q = _('Prevent {} from making changes (i.e. remove write access)')
if get_input(q.format(username) + '? [y/n]:').lower() == 'y':
m.set_readonly(username, not readonly)
def change_restriction(username):