mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
String changes
This commit is contained in:
parent
37966b0916
commit
e53f68eb88
@ -1117,7 +1117,7 @@ class Columns(PreferencesPlugin):
|
|||||||
class Toolbar(PreferencesPlugin):
|
class Toolbar(PreferencesPlugin):
|
||||||
name = 'Toolbar'
|
name = 'Toolbar'
|
||||||
icon = I('wizard.png')
|
icon = I('wizard.png')
|
||||||
gui_name = _('Toolbars and menus')
|
gui_name = _('Toolbars & menus')
|
||||||
category = 'Interface'
|
category = 'Interface'
|
||||||
gui_category = _('Interface')
|
gui_category = _('Interface')
|
||||||
category_order = 1
|
category_order = 1
|
||||||
|
@ -23,7 +23,7 @@ class DuplicatesQuestion(QDialog):
|
|||||||
QDialog.__init__(self, parent)
|
QDialog.__init__(self, parent)
|
||||||
self.l = l = QGridLayout()
|
self.l = l = QGridLayout()
|
||||||
self.setLayout(l)
|
self.setLayout(l)
|
||||||
t = ngettext('Duplicate found', 'Duplicates found', len(duplicates))
|
t = ngettext('Duplicate found', 'duplicates found', len(duplicates))
|
||||||
if len(duplicates) > 1:
|
if len(duplicates) > 1:
|
||||||
t = '%d %s' % (len(duplicates), t)
|
t = '%d %s' % (len(duplicates), t)
|
||||||
self.setWindowTitle(t)
|
self.setWindowTitle(t)
|
||||||
@ -161,4 +161,3 @@ if __name__ == '__main__':
|
|||||||
d = DuplicatesQuestion(db, [(M('Life of Pi', ['Yann Martel']), None, None),
|
d = DuplicatesQuestion(db, [(M('Life of Pi', ['Yann Martel']), None, None),
|
||||||
(M('Heirs of the blade', ['Adrian Tchaikovsky']), None, None)])
|
(M('Heirs of the blade', ['Adrian Tchaikovsky']), None, None)])
|
||||||
print (tuple(d.duplicates))
|
print (tuple(d.duplicates))
|
||||||
|
|
||||||
|
@ -189,6 +189,7 @@ class ImportForeign(Dialog): # {{{
|
|||||||
|
|
||||||
def setup_ui(self):
|
def setup_ui(self):
|
||||||
self.l = l = QFormLayout(self)
|
self.l = l = QFormLayout(self)
|
||||||
|
l.setFieldGrowthPolicy(l.AllNonFixedFieldsGrow)
|
||||||
self.setLayout(l)
|
self.setLayout(l)
|
||||||
|
|
||||||
la = self.la = QLabel(_(
|
la = self.la = QLabel(_(
|
||||||
@ -206,7 +207,7 @@ class ImportForeign(Dialog): # {{{
|
|||||||
b.setIcon(QIcon(I('document_open.png')))
|
b.setIcon(QIcon(I('document_open.png')))
|
||||||
b.setText(_('Choose file'))
|
b.setText(_('Choose file'))
|
||||||
h1.addWidget(b)
|
h1.addWidget(b)
|
||||||
l.addRow(_('Source file'), h1)
|
l.addRow(_('Source file:'), h1)
|
||||||
b.clicked.connect(self.choose_source)
|
b.clicked.connect(self.choose_source)
|
||||||
b.setFocus(Qt.OtherFocusReason)
|
b.setFocus(Qt.OtherFocusReason)
|
||||||
|
|
||||||
@ -218,7 +219,7 @@ class ImportForeign(Dialog): # {{{
|
|||||||
b.setIcon(QIcon(I('document_open.png')))
|
b.setIcon(QIcon(I('document_open.png')))
|
||||||
b.setText(_('Choose file'))
|
b.setText(_('Choose file'))
|
||||||
h1.addWidget(b)
|
h1.addWidget(b)
|
||||||
l.addRow(_('Destination file'), h1)
|
l.addRow(_('Destination file:'), h1)
|
||||||
b.clicked.connect(self.choose_destination)
|
b.clicked.connect(self.choose_destination)
|
||||||
|
|
||||||
l.addRow(self.bb)
|
l.addRow(self.bb)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user