String changes

This commit is contained in:
Kovid Goyal 2017-05-30 13:14:53 +05:30
parent e22c566e0f
commit f732d03d75
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
11 changed files with 17 additions and 17 deletions

View File

@ -203,7 +203,7 @@ right click and choose Link stylesheets to have calibre automatically insert the
<div style="clear:both"></div> <div style="clear:both"></div>
Search & Replace Search & replace
------------------- -------------------
Edit book has a very powerful search and replace interface that allows you to Edit book has a very powerful search and replace interface that allows you to
@ -246,7 +246,7 @@ You can save frequently used search/replace expressions and reuse them multiple
To save a search simply right click in the Find box and select :guilabel:`Save current search`. To save a search simply right click in the Find box and select :guilabel:`Save current search`.
You can bring up the dialog of saved searches via :guilabel:`Search->Saved You can bring up the dialog of saved searches via :guilabel:`Search->Saved
Searches`. This will present you with a list of search and replace expressions searches`. This will present you with a list of search and replace expressions
that you can apply. You can even select multiple entries in the list by holding that you can apply. You can even select multiple entries in the list by holding
down the Ctrl Key while clicking so as to run multiple search and replace down the Ctrl Key while clicking so as to run multiple search and replace
expressions in a single operation. expressions in a single operation.

View File

@ -1,4 +1,4 @@
Function Mode for Search & Replace in the Editor Function mode for Search & replace in the Editor
================================================ ================================================
The :guilabel:`Search & replace` tool in the editor support a *function mode*. The :guilabel:`Search & replace` tool in the editor support a *function mode*.
@ -340,7 +340,7 @@ to output an entire table of contents above.
Choose file order when running on multiple HTML files Choose file order when running on multiple HTML files
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
When you run a :guilabel:`Replace All` on multiple HTML files, the order in When you run a :guilabel:`Replace all` on multiple HTML files, the order in
which the files are processes depends on what files you have open for editing. which the files are processes depends on what files you have open for editing.
You can force the search to process files in the order in which the appear by You can force the search to process files in the order in which the appear by
setting the ``file_order`` attribute on your function, like this: setting the ``file_order`` attribute on your function, like this:

View File

@ -315,7 +315,7 @@ The Search & Sort section allows you to perform several powerful actions on your
* You can search for a particular book or set of books using the search bar. More on that below. * You can search for a particular book or set of books using the search bar. More on that below.
* You can quickly and conveniently edit metadata by double-clicking the entry you want changed in the list. * You can quickly and conveniently edit metadata by selecting the entry you want changed in the list and pressing the :kbd:`E` key.
* You can perform :ref:`actions` on sets to books. To select multiple books you can either: * You can perform :ref:`actions` on sets to books. To select multiple books you can either:

View File

@ -185,7 +185,7 @@ gui_last_modified_display_format = 'dd MMM yyyy'
# book will sort under 'T'. # book will sort under 'T'.
# This flag affects calibre's library display. It has no effect on devices. In # This flag affects calibre's library display. It has no effect on devices. In
# addition, titles for books added before changing the flag will retain their # addition, titles for books added before changing the flag will retain their
# order until the title is edited. Double-clicking on a title and hitting return # order until the title is edited. Editing a title and hitting return
# without changing anything is sufficient to change the sort. Or you can use # without changing anything is sufficient to change the sort. Or you can use
# the 'Update title sort' action in the Bulk metadata edit dialog to update # the 'Update title sort' action in the Bulk metadata edit dialog to update
# it for many books at once. # it for many books at once.

View File

@ -134,7 +134,7 @@ class InputFormatPlugin(Plugin):
The main action happens in :meth:`convert`. The main action happens in :meth:`convert`.
''' '''
type = _('Conversion Input') type = _('Conversion input')
can_be_disabled = False can_be_disabled = False
supported_platforms = ['windows', 'osx', 'linux'] supported_platforms = ['windows', 'osx', 'linux']

View File

@ -1051,7 +1051,7 @@ class Cover(ImageView): # {{{
self.clicked.connect(action) self.clicked.connect(action)
self.select_cover_button = CB(_('&Browse'), 'document_open.png', self.select_cover) self.select_cover_button = CB(_('&Browse'), 'document_open.png', self.select_cover)
self.trim_cover_button = b = CB(_('T&rim borders'), 'trim.png') self.trim_cover_button = b = CB(_('Trim bord&ers'), 'trim.png')
b.setToolTip(_( b.setToolTip(_(
'Automatically detect and remove extra space at the cover\'s edges.\n' 'Automatically detect and remove extra space at the cover\'s edges.\n'
'Pressing it repeatedly can sometimes remove stubborn borders.')) 'Pressing it repeatedly can sometimes remove stubborn borders.'))
@ -1449,7 +1449,7 @@ class Identifiers(Dialog):
class IdentifiersEdit(QLineEdit, ToMetadataMixin): class IdentifiersEdit(QLineEdit, ToMetadataMixin):
LABEL = _('I&ds:') LABEL = _('&Ids:')
BASE_TT = _('Edit the identifiers for this book. ' BASE_TT = _('Edit the identifiers for this book. '
'For example: \n\n%s')%( 'For example: \n\n%s')%(
'isbn:1565927249, doi:10.1000/182, amazon:1565927249') 'isbn:1565927249, doi:10.1000/182, amazon:1565927249')
@ -1741,7 +1741,7 @@ class DateEdit(make_undoable(QDateTimeEdit), ToMetadataMixin):
class PubdateEdit(DateEdit): class PubdateEdit(DateEdit):
LABEL = _('Publishe&d:') LABEL = _('P&ublished:')
FMT = 'MMM yyyy' FMT = 'MMM yyyy'
ATTR = FIELD_NAME = 'pubdate' ATTR = FIELD_NAME = 'pubdate'
TWEAK = 'gui_pubdate_display_format' TWEAK = 'gui_pubdate_display_format'

View File

@ -28,7 +28,7 @@ from calibre.library.coloring import (Rule, conditionable_columns,
from calibre.utils.localization import lang_map from calibre.utils.localization import lang_map
from calibre.utils.icu import lower from calibre.utils.icu import lower
all_columns_string = _('All Columns') all_columns_string = _('All columns')
icon_rule_kinds = [(_('icon with text'), 'icon'), icon_rule_kinds = [(_('icon with text'), 'icon'),
(_('icon with no text'), 'icon_only'), (_('icon with no text'), 'icon_only'),

View File

@ -205,7 +205,7 @@
<item> <item>
<widget class="QPushButton" name="configure_plugin_button"> <widget class="QPushButton" name="configure_plugin_button">
<property name="text"> <property name="text">
<string>Configure selected source</string> <string>C&amp;onfigure selected source</string>
</property> </property>
<property name="icon"> <property name="icon">
<iconset resource="../../../../resources/images.qrc"> <iconset resource="../../../../resources/images.qrc">
@ -225,7 +225,7 @@
<string>When downloading comments, append the downloaded comments to any existing comment, instead of overwriting them.</string> <string>When downloading comments, append the downloaded comments to any existing comment, instead of overwriting them.</string>
</property> </property>
<property name="text"> <property name="text">
<string>Append &amp;comments to existing</string> <string>Append comments to &amp;existing</string>
</property> </property>
</widget> </widget>
</item> </item>

View File

@ -570,7 +570,7 @@ class User(QWidget):
self.cpb = b = QPushButton(_('Change &password')) self.cpb = b = QPushButton(_('Change &password'))
l.addWidget(b) l.addWidget(b)
b.clicked.connect(self.change_password) b.clicked.connect(self.change_password)
self.ro_text = _('Allow {} to make changes (i.e. grant write access)?') self.ro_text = _('Allow {} to make &changes (i.e. grant write access)?')
self.rw = rw = QCheckBox(self) self.rw = rw = QCheckBox(self)
rw.setToolTip( rw.setToolTip(
_( _(
@ -613,7 +613,7 @@ class User(QWidget):
b = _('Change the blocked libraries') b = _('Change the blocked libraries')
else: else:
m = _('{} is currently allowed access to all libraries') m = _('{} is currently allowed access to all libraries')
b = _('Restrict the libraries {} can access'.format(self.username)) b = _('Restrict the &libraries {} can access'.format(self.username))
self.restrict_button.setText(b), self.restrict_button.setText(b),
self.access_label.setText(m.format(username)) self.access_label.setText(m.format(username))

View File

@ -39,7 +39,7 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
evaluate the current template. You can use this to do recursive evaluate the current template. You can use this to do recursive
template evaluation.</li> template evaluation.</li>
<li><b>kwargs</b>: a dictionary of metadata. Field values are in this <li><b>kwargs</b>: a dictionary of metadata. Field values are in this
dictionary. dictionary.</li>
<li><b>mi</b>: a <i>Metadata</i> instance. Used to get field information. <li><b>mi</b>: a <i>Metadata</i> instance. Used to get field information.
This parameter can be None in some cases, such as when evaluating This parameter can be None in some cases, such as when evaluating
non-book templates.</li> non-book templates.</li>

View File

@ -357,7 +357,7 @@ class Main(MainWindow):
group = _('Editor actions') group = _('Editor actions')
self.action_editor_undo = reg('edit-undo.png', _('&Undo'), self.boss.do_editor_undo, 'editor-undo', 'Ctrl+Z', self.action_editor_undo = reg('edit-undo.png', _('&Undo'), self.boss.do_editor_undo, 'editor-undo', 'Ctrl+Z',
_('Undo typing')) _('Undo typing'))
self.action_editor_redo = reg('edit-redo.png', _('&Redo'), self.boss.do_editor_redo, 'editor-redo', 'Ctrl+Y', self.action_editor_redo = reg('edit-redo.png', _('R&edo'), self.boss.do_editor_redo, 'editor-redo', 'Ctrl+Y',
_('Redo typing')) _('Redo typing'))
self.action_editor_cut = reg('edit-cut.png', _('Cut &text'), self.boss.do_editor_cut, 'editor-cut', ('Ctrl+X', 'Shift+Delete', ), self.action_editor_cut = reg('edit-cut.png', _('Cut &text'), self.boss.do_editor_cut, 'editor-cut', ('Ctrl+X', 'Shift+Delete', ),
_('Cut text')) _('Cut text'))