String changes

This commit is contained in:
Kovid Goyal 2017-04-22 11:02:28 +05:30
parent 114074c2fd
commit 40684801db
10 changed files with 17 additions and 17 deletions

View File

@ -102,7 +102,7 @@ After creating the saved search, you can use it as a restriction.
.. image:: images/sg_restrict2.jpg
:align: center
Useful Template Functions
Useful template functions
-------------------------
You might want to use the genre information in a template, such as with save to disk or send to device. The question might then be "How do I get the outermost genre name or names?" A calibre template function, subitems, is provided to make doing this easier.

View File

@ -438,10 +438,10 @@ The following program produces the same results as the original recipe, using on
It would be possible to do the above with no custom columns by putting the program into the template box of the plugboard. However, to do so, all comments must be removed because the plugboard text box does not support multi-line editing. It is debatable whether the gain of not having the custom column is worth the vast increase in difficulty caused by the program being one giant line.
User-defined Template Functions
User-defined template functions
-------------------------------
You can add your own functions to the template processor. Such functions are written in python, and can be used in any of the three template programming modes. The functions are added by going to Preferences -> Advanced -> Template Functions. Instructions are shown in that dialog.
You can add your own functions to the template processor. Such functions are written in python, and can be used in any of the three template programming modes. The functions are added by going to Preferences -> Advanced -> Template functions. Instructions are shown in that dialog.
Special notes for save/send templates
-------------------------------------

View File

@ -28,7 +28,7 @@ class SortAction(QAction):
class SortByAction(InterfaceAction):
name = 'Sort By'
action_spec = (_('Sort By'), 'arrow-up.png', _('Sort the list of books'), None)
action_spec = (_('Sort by'), 'arrow-up.png', _('Sort the list of books'), None)
action_type = 'current'
popup_type = QToolButton.InstantPopup
action_add_menu = True

View File

@ -115,7 +115,7 @@ class EditorWidget(QWebView): # {{{
('Paste', 'paste', 'edit-paste', _('Paste'), False),
('Cut', 'cut', 'edit-cut', _('Cut'), False),
('Indent', 'indent', 'format-indent-more',
_('Increase Indentation'), False),
_('Increase indentation'), False),
('Outdent', 'outdent', 'format-indent-less',
_('Decrease Indentation'), False),
('SelectAll', 'select_all', 'edit-select-all',
@ -665,7 +665,7 @@ class Editor(QWidget): # {{{
l.addWidget(self.editor)
self._layout.addWidget(self.tabs)
self.tabs.addTab(self.wyswyg, _('N&ormal view'))
self.tabs.addTab(self.code_edit, _('&HTML Source'))
self.tabs.addTab(self.code_edit, _('&HTML source'))
self.tabs.currentChanged[int].connect(self.change_tab)
self.highlighter = Highlighter(self.code_edit.document())
self.layout().setContentsMargins(0, 0, 0, 0)

View File

@ -17,7 +17,7 @@
<item>
<widget class="QGroupBox" name="groupBox_4">
<property name="title">
<string>Book Cover</string>
<string>Book cover</string>
</property>
<layout class="QGridLayout" name="_2">
<item row="1" column="0">

View File

@ -551,7 +551,7 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
def change_cover_grid_color(self):
col = QColorDialog.getColor(self.cg_bg_widget.bcol,
self.gui, _('Choose background color for cover grid'))
self.gui, _('Choose background color for the cover grid'))
if col.isValid():
col = tuple(col.getRgb())[:3]
self.set_cg_color(col)

View File

@ -368,7 +368,7 @@
<item row="1" column="0">
<widget class="QLabel" name="label_11">
<property name="text">
<string>Cover &amp;Width: </string>
<string>Cover &amp;width: </string>
</property>
<property name="buddy">
<cstring>opt_cover_grid_width</cstring>
@ -409,7 +409,7 @@ A value of zero means calculate automatically.</string>
<item row="2" column="0">
<widget class="QLabel" name="label_12">
<property name="text">
<string>Cover &amp;Height: </string>
<string>Cover &amp;height: </string>
</property>
<property name="buddy">
<cstring>opt_cover_grid_height</cstring>

View File

@ -71,9 +71,9 @@
<item row="1" column="0" colspan="3">
<widget class="QLabel" name="label_41">
<property name="text">
<string>&lt;li&gt;&lt;b&gt;Manual management&lt;/b&gt;: Calibre updates the metadata and adds collections only when a book is sent. With this option, calibre will never remove a collection.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Only on send&lt;/b&gt;: Calibre updates metadata and adds/removes collections for a book only when it is sent to the device. &lt;/li&gt;
&lt;li&gt;&lt;b&gt;Automatic management&lt;/b&gt;: Calibre automatically keeps metadata on the device in sync with the calibre library, on every connect&lt;/li&gt;&lt;/ul&gt;</string>
<string>&lt;li&gt;&lt;b&gt;Manual management&lt;/b&gt;: calibre updates the metadata and adds collections only when a book is sent. With this option, calibre will never remove a collection.&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Only on send&lt;/b&gt;: calibre updates metadata and adds/removes collections for a book only when it is sent to the device. &lt;/li&gt;
&lt;li&gt;&lt;b&gt;Automatic management&lt;/b&gt;: calibre automatically keeps metadata on the device in sync with the calibre library, on every connect&lt;/li&gt;&lt;/ul&gt;</string>
</property>
<property name="wordWrap">
<bool>true</bool>

View File

@ -123,7 +123,7 @@
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string>&amp;Program Code: (be sure to follow python indenting rules)</string>
<string>&amp;Program code: (be sure to follow python indenting rules)</string>
</property>
<property name="buddy">
<cstring>program</cstring>

View File

@ -309,7 +309,7 @@ class Main(MainWindow):
return self.central.editor_tabs
def create_actions(self):
group = _('Global Actions')
group = _('Global actions')
def reg(icon, text, target, sid, keys, description, toolbar_allowed=False):
if not isinstance(icon, QIcon):
@ -410,7 +410,7 @@ class Main(MainWindow):
register_text_editor_actions(ereg, self.palette())
# Polish actions
group = _('Polish Book')
group = _('Polish book')
self.action_subset_fonts = treg(
'subset-fonts.png', _('&Subset embedded fonts'), partial(
self.boss.polish, 'subset', _('Subset fonts')), 'subset-fonts', (), _('Subset embedded fonts'))
@ -465,7 +465,7 @@ class Main(MainWindow):
self.boss.show_text_search, 'text-search', (), _('Show the text search panel'))
# Check Book actions
group = _('Check Book')
group = _('Check book')
self.action_check_book = treg('debug.png', _('&Check book'), self.boss.check_requested, 'check-book', ('F7'), _('Check book for errors'))
self.action_spell_check_book = treg('spell-check.png', _('Check &spelling'), self.boss.spell_check_requested, 'spell-check-book', ('Alt+F7'), _(
'Check book for spelling errors'))