mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Cleanup language for viewer font size controls
This commit is contained in:
parent
820352df88
commit
abb8aa16e7
@ -544,7 +544,7 @@ class DocumentView(QWebView): # {{{
|
||||
self.goto_location_action.setMenu(self.goto_location_menu)
|
||||
self.grabGesture(Qt.SwipeGesture)
|
||||
|
||||
self.restore_fonts_action = QAction(_('Normal font size'), self)
|
||||
self.restore_fonts_action = QAction(_('Default font size'), self)
|
||||
self.restore_fonts_action.setCheckable(True)
|
||||
self.restore_fonts_action.triggered.connect(self.restore_font_size)
|
||||
|
||||
|
@ -697,11 +697,11 @@ class EbookViewer(MainWindow, Ui_EbookViewer):
|
||||
self.view.shrink_fonts()
|
||||
|
||||
def magnification_changed(self, val):
|
||||
tt = _('Make font size %(which)s\nCurrent magnification: %(mag).1f')
|
||||
tt = _('%(which)s font size\nCurrent magnification: %(mag).1f')
|
||||
self.action_font_size_larger.setToolTip(
|
||||
tt %dict(which=_('larger'), mag=val))
|
||||
tt %dict(which=_('Increase'), mag=val))
|
||||
self.action_font_size_smaller.setToolTip(
|
||||
tt %dict(which=_('smaller'), mag=val))
|
||||
tt %dict(which=_('Decrease'), mag=val))
|
||||
self.action_font_size_larger.setEnabled(self.view.multiplier < 3)
|
||||
self.action_font_size_smaller.setEnabled(self.view.multiplier > 0.2)
|
||||
|
||||
|
@ -198,7 +198,7 @@
|
||||
<normaloff>:/images/font_size_larger.png</normaloff>:/images/font_size_larger.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Font size larger</string>
|
||||
<string>Increase font size</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="action_font_size_smaller">
|
||||
@ -207,7 +207,7 @@
|
||||
<normaloff>:/images/font_size_smaller.png</normaloff>:/images/font_size_smaller.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Font size smaller</string>
|
||||
<string>Decrease font size</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="action_table_of_contents">
|
||||
|
Loading…
x
Reference in New Issue
Block a user