mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
string changes
This commit is contained in:
parent
ddd56f5c47
commit
b3a3859dd8
@ -132,7 +132,7 @@ class EPUBInput(InputFormatPlugin):
|
|||||||
if titlepage_href is None:
|
if titlepage_href is None:
|
||||||
titlepage_href, titlepage_id = guide_titlepage_href, guide_titlepage_id
|
titlepage_href, titlepage_id = guide_titlepage_href, guide_titlepage_id
|
||||||
if titlepage_href is not None:
|
if titlepage_href is not None:
|
||||||
self.set_guide_type(opf, 'titlepage', titlepage_href, 'Title Page')
|
self.set_guide_type(opf, 'titlepage', titlepage_href, 'Title page')
|
||||||
spine = list(opf.iterspine())
|
spine = list(opf.iterspine())
|
||||||
if len(spine) > 1:
|
if len(spine) > 1:
|
||||||
for item in spine:
|
for item in spine:
|
||||||
@ -227,7 +227,7 @@ class EPUBInput(InputFormatPlugin):
|
|||||||
f.write(renderer)
|
f.write(renderer)
|
||||||
|
|
||||||
# Set the titlepage guide entry
|
# Set the titlepage guide entry
|
||||||
self.set_guide_type(opf, 'titlepage', guide_cover, 'Title Page')
|
self.set_guide_type(opf, 'titlepage', guide_cover, 'Title page')
|
||||||
return removed
|
return removed
|
||||||
|
|
||||||
def find_opf(self):
|
def find_opf(self):
|
||||||
|
@ -163,7 +163,7 @@ class CoverManager(object):
|
|||||||
if item is not None:
|
if item is not None:
|
||||||
self.oeb.spine.insert(0, item, True)
|
self.oeb.spine.insert(0, item, True)
|
||||||
if 'cover' not in self.oeb.guide.refs:
|
if 'cover' not in self.oeb.guide.refs:
|
||||||
self.oeb.guide.add('cover', 'Title Page', 'a')
|
self.oeb.guide.add('cover', 'Title page', 'a')
|
||||||
self.oeb.guide.refs['cover'].href = item.href
|
self.oeb.guide.refs['cover'].href = item.href
|
||||||
if 'titlepage' in self.oeb.guide.refs:
|
if 'titlepage' in self.oeb.guide.refs:
|
||||||
self.oeb.guide.refs['titlepage'].href = item.href
|
self.oeb.guide.refs['titlepage'].href = item.href
|
||||||
|
@ -288,7 +288,7 @@ class TagCategories(QDialog, Ui_TagCategories):
|
|||||||
|
|
||||||
def del_category(self):
|
def del_category(self):
|
||||||
if self.current_cat_name is not None:
|
if self.current_cat_name is not None:
|
||||||
if not confirm('<p>'+_('The current user category will be '
|
if not confirm('<p>'+_('The current User category will be '
|
||||||
'<b>permanently deleted</b>. Are you sure?') +
|
'<b>permanently deleted</b>. Are you sure?') +
|
||||||
'</p>', 'tag_category_delete', self):
|
'</p>', 'tag_category_delete', self):
|
||||||
return
|
return
|
||||||
|
@ -121,7 +121,7 @@
|
|||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QToolButton" name="delete_category_button">
|
<widget class="QToolButton" name="delete_category_button">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Delete the current user category</string>
|
<string>Delete the current User category</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>...</string>
|
<string>...</string>
|
||||||
@ -225,7 +225,7 @@
|
|||||||
<item row="3" column="1">
|
<item row="3" column="1">
|
||||||
<widget class="QToolButton" name="apply_button">
|
<widget class="QToolButton" name="apply_button">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Apply tags to current tag category</string>
|
<string>Apply items to current category</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>...</string>
|
<string>...</string>
|
||||||
@ -259,7 +259,7 @@
|
|||||||
<item row="3" column="3">
|
<item row="3" column="3">
|
||||||
<widget class="QToolButton" name="unapply_button">
|
<widget class="QToolButton" name="unapply_button">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
<string>Unapply (remove) selected tags from current tag category</string>
|
<string>Unapply (remove) selected items from current category</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>...</string>
|
<string>...</string>
|
||||||
|
@ -506,7 +506,7 @@ class Restrictions(QWidget):
|
|||||||
v.addLayout(h)
|
v.addLayout(h)
|
||||||
self.rla = QLabel(_('Restrict to') + ': ')
|
self.rla = QLabel(_('Restrict to') + ': ')
|
||||||
h.addWidget(self.rla)
|
h.addWidget(self.rla)
|
||||||
la = QLabel(_('Types:'))
|
la = QLabel(_('Type:'))
|
||||||
h.addWidget(la)
|
h.addWidget(la)
|
||||||
self.types_box = tb = QComboBox(self)
|
self.types_box = tb = QComboBox(self)
|
||||||
tb.la = la
|
tb.la = la
|
||||||
|
@ -803,7 +803,7 @@ class InsertSemantics(Dialog):
|
|||||||
def create_known_type_map(self):
|
def create_known_type_map(self):
|
||||||
_ = lambda x: x
|
_ = lambda x: x
|
||||||
self.known_type_map = {
|
self.known_type_map = {
|
||||||
'title-page': _('Title Page'),
|
'title-page': _('Title page'),
|
||||||
'toc': _('Table of Contents'),
|
'toc': _('Table of Contents'),
|
||||||
'index': _('Index'),
|
'index': _('Index'),
|
||||||
'glossary': _('Glossary'),
|
'glossary': _('Glossary'),
|
||||||
|
@ -134,7 +134,7 @@ View an e-book.
|
|||||||
'If you want to match a substring, use the form toc-href-contains:something. '
|
'If you want to match a substring, use the form toc-href-contains:something. '
|
||||||
'The form ref:something will use Reference mode references.'))
|
'The form ref:something will use Reference mode references.'))
|
||||||
a('--continue', default=False, action='store_true', dest='continue_reading',
|
a('--continue', default=False, action='store_true', dest='continue_reading',
|
||||||
help=_('Continue reading at the previously opened book'))
|
help=_('Continue reading the previously opened book'))
|
||||||
|
|
||||||
setup_gui_option_parser(parser)
|
setup_gui_option_parser(parser)
|
||||||
return parser
|
return parser
|
||||||
|
Loading…
x
Reference in New Issue
Block a user