mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-06 23:15:19 +01:00
Cleanup language for viewer font size controls
This commit is contained in:
parent
820352df88
commit
abb8aa16e7
3 changed files with 6 additions and 6 deletions
|
|
@ -544,7 +544,7 @@ def initialize_view(self, debug_javascript=False):
|
|||
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 @@ def font_size_smaller(self):
|
|||
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…
Reference in a new issue