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
3dc50b41ca
commit
2cb3a3c637
@ -129,7 +129,7 @@ def validate_rule(rule):
|
||||
if err:
|
||||
return _('Invalid {}').format(m.placeholder), err
|
||||
if not rule['actions']:
|
||||
return _('No actions'), _('The rules has no actions')
|
||||
return _('No actions'), _('The rule has no actions')
|
||||
for action in rule['actions']:
|
||||
err = validate_action(action)
|
||||
if err:
|
||||
|
@ -24,6 +24,8 @@ from calibre.gui2.widgets2 import Dialog
|
||||
from calibre.utils.config import JSONConfig
|
||||
|
||||
|
||||
# Classes for rule edit widget {{{
|
||||
|
||||
class TagAction(QWidget):
|
||||
|
||||
remove_action = pyqtSignal(object)
|
||||
@ -174,6 +176,7 @@ class CSSEdit(QWidget):
|
||||
@value.setter
|
||||
def value(self, val):
|
||||
self.edit.value = val
|
||||
# }}}
|
||||
|
||||
|
||||
class RuleEdit(QWidget): # {{{
|
||||
@ -347,7 +350,7 @@ class Tester(Dialog): # {{{
|
||||
return self.html.toPlainText()
|
||||
|
||||
def do_test(self):
|
||||
raise NotImplementedError('TODO: Implement this')
|
||||
pass # TODO: Implement this
|
||||
|
||||
def sizeHint(self):
|
||||
return QSize(800, 600)
|
||||
|
Loading…
x
Reference in New Issue
Block a user