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
4c92c0bfa4
commit
5a085c8a92
@ -1228,7 +1228,7 @@ class KOBO(USBMS):
|
||||
elif user_notes[location]['type'] == 'Highlight':
|
||||
annotations.append(
|
||||
_('<b>Chapter %(chapter)d:</b> %(chapter_title)s<br /><b>%(typ)s</b><br />'
|
||||
'<b>Chapter Progress:</b> %(chapter_progress)s%%<br /><b>Highlight:</b> %(text)s<br /><hr />') % dict(
|
||||
'<b>Chapter progress:</b> %(chapter_progress)s%%<br /><b>Highlight:</b> %(text)s<br /><hr />') % dict(
|
||||
chapter=user_notes[location]['chapter'],
|
||||
dl=user_notes[location]['displayed_location'],
|
||||
typ=user_notes[location]['type'],
|
||||
@ -1238,7 +1238,7 @@ class KOBO(USBMS):
|
||||
elif user_notes[location]['type'] == 'Annotation':
|
||||
annotations.append(
|
||||
_('<b>Chapter %(chapter)d:</b> %(chapter_title)s<br />'
|
||||
'<b>%(typ)s</b><br /><b>Chapter Progress:</b> %(chapter_progress)s%%<br /><b>Highlight:</b> %(text)s<br />'
|
||||
'<b>%(typ)s</b><br /><b>Chapter progress:</b> %(chapter_progress)s%%<br /><b>Highlight:</b> %(text)s<br />'
|
||||
'<b>Notes:</b> %(annotation)s<br /><hr />') % dict(
|
||||
chapter=user_notes[location]['chapter'],
|
||||
dl=user_notes[location]['displayed_location'],
|
||||
@ -1250,7 +1250,7 @@ class KOBO(USBMS):
|
||||
else:
|
||||
annotations.append(
|
||||
_('<b>Chapter %(chapter)d:</b> %(chapter_title)s<br />'
|
||||
'<b>%(typ)s</b><br /><b>Chapter Progress:</b> %(chapter_progress)s%%<br /><b>Highlight:</b> %(text)s<br />'
|
||||
'<b>%(typ)s</b><br /><b>Chapter progress:</b> %(chapter_progress)s%%<br /><b>Highlight:</b> %(text)s<br />'
|
||||
'<b>Notes:</b> %(annotation)s<br /><hr />') % dict(
|
||||
chapter=user_notes[location]['chapter'],
|
||||
dl=user_notes[location]['displayed_location'],
|
||||
|
@ -33,7 +33,7 @@
|
||||
</property>
|
||||
<widget class="QWidget" name="tab1">
|
||||
<attribute name="title">
|
||||
<string>Fonts</string>
|
||||
<string>&Fonts</string>
|
||||
</attribute>
|
||||
<layout class="QFormLayout" name="formLayout">
|
||||
<item row="1" column="0">
|
||||
@ -207,7 +207,7 @@
|
||||
</widget>
|
||||
<widget class="QWidget" name="tab">
|
||||
<attribute name="title">
|
||||
<string>Text</string>
|
||||
<string>T&ext</string>
|
||||
</attribute>
|
||||
<layout class="QFormLayout" name="formLayout_2">
|
||||
<item row="1" column="1">
|
||||
@ -364,7 +364,7 @@
|
||||
</widget>
|
||||
<widget class="QWidget" name="tab_3">
|
||||
<attribute name="title">
|
||||
<string>Styling</string>
|
||||
<string>&Styling</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
@ -477,7 +477,7 @@
|
||||
</widget>
|
||||
<widget class="QWidget" name="tab_4">
|
||||
<attribute name="title">
|
||||
<string>Transform styles</string>
|
||||
<string>&Transform styles</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||
<property name="spacing">
|
||||
|
@ -32,7 +32,7 @@
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="title">
|
||||
<string>Edit Search/replace definition</string>
|
||||
<string>Edit search/replace definition</string>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
<property name="sizeConstraint">
|
||||
|
@ -30,7 +30,7 @@ class TemplateLineEditor(QLineEdit):
|
||||
|
||||
action_clear_field = menu.addAction(_('Remove any template from the box'))
|
||||
action_clear_field.triggered.connect(self.clear_field)
|
||||
action_open_editor = menu.addAction(_('Open Template Editor'))
|
||||
action_open_editor = menu.addAction(_('Open template editor'))
|
||||
action_open_editor.triggered.connect(self.open_editor)
|
||||
menu.exec_(event.globalPos())
|
||||
|
||||
|
@ -180,7 +180,7 @@ class SearchBar(QWidget): # {{{
|
||||
self._layout.setContentsMargins(0,5,0,0)
|
||||
|
||||
x = QToolButton(self)
|
||||
x.setText(_('Vi&rtual Library'))
|
||||
x.setText(_('Vi&rtual library'))
|
||||
x.setIcon(QIcon(I('lt.png')))
|
||||
x.setObjectName("virtual_library")
|
||||
x.setToolButtonStyle(Qt.ToolButtonTextBesideIcon)
|
||||
|
@ -495,7 +495,7 @@ class RuleEditor(QDialog): # {{{
|
||||
self.color_label.setText('''
|
||||
<span style="color: {c}; background-color: {bg1}"> {st} </span>
|
||||
<span style="color: {c}; background-color: {bg2}"> {st} </span>
|
||||
'''.format(c=c, bg1=bg1, bg2=bg2, st=_('Sample Text')))
|
||||
'''.format(c=c, bg1=bg1, bg2=bg2, st=_('Sample text')))
|
||||
|
||||
def sanitize_icon_file_name(self, icon_path):
|
||||
n = lower(sanitize_file_name_unicode(
|
||||
@ -887,10 +887,10 @@ class EditRules(QWidget): # {{{
|
||||
l1.setWordWrap(True)
|
||||
l.addWidget(l1, l.rowCount(), 0, 1, 2)
|
||||
|
||||
self.add_button = QPushButton(QIcon(I('plus.png')), _('Add rule'),
|
||||
self.add_button = QPushButton(QIcon(I('plus.png')), _('&Add rule'),
|
||||
self)
|
||||
self.remove_button = QPushButton(QIcon(I('minus.png')),
|
||||
_('Remove rule(s)'), self)
|
||||
_('&Remove rule(s)'), self)
|
||||
self.add_button.clicked.connect(self.add_rule)
|
||||
self.remove_button.clicked.connect(self.remove_rule)
|
||||
l.addWidget(self.add_button, l.rowCount(), 0)
|
||||
|
@ -387,12 +387,12 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
||||
self.edit_rules = EditRules(self.tabWidget)
|
||||
self.edit_rules.changed.connect(self.changed_signal)
|
||||
self.tabWidget.addTab(self.edit_rules,
|
||||
QIcon(I('format-fill-color.png')), _('Column coloring'))
|
||||
QIcon(I('format-fill-color.png')), _('Column &coloring'))
|
||||
|
||||
self.icon_rules = EditRules(self.tabWidget)
|
||||
self.icon_rules.changed.connect(self.changed_signal)
|
||||
self.tabWidget.addTab(self.icon_rules,
|
||||
QIcon(I('icon_choose.png')), _('Column icons'))
|
||||
QIcon(I('icon_choose.png')), _('Column &icons'))
|
||||
|
||||
self.grid_rules = EditRules(self.emblems_tab)
|
||||
self.grid_rules.changed.connect(self.changed_signal)
|
||||
|
@ -263,7 +263,7 @@
|
||||
</property>
|
||||
<widget class="QWidget" name="tab_5">
|
||||
<attribute name="title">
|
||||
<string>Layout</string>
|
||||
<string>&Layout</string>
|
||||
</attribute>
|
||||
<layout class="QFormLayout" name="formLayout_2">
|
||||
<item row="0" column="0" colspan="2">
|
||||
@ -520,12 +520,12 @@ A value of zero means calculate automatically.</string>
|
||||
</widget>
|
||||
<widget class="QWidget" name="emblems_tab">
|
||||
<attribute name="title">
|
||||
<string>Emblems</string>
|
||||
<string>&Emblems</string>
|
||||
</attribute>
|
||||
</widget>
|
||||
<widget class="QWidget" name="tab_6">
|
||||
<attribute name="title">
|
||||
<string>Performance</string>
|
||||
<string>&Performance</string>
|
||||
</attribute>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
@ -1022,7 +1022,7 @@ see the counts by hovering your mouse over any item.</string>
|
||||
<item row="5" column="2">
|
||||
<widget class="QPushButton" name="cover_browser_title_template_button">
|
||||
<property name="text">
|
||||
<string>Template editor</string>
|
||||
<string>Template &editor</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -59,7 +59,7 @@
|
||||
<item row="1" column="1">
|
||||
<widget class="QPushButton" name="open_editor">
|
||||
<property name="text">
|
||||
<string>Template Editor</string>
|
||||
<string>Template editor</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
Loading…
x
Reference in New Issue
Block a user