String changes

This commit is contained in:
Kovid Goyal 2017-04-23 21:12:27 +05:30
parent cc073015f5
commit 5847f36df9
13 changed files with 20 additions and 26 deletions

View File

@ -107,7 +107,7 @@ class TweakEpubAction(InterfaceAction):
fmts = [x.upper().strip() for x in fmts.split(',')] fmts = [x.upper().strip() for x in fmts.split(',')]
tweakable_fmts = set(fmts).intersection(SUPPORTED) tweakable_fmts = set(fmts).intersection(SUPPORTED)
if not tweakable_fmts: if not tweakable_fmts:
return error_dialog(self.gui, _('Cannot Edit book'), return error_dialog(self.gui, _('Cannot edit book'),
_('The book must be in the %s formats to edit.' _('The book must be in the %s formats to edit.'
'\n\nFirst convert the book to one of these formats.') % (_(' or ').join(SUPPORTED)), '\n\nFirst convert the book to one of these formats.') % (_(' or ').join(SUPPORTED)),
show=True) show=True)

View File

@ -203,7 +203,7 @@ class ViewAction(InterfaceAction):
def _view_check(self, num, max_=3): def _view_check(self, num, max_=3):
if num <= max_: if num <= max_:
return True return True
return question_dialog(self.gui, _('Multiple Books Selected'), return question_dialog(self.gui, _('Multiple books selected'),
_('You are attempting to open %d books. Opening too many ' _('You are attempting to open %d books. Opening too many '
'books at once can be slow and have a negative effect on the ' 'books at once can be slow and have a negative effect on the '
'responsiveness of your computer. Once started the process ' 'responsiveness of your computer. Once started the process '

View File

@ -14,7 +14,7 @@ from PyQt5.Qt import QWidget, QListWidgetItem
class PluginWidget(QWidget, Ui_Form): class PluginWidget(QWidget, Ui_Form):
TITLE = _('BibTeX Options') TITLE = _('BibTeX options')
HELP = _('Options specific to')+' BibTeX '+_('output') HELP = _('Options specific to')+' BibTeX '+_('output')
OPTION_FIELDS = [('bib_cit','{authors}{id}'), OPTION_FIELDS = [('bib_cit','{authors}{id}'),
('bib_entry', 0), # mixed ('bib_entry', 0), # mixed

View File

@ -13,7 +13,7 @@ from PyQt5.Qt import QWidget, QListWidgetItem, Qt, QVBoxLayout, QLabel, QListWid
class PluginWidget(QWidget): class PluginWidget(QWidget):
TITLE = _('CSV/XML Options') TITLE = _('CSV/XML options')
HELP = _('Options specific to')+' CSV/XML '+_('output') HELP = _('Options specific to')+' CSV/XML '+_('output')
sync_enabled = False sync_enabled = False
formats = set(['csv', 'xml']) formats = set(['csv', 'xml'])
@ -46,7 +46,7 @@ class PluginWidget(QWidget):
if x == 'isbn': if x == 'isbn':
return 'ISBN' return 'ISBN'
if x == 'library_name': if x == 'library_name':
return _('Library Name') return _('Library name')
if x.endswith('_index'): if x.endswith('_index'):
return name(x[:-len('_index')]) + ' ' + _('Number') return name(x[:-len('_index')]) + ' ' + _('Number')
return fm[x].get('name') or x return fm[x].get('name') or x

View File

@ -448,7 +448,7 @@ The default pattern \[.+\]|\+ excludes tags of the form [tag], e.g., [Test book]
</size> </size>
</property> </property>
<property name="toolTip"> <property name="toolTip">
<string>Custom column containing additional content to be merged with Comments metadata in Descriptions section.</string> <string>Custom column containing additional content to be merged with comments metadata in the descriptions section.</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -462,7 +462,7 @@ The default pattern \[.+\]|\+ excludes tags of the form [tag], e.g., [Test book]
<item> <item>
<widget class="QRadioButton" name="merge_before"> <widget class="QRadioButton" name="merge_before">
<property name="toolTip"> <property name="toolTip">
<string>Merge additional content before Comments in Descriptions section.</string> <string>Merge additional content before comments in descriptions section.</string>
</property> </property>
<property name="text"> <property name="text">
<string>&amp;Before</string> <string>&amp;Before</string>
@ -475,7 +475,7 @@ The default pattern \[.+\]|\+ excludes tags of the form [tag], e.g., [Test book]
<item> <item>
<widget class="QRadioButton" name="merge_after"> <widget class="QRadioButton" name="merge_after">
<property name="toolTip"> <property name="toolTip">
<string>Merge additional content after Comments in Descriptions section.</string> <string>Merge additional content after comments in descriptions section.</string>
</property> </property>
<property name="text"> <property name="text">
<string>&amp;After</string> <string>&amp;After</string>
@ -495,10 +495,10 @@ The default pattern \[.+\]|\+ excludes tags of the form [tag], e.g., [Test book]
<item> <item>
<widget class="QCheckBox" name="include_hr"> <widget class="QCheckBox" name="include_hr">
<property name="toolTip"> <property name="toolTip">
<string>Separate Comments metadata and additional content with a horizontal rule in Descriptions section.</string> <string>Separate comments metadata and additional content with a horizontal rule in the descriptions section.</string>
</property> </property>
<property name="text"> <property name="text">
<string>Include &amp;Separator</string> <string>Include &amp;separator</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -519,7 +519,7 @@ The default pattern \[.+\]|\+ excludes tags of the form [tag], e.g., [Test book]
</size> </size>
</property> </property>
<property name="text"> <property name="text">
<string>&amp;Merge with Comments:</string> <string>&amp;Merge with comments:</string>
</property> </property>
<property name="alignment"> <property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>

View File

@ -117,7 +117,7 @@ class EditorWidget(QWebView): # {{{
('Indent', 'indent', 'format-indent-more', ('Indent', 'indent', 'format-indent-more',
_('Increase indentation'), False), _('Increase indentation'), False),
('Outdent', 'outdent', 'format-indent-less', ('Outdent', 'outdent', 'format-indent-less',
_('Decrease Indentation'), False), _('Decrease indentation'), False),
('SelectAll', 'select_all', 'edit-select-all', ('SelectAll', 'select_all', 'edit-select-all',
_('Select all'), False), _('Select all'), False),
]: ]:

View File

@ -78,7 +78,7 @@ class BulkConfig(Config):
return cls(self.stack, self.plumber.get_option_by_name, return cls(self.stack, self.plumber.get_option_by_name,
self.plumber.get_option_help, self.db) self.plumber.get_option_help, self.db)
self.setWindowTitle(_('Bulk Convert')) self.setWindowTitle(_('Bulk convert'))
lf = widget_factory(LookAndFeelWidget) lf = widget_factory(LookAndFeelWidget)
hw = widget_factory(HeuristicsWidget) hw = widget_factory(HeuristicsWidget)
sr = widget_factory(SearchAndReplaceWidget) sr = widget_factory(SearchAndReplaceWidget)
@ -142,5 +142,3 @@ class BulkConfig(Config):
gprefs['convert_bulk_dialog_geom'] = \ gprefs['convert_bulk_dialog_geom'] = \
bytearray(self.saveGeometry()) bytearray(self.saveGeometry())
return QDialog.done(self, r) return QDialog.done(self, r)

View File

@ -13,7 +13,7 @@ from calibre.gui2.convert import Widget
class PluginWidget(Widget, Ui_Form): class PluginWidget(Widget, Ui_Form):
TITLE = _('Comic Input') TITLE = _('Comic input')
HELP = _('Options specific to')+' comic '+_('input') HELP = _('Options specific to')+' comic '+_('input')
COMMIT_NAME = 'comic_input' COMMIT_NAME = 'comic_input'
ICON = I('mimetypes/png.png') ICON = I('mimetypes/png.png')
@ -32,5 +32,3 @@ class PluginWidget(Widget, Ui_Form):
self.initialize_options(get_option, get_help, db, book_id) self.initialize_options(get_option, get_help, db, book_id)
self.opt_no_process.toggle() self.opt_no_process.toggle()
self.opt_no_process.toggle() self.opt_no_process.toggle()

View File

@ -12,7 +12,7 @@ from calibre.gui2.convert import Widget
class PluginWidget(Widget, Ui_Form): class PluginWidget(Widget, Ui_Form):
TITLE = _('DOCX Input') TITLE = _('DOCX input')
HELP = _('Options specific to')+' DOCX '+_('input') HELP = _('Options specific to')+' DOCX '+_('input')
COMMIT_NAME = 'docx_input' COMMIT_NAME = 'docx_input'
ICON = I('mimetypes/docx.png') ICON = I('mimetypes/docx.png')
@ -21,4 +21,3 @@ class PluginWidget(Widget, Ui_Form):
Widget.__init__(self, parent, Widget.__init__(self, parent,
['docx_no_cover', 'docx_no_pagebreaks_between_notes', 'docx_inline_subsup']) ['docx_no_cover', 'docx_no_pagebreaks_between_notes', 'docx_inline_subsup'])
self.initialize_options(get_option, get_help, db, book_id) self.initialize_options(get_option, get_help, db, book_id)

View File

@ -14,7 +14,7 @@ orientation_model = None
class PluginWidget(Widget): class PluginWidget(Widget):
TITLE = _('DOCX Output') TITLE = _('DOCX output')
HELP = _('Options specific to')+' DOCX '+_('output') HELP = _('Options specific to')+' DOCX '+_('output')
COMMIT_NAME = 'docx_output' COMMIT_NAME = 'docx_output'
ICON = I('mimetypes/docx.png') ICON = I('mimetypes/docx.png')

View File

@ -13,7 +13,7 @@ from calibre.gui2.convert import Widget
class PluginWidget(Widget, Ui_Form): class PluginWidget(Widget, Ui_Form):
TITLE = _('EPUB Output') TITLE = _('EPUB output')
HELP = _('Options specific to')+' EPUB '+_('output') HELP = _('Options specific to')+' EPUB '+_('output')
COMMIT_NAME = 'epub_output' COMMIT_NAME = 'epub_output'
ICON = I('mimetypes/epub.png') ICON = I('mimetypes/epub.png')
@ -29,4 +29,3 @@ class PluginWidget(Widget, Ui_Form):
self.opt_no_svg_cover.toggle() self.opt_no_svg_cover.toggle()
self.db, self.book_id = db, book_id self.db, self.book_id = db, book_id
self.initialize_options(get_option, get_help, db, book_id) self.initialize_options(get_option, get_help, db, book_id)

View File

@ -12,7 +12,7 @@ format_model = None
class PluginWidget(Widget, Ui_Form): class PluginWidget(Widget, Ui_Form):
TITLE = _('FB2 Output') TITLE = _('FB2 output')
HELP = _('Options specific to')+' FB2 '+_('output') HELP = _('Options specific to')+' FB2 '+_('output')
COMMIT_NAME = 'fb2_output' COMMIT_NAME = 'fb2_output'
ICON = I('mimetypes/fb2.png') ICON = I('mimetypes/fb2.png')

View File

@ -269,8 +269,8 @@ class ImageDropMixin(object): # {{{
def build_context_menu(self): def build_context_menu(self):
cm = QMenu(self) cm = QMenu(self)
paste = cm.addAction(_('Paste Cover')) paste = cm.addAction(_('Paste cover'))
copy = cm.addAction(_('Copy Cover')) copy = cm.addAction(_('Copy cover'))
if not QApplication.instance().clipboard().mimeData().hasImage(): if not QApplication.instance().clipboard().mimeData().hasImage():
paste.setEnabled(False) paste.setEnabled(False)
copy.triggered.connect(self.copy_to_clipboard) copy.triggered.connect(self.copy_to_clipboard)