mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Make the structure of required dictionary URLs more clear
This commit is contained in:
parent
1a15bf6ea3
commit
e828f7d41d
@ -220,9 +220,9 @@ class ConfigDialog(QDialog, Ui_Dialog):
|
|||||||
QDialog.__init__(self, parent)
|
QDialog.__init__(self, parent)
|
||||||
self.setWindowTitle(_('Add a dictionary website'))
|
self.setWindowTitle(_('Add a dictionary website'))
|
||||||
self.l = l = QFormLayout(self)
|
self.l = l = QFormLayout(self)
|
||||||
self.la = la = QLabel(
|
self.la = la = QLabel('<p>'+
|
||||||
_('Choose a language and enter the website address (URL) for it below.'
|
_('Choose a language and enter the website address (URL) for it below.'
|
||||||
' The URL must have %s in it, which will be replaced by the actual word being'
|
' The URL must have the placeholder <b>%s</b> in it, which will be replaced by the actual word being'
|
||||||
' looked up') % '{word}')
|
' looked up') % '{word}')
|
||||||
la.setWordWrap(True)
|
la.setWordWrap(True)
|
||||||
l.addRow(la)
|
l.addRow(la)
|
||||||
@ -240,7 +240,7 @@ class ConfigDialog(QDialog, Ui_Dialog):
|
|||||||
def accept(self):
|
def accept(self):
|
||||||
if '{word}' not in self.url.text():
|
if '{word}' not in self.url.text():
|
||||||
return error_dialog(self, _('Invalid URL'), _(
|
return error_dialog(self, _('Invalid URL'), _(
|
||||||
'The URL {0} does not have {1} in it.').format(self.url.text(), '{word}'), show=True)
|
'The URL {0} does not have the placeholder <b>{1}</b> in it.').format(self.url.text(), '{word}'), show=True)
|
||||||
QDialog.accept(self)
|
QDialog.accept(self)
|
||||||
|
|
||||||
d = AD(self)
|
d = AD(self)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user