Cleanup language for viewer font size controls

This commit is contained in:
Kovid Goyal 2012-12-27 09:37:58 +05:30
parent 820352df88
commit abb8aa16e7
3 changed files with 6 additions and 6 deletions

View File

@ -544,7 +544,7 @@ class DocumentView(QWebView): # {{{
self.goto_location_action.setMenu(self.goto_location_menu) self.goto_location_action.setMenu(self.goto_location_menu)
self.grabGesture(Qt.SwipeGesture) 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.setCheckable(True)
self.restore_fonts_action.triggered.connect(self.restore_font_size) self.restore_fonts_action.triggered.connect(self.restore_font_size)

View File

@ -697,11 +697,11 @@ class EbookViewer(MainWindow, Ui_EbookViewer):
self.view.shrink_fonts() self.view.shrink_fonts()
def magnification_changed(self, val): 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( self.action_font_size_larger.setToolTip(
tt %dict(which=_('larger'), mag=val)) tt %dict(which=_('Increase'), mag=val))
self.action_font_size_smaller.setToolTip( 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_larger.setEnabled(self.view.multiplier < 3)
self.action_font_size_smaller.setEnabled(self.view.multiplier > 0.2) self.action_font_size_smaller.setEnabled(self.view.multiplier > 0.2)

View File

@ -198,7 +198,7 @@
<normaloff>:/images/font_size_larger.png</normaloff>:/images/font_size_larger.png</iconset> <normaloff>:/images/font_size_larger.png</normaloff>:/images/font_size_larger.png</iconset>
</property> </property>
<property name="text"> <property name="text">
<string>Font size larger</string> <string>Increase font size</string>
</property> </property>
</action> </action>
<action name="action_font_size_smaller"> <action name="action_font_size_smaller">
@ -207,7 +207,7 @@
<normaloff>:/images/font_size_smaller.png</normaloff>:/images/font_size_smaller.png</iconset> <normaloff>:/images/font_size_smaller.png</normaloff>:/images/font_size_smaller.png</iconset>
</property> </property>
<property name="text"> <property name="text">
<string>Font size smaller</string> <string>Decrease font size</string>
</property> </property>
</action> </action>
<action name="action_table_of_contents"> <action name="action_table_of_contents">