String changes

This commit is contained in:
Kovid Goyal 2017-05-24 07:16:26 +05:30
parent 84f1b98ab8
commit a9e1c19210
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
9 changed files with 14 additions and 14 deletions

View File

@ -122,8 +122,8 @@ class DriverBase(DeviceConfig, DevicePlugin):
EXTRA_CUSTOMIZATION_MESSAGE = [ EXTRA_CUSTOMIZATION_MESSAGE = [
_('Use Series as Category in iTunes/iBooks') + _('Use Series as Category in iTunes/iBooks') +
':::' + _('Enable to use the series name as the iTunes Genre, ' ':::' + _('Enable to use the series name as the iTunes genre, '
'iBooks Category'), 'iBooks category'),
_('Cache covers from iTunes/iBooks') + ':::' + _( _('Cache covers from iTunes/iBooks') + ':::' + _(
'Enable to cache and display covers from iTunes/iBooks'), 'Enable to cache and display covers from iTunes/iBooks'),
_(u'"Copy files to iTunes Media folder %s" is enabled in iTunes Preferences|Advanced') % u'\u2026' + ':::' + _( _(u'"Copy files to iTunes Media folder %s" is enabled in iTunes Preferences|Advanced') % u'\u2026' + ':::' + _(

View File

@ -696,7 +696,7 @@ class DevicePlugin(Plugin):
name is ignored in cases where the device uses a template to generate name is ignored in cases where the device uses a template to generate
the file name, which most do. The second value in the returned tuple the file name, which most do. The second value in the returned tuple
indicated whether the format is future-dated. Return True if it is, indicated whether the format is future-dated. Return True if it is,
otherwise return False. Calibre will display a dialog to the user otherwise return False. calibre will display a dialog to the user
listing all future dated books. listing all future dated books.
Extremely important: this method is called on the GUI thread. It must Extremely important: this method is called on the GUI thread. It must

View File

@ -130,7 +130,7 @@
<item> <item>
<widget class="QCheckBox" name="generate_genres"> <widget class="QCheckBox" name="generate_genres">
<property name="toolTip"> <property name="toolTip">
<string>List of books, sorted by Genre</string> <string>List of books, sorted by genre</string>
</property> </property>
<property name="text"> <property name="text">
<string>&amp;Genres</string> <string>&amp;Genres</string>
@ -140,7 +140,7 @@
<item> <item>
<widget class="QComboBox" name="genre_source_field"> <widget class="QComboBox" name="genre_source_field">
<property name="toolTip"> <property name="toolTip">
<string>Field containing Genres</string> <string>Field containing genres</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -160,7 +160,7 @@
<string>List of books, sorted by date added to calibre</string> <string>List of books, sorted by date added to calibre</string>
</property> </property>
<property name="text"> <property name="text">
<string>&amp;Recently Added</string> <string>&amp;Recently added</string>
</property> </property>
</widget> </widget>
</item> </item>

View File

@ -276,7 +276,7 @@ class DisplayPluginModel(QAbstractTableModel):
def __init__(self, display_plugins): def __init__(self, display_plugins):
QAbstractTableModel.__init__(self) QAbstractTableModel.__init__(self)
self.display_plugins = display_plugins self.display_plugins = display_plugins
self.headers = map(unicode, [_('Plugin Name'), _('Donate'), _('Status'), _('Installed'), self.headers = map(unicode, [_('Plugin name'), _('Donate'), _('Status'), _('Installed'),
_('Available'), _('Released'), _('calibre'), _('Author')]) _('Available'), _('Released'), _('calibre'), _('Author')])
def rowCount(self, *args): def rowCount(self, *args):
@ -467,7 +467,7 @@ class PluginUpdaterDialog(SizePersistedDialog):
layout = QVBoxLayout(self) layout = QVBoxLayout(self)
self.setLayout(layout) self.setLayout(layout)
title_layout = ImageTitleLayout(self, 'plugins/plugin_updater.png', title_layout = ImageTitleLayout(self, 'plugins/plugin_updater.png',
_('User Plugins')) _('User plugins'))
layout.addLayout(title_layout) layout.addLayout(title_layout)
header_layout = QHBoxLayout() header_layout = QHBoxLayout()

View File

@ -40,12 +40,12 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
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><b>mi</b>: a Metadata 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>
<li><b>locals</b>: the local variables assigned to by the current <li><b>locals</b>: the local variables assigned to by the current
template program.</li> template program.</li>
<li><b>your parameters</b>: You must supply one or more formal <li><b>your parameters</b>: you must supply one or more formal
parameters. The number must match the arg count box, unless arg count is parameters. The number must match the arg count box, unless arg count is
-1 (variable number or arguments), in which case the last argument must -1 (variable number or arguments), in which case the last argument must
be *args. At least one argument is required, and is usually the value of be *args. At least one argument is required, and is usually the value of

View File

@ -51,7 +51,7 @@
<string/> <string/>
</property> </property>
<property name="text"> <property name="text">
<string>Arg &amp;count:</string> <string>Argument &amp;count:</string>
</property> </property>
<property name="buddy"> <property name="buddy">
<cstring>argument_count</cstring> <cstring>argument_count</cstring>

View File

@ -497,7 +497,7 @@ class Main(MainWindow):
self.action_multiple_split = treg( self.action_multiple_split = treg(
'document-split.png', _('&Split at multiple locations'), self.boss.multisplit, 'multisplit', (), _( 'document-split.png', _('&Split at multiple locations'), self.boss.multisplit, 'multisplit', (), _(
'Split HTML file at multiple locations')) 'Split HTML file at multiple locations'))
self.action_compare_book = treg('diff.png', _('&Compare to another book'), self.boss.compare_book, 'compare-book', (), _( self.action_compare_book = treg('diff.png', _('Compare to &another book'), self.boss.compare_book, 'compare-book', (), _(
'Compare to another book')) 'Compare to another book'))
self.action_manage_snippets = treg( self.action_manage_snippets = treg(
'snippets.png', _('Manage &Snippets'), self.boss.manage_snippets, 'manage-snippets', (), _( 'snippets.png', _('Manage &Snippets'), self.boss.manage_snippets, 'manage-snippets', (), _(

View File

@ -126,7 +126,7 @@ class EPUB_MOBI(CatalogPlugin):
default=_('Tags'), default=_('Tags'),
dest='genre_source_field', dest='genre_source_field',
action=None, action=None,
help=_("Source field for Genres section.\n" help=_("Source field for 'Genres' section.\n"
"Default: '%default'\n" "Default: '%default'\n"
"Applies to: AZW3, EPUB, MOBI output formats")), "Applies to: AZW3, EPUB, MOBI output formats")),
Option('--header-note-source-field', Option('--header-note-source-field',

View File

@ -3887,7 +3887,7 @@ class CatalogBuilder(object):
ncx_soup (file): updated ncx_soup (file): updated
""" """
self.update_progress_full_step(_("NCX for Genres")) self.update_progress_full_step(_("NCX for genres"))
if not len(self.genres): if not len(self.genres):
self.opts.log.warn(" No genres found\n" self.opts.log.warn(" No genres found\n"