String changes

This commit is contained in:
Kovid Goyal
2017-12-14 06:56:50 +05:30
parent 37966b0916
commit e53f68eb88
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1117,7 +1117,7 @@ class Columns(PreferencesPlugin):
class Toolbar(PreferencesPlugin):
name = 'Toolbar'
icon = I('wizard.png')
gui_name = _('Toolbars and menus')
gui_name = _('Toolbars & menus')
category = 'Interface'
gui_category = _('Interface')
category_order = 1
+1 -2
View File
@@ -23,7 +23,7 @@ class DuplicatesQuestion(QDialog):
QDialog.__init__(self, parent)
self.l = l = QGridLayout()
self.setLayout(l)
t = ngettext('Duplicate found', 'Duplicates found', len(duplicates))
t = ngettext('Duplicate found', 'duplicates found', len(duplicates))
if len(duplicates) > 1:
t = '%d %s' % (len(duplicates), t)
self.setWindowTitle(t)
@@ -161,4 +161,3 @@ if __name__ == '__main__':
d = DuplicatesQuestion(db, [(M('Life of Pi', ['Yann Martel']), None, None),
(M('Heirs of the blade', ['Adrian Tchaikovsky']), None, None)])
print (tuple(d.duplicates))
+3 -2
View File
@@ -189,6 +189,7 @@ class ImportForeign(Dialog): # {{{
def setup_ui(self):
self.l = l = QFormLayout(self)
l.setFieldGrowthPolicy(l.AllNonFixedFieldsGrow)
self.setLayout(l)
la = self.la = QLabel(_(
@@ -206,7 +207,7 @@ class ImportForeign(Dialog): # {{{
b.setIcon(QIcon(I('document_open.png')))
b.setText(_('Choose file'))
h1.addWidget(b)
l.addRow(_('Source file'), h1)
l.addRow(_('Source file:'), h1)
b.clicked.connect(self.choose_source)
b.setFocus(Qt.OtherFocusReason)
@@ -218,7 +219,7 @@ class ImportForeign(Dialog): # {{{
b.setIcon(QIcon(I('document_open.png')))
b.setText(_('Choose file'))
h1.addWidget(b)
l.addRow(_('Destination file'), h1)
l.addRow(_('Destination file:'), h1)
b.clicked.connect(self.choose_destination)
l.addRow(self.bb)