Improve readability choices...

This commit is contained in:
Jon Tibble 2009-09-21 19:49:06 +01:00
parent c18594c7ef
commit 9c6ddbf109

View File

@ -192,7 +192,8 @@ class MediaManagerItem(QtGui.QWidget):
# Create buttons for the toolbar # Create buttons for the toolbar
## File Button ## ## File Button ##
if self.hasFileIcon: if self.hasFileIcon:
self.addToolbarButton(translate( self.addToolbarButton(
translate(
self.TranslationContext, u'Load ' + self.PluginTextShort), self.TranslationContext, u'Load ' + self.PluginTextShort),
translate( translate(
self.TranslationContext, self.TranslationContext,
@ -201,10 +202,10 @@ class MediaManagerItem(QtGui.QWidget):
self.PluginTextShort + u'FileItem') self.PluginTextShort + u'FileItem')
## New Button ## ## New Button ##
if self.hasNewIcon: if self.hasNewIcon:
self.addToolbarButton(translate( self.addToolbarButton(
self.TranslationContext, u'New ' + self.PluginTextShort),
translate( translate(
self.TranslationContext, self.TranslationContext, u'New ' + self.PluginTextShort),
translate(self.TranslationContext,
u'Add a new ' + self.PluginTextShort), u'Add a new ' + self.PluginTextShort),
u':' + self.IconPath + u'_new.png', self.onNewClick, u':' + self.IconPath + u'_new.png', self.onNewClick,
self.PluginTextShort + u'NewItem') self.PluginTextShort + u'NewItem')