string changes

This commit is contained in:
Kovid Goyal 2025-07-16 14:45:17 +05:30
parent a0695c24b4
commit b67e54744a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -371,7 +371,7 @@ class APNX(QWidget): # {{{
self.method = f2 = QComboBox(self) self.method = f2 = QComboBox(self)
f2.addItem(_('fast'), 'fast') f2.addItem(_('fast'), 'fast')
f2.addItem(_('accurate'), 'accurate') f2.addItem(_('accurate'), 'accurate')
f2.addItem(_('pagebreak'), 'pagebreak') f2.addItem(_('page break'), 'pagebreak')
if (idx := f2.findData(apnx.get('method') or 'fast')) > -1: if (idx := f2.findData(apnx.get('method') or 'fast')) > -1:
f2.setCurrentIndex(idx) f2.setCurrentIndex(idx)
l.addWidget(f2) l.addWidget(f2)

View File

@ -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})