translate(pluginName.pluginName) -> translate(pluginName) and removed some spaces

This commit is contained in:
Frode Woldsund 2010-06-17 14:02:18 +02:00
parent 99d97a95a3
commit 7c6b5c0b99
10 changed files with 36 additions and 36 deletions

View File

@ -224,7 +224,7 @@ class MediaManagerItem(QtGui.QWidget):
## New Button ## ## New Button ##
if self.hasNewIcon: if self.hasNewIcon:
self.addToolbarButton( self.addToolbarButton(
unicode(translate(u'MediaManagerItem', u'New %s')) % \ unicode(translate(u'MediaManagerItem', u'New %s')) % \
self.PluginNameShort, self.PluginNameShort,
unicode(translate(u'MediaManagerItem', u'Add a new %s')) % \ unicode(translate(u'MediaManagerItem', u'Add a new %s')) % \
self.PluginNameVisible, self.PluginNameVisible,
@ -232,7 +232,7 @@ class MediaManagerItem(QtGui.QWidget):
## Edit Button ## ## Edit Button ##
if self.hasEditIcon: if self.hasEditIcon:
self.addToolbarButton( self.addToolbarButton(
unicode(translate(u'MediaManagerItem', u'Edit %s')) % \ unicode(translate(u'MediaManagerItem', u'Edit %s')) % \
self.PluginNameShort, self.PluginNameShort,
unicode(translate( unicode(translate(
u'MediaManagerItem', u'Edit the selected %s')) % \ u'MediaManagerItem', u'Edit the selected %s')) % \
@ -241,7 +241,7 @@ class MediaManagerItem(QtGui.QWidget):
## Delete Button ## ## Delete Button ##
if self.hasDeleteIcon: if self.hasDeleteIcon:
self.addToolbarButton( self.addToolbarButton(
unicode(translate(u'MediaManagerItem', u'Delete %s')) % \ unicode(translate(u'MediaManagerItem', u'Delete %s')) % \
self.PluginNameShort, self.PluginNameShort,
translate(u'MediaManagerItem', u'Delete the selected item'), translate(u'MediaManagerItem', u'Delete the selected item'),
u':/general/general_delete.png', self.onDeleteClick) u':/general/general_delete.png', self.onDeleteClick)
@ -260,7 +260,7 @@ class MediaManagerItem(QtGui.QWidget):
u':/general/general_live.png', self.onLiveClick) u':/general/general_live.png', self.onLiveClick)
## Add to service Button ## ## Add to service Button ##
self.addToolbarButton( self.addToolbarButton(
unicode(translate(u'MediaManagerItem', u'Add %s to Service')) % \ unicode(translate(u'MediaManagerItem', u'Add %s to Service')) % \
self.PluginNameShort, self.PluginNameShort,
translate(u'MediaManagerItem', translate(u'MediaManagerItem',
u'Add the selected item(s) to the service'), u'Add the selected item(s) to the service'),

View File

@ -64,9 +64,9 @@ class alertsPlugin(Plugin):
self.toolsAlertItem.setIcon(AlertIcon) self.toolsAlertItem.setIcon(AlertIcon)
self.toolsAlertItem.setObjectName(u'toolsAlertItem') self.toolsAlertItem.setObjectName(u'toolsAlertItem')
self.toolsAlertItem.setText( self.toolsAlertItem.setText(
translate(u'AlertsPlugin.AlertsPlugin', u'&Alert')) translate(u'AlertsPlugin', u'&Alert'))
self.toolsAlertItem.setStatusTip( self.toolsAlertItem.setStatusTip(
translate(u'AlertsPlugin.AlertsPlugin', u'Show an alert message')) translate(u'AlertsPlugin', u'Show an alert message'))
self.toolsAlertItem.setShortcut(u'F7') self.toolsAlertItem.setShortcut(u'F7')
self.service_manager.parent.ToolsMenu.addAction(self.toolsAlertItem) self.service_manager.parent.ToolsMenu.addAction(self.toolsAlertItem)
QtCore.QObject.connect(self.toolsAlertItem, QtCore.QObject.connect(self.toolsAlertItem,
@ -94,7 +94,7 @@ class alertsPlugin(Plugin):
self.alertForm.exec_() self.alertForm.exec_()
def about(self): def about(self):
about_text = translate(u'AlertsPlugin.AlertsPlugin', about_text = translate(u'AlertsPlugin',
u'<b>Alerts Plugin</b><br>This plugin ' u'<b>Alerts Plugin</b><br>This plugin '
u'controls the displaying of alerts on the presentations screen') u'controls the displaying of alerts on the presentations screen')
return about_text return about_text

View File

@ -71,7 +71,7 @@ class BiblePlugin(Plugin):
self.ImportBibleItem.setObjectName(u'ImportBibleItem') self.ImportBibleItem.setObjectName(u'ImportBibleItem')
import_menu.addAction(self.ImportBibleItem) import_menu.addAction(self.ImportBibleItem)
self.ImportBibleItem.setText( self.ImportBibleItem.setText(
translate(u'BiblesPlugin.BiblePlugin', u'&Bible')) translate(u'BiblePlugin', u'&Bible'))
# Signals and slots # Signals and slots
QtCore.QObject.connect(self.ImportBibleItem, QtCore.QObject.connect(self.ImportBibleItem,
QtCore.SIGNAL(u'triggered()'), self.onBibleImportClick) QtCore.SIGNAL(u'triggered()'), self.onBibleImportClick)
@ -82,7 +82,7 @@ class BiblePlugin(Plugin):
self.ExportBibleItem.setObjectName(u'ExportBibleItem') self.ExportBibleItem.setObjectName(u'ExportBibleItem')
export_menu.addAction(self.ExportBibleItem) export_menu.addAction(self.ExportBibleItem)
self.ExportBibleItem.setText(translate( self.ExportBibleItem.setText(translate(
u'BiblesPlugin.BiblePlugin', u'&Bible')) u'BiblePlugin', u'&Bible'))
self.ExportBibleItem.setVisible(False) self.ExportBibleItem.setVisible(False)
def onBibleImportClick(self): def onBibleImportClick(self):
@ -90,7 +90,7 @@ class BiblePlugin(Plugin):
self.media_item.onImportClick() self.media_item.onImportClick()
def about(self): def about(self):
about_text = translate(u'BiblesPlugin.BiblePlugin', about_text = translate(u'BiblePlugin',
u'<strong>Bible Plugin</strong><br />This ' u'<strong>Bible Plugin</strong><br />This '
u'plugin allows bible verses from different sources to be ' u'plugin allows bible verses from different sources to be '
u'displayed on the screen during the service.') u'displayed on the screen during the service.')

View File

@ -67,7 +67,7 @@ class CustomPlugin(Plugin):
self.remove_toolbox_item() self.remove_toolbox_item()
def about(self): def about(self):
about_text = translate(u'CustomPlugin.CustomPlugin', about_text = translate(u'CustomPlugin',
u'<b>Custom Plugin</b><br>This plugin ' u'<b>Custom Plugin</b><br>This plugin '
u'allows slides to be displayed on the screen in the same way ' u'allows slides to be displayed on the screen in the same way '
u'songs are. This plugin provides greater freedom over the ' u'songs are. This plugin provides greater freedom over the '

View File

@ -56,7 +56,7 @@ class ImagePlugin(Plugin):
return ImageMediaItem(self, self.icon, self.name) return ImageMediaItem(self, self.icon, self.name)
def about(self): def about(self):
about_text = translate(u'ImagePlugin.ImagePlugin', u'<b>Image Plugin' about_text = translate(u'ImagePlugin', u'<b>Image Plugin'
u'</b><br>Allows images of all types to be displayed. If a number ' u'</b><br>Allows images of all types to be displayed. If a number '
u'of images are selected together and presented on the live ' u'of images are selected together and presented on the live '
u'controller it is possible to turn them into a timed loop.<br<br>' u'controller it is possible to turn them into a timed loop.<br<br>'

View File

@ -81,7 +81,7 @@ class MediaPlugin(Plugin):
return MediaMediaItem(self, self.icon, self.name) return MediaMediaItem(self, self.icon, self.name)
def about(self): def about(self):
about_text = translate(u'MediaPlugin.MediaPlugin', about_text = translate(u'MediaPlugin',
u'<b>Media Plugin</b><br>This plugin ' u'<b>Media Plugin</b><br>This plugin '
u'allows the playing of audio and video media') u'allows the playing of audio and video media')
return about_text return about_text

View File

@ -108,7 +108,7 @@ class PresentationPlugin(Plugin):
return False return False
def about(self): def about(self):
about_text = translate(u'PresentationPlugin.PresentationPlugin', about_text = translate(u'PresentationPlugin',
u'<b>Presentation Plugin</b> <br> Delivers ' u'<b>Presentation Plugin</b> <br> Delivers '
u'the ability to show presentations using a number of different ' u'the ability to show presentations using a number of different '
u'programs. The choice of available presentation programs is ' u'programs. The choice of available presentation programs is '

View File

@ -69,7 +69,7 @@ class RemotesPlugin(Plugin):
""" """
Information about this plugin Information about this plugin
""" """
about_text = translate(u'RemotePlugin.RemotePlugin', about_text = translate(u'RemotePlugin',
u'<b>Remote Plugin</b><br>This plugin ' u'<b>Remote Plugin</b><br>This plugin '
u'provides the ability to send messages to a running version of ' u'provides the ability to send messages to a running version of '
u'openlp on a different computer via a web browser or other app<br>' u'openlp on a different computer via a web browser or other app<br>'

View File

@ -95,9 +95,9 @@ class SongsPlugin(Plugin):
self.SongImportItem = QtGui.QAction(import_menu) self.SongImportItem = QtGui.QAction(import_menu)
self.SongImportItem.setObjectName(u'SongImportItem') self.SongImportItem.setObjectName(u'SongImportItem')
self.SongImportItem.setText(translate( self.SongImportItem.setText(translate(
u'SongsPlugin.SongsPlugin', u'&Song')) u'SongsPlugin', u'&Song'))
self.SongImportItem.setToolTip( self.SongImportItem.setToolTip(
translate(u'SongsPlugin.SongsPlugin', translate(u'SongsPlugin',
u'Import songs using the import wizard.')) u'Import songs using the import wizard.'))
import_menu.addAction(self.SongImportItem) import_menu.addAction(self.SongImportItem)
# Songs of Fellowship import menu item - will be removed and the # Songs of Fellowship import menu item - will be removed and the
@ -105,14 +105,14 @@ class SongsPlugin(Plugin):
self.ImportSofItem = QtGui.QAction(import_menu) self.ImportSofItem = QtGui.QAction(import_menu)
self.ImportSofItem.setObjectName(u'ImportSofItem') self.ImportSofItem.setObjectName(u'ImportSofItem')
self.ImportSofItem.setText( self.ImportSofItem.setText(
translate(u'SongsPlugin.SongsPlugin', translate(u'SongsPlugin',
u'Songs of Fellowship (temp menu item)')) u'Songs of Fellowship (temp menu item)'))
self.ImportSofItem.setToolTip( self.ImportSofItem.setToolTip(
translate(u'SongsPlugin.SongsPlugin', translate(u'SongsPlugin',
u'Import songs from the VOLS1_2.RTF, sof3words' \ u'Import songs from the VOLS1_2.RTF, sof3words' \
+ u'.rtf and sof4words.rtf supplied with the music books')) + u'.rtf and sof4words.rtf supplied with the music books'))
self.ImportSofItem.setStatusTip( self.ImportSofItem.setStatusTip(
translate(u'SongsPlugin.SongsPlugin', translate(u'SongsPlugin',
u'Import songs from the VOLS1_2.RTF, sof3words' \ u'Import songs from the VOLS1_2.RTF, sof3words' \
+ u'.rtf and sof4words.rtf supplied with the music books')) + u'.rtf and sof4words.rtf supplied with the music books'))
import_menu.addAction(self.ImportSofItem) import_menu.addAction(self.ImportSofItem)
@ -121,15 +121,15 @@ class SongsPlugin(Plugin):
self.ImportOooItem = QtGui.QAction(import_menu) self.ImportOooItem = QtGui.QAction(import_menu)
self.ImportOooItem.setObjectName(u'ImportOooItem') self.ImportOooItem.setObjectName(u'ImportOooItem')
self.ImportOooItem.setText( self.ImportOooItem.setText(
translate(u'SongsPlugin.SongsPlugin', translate(u'SongsPlugin',
u'Generic Document/Presentation Import ' u'Generic Document/Presentation Import '
u'(temp menu item)')) u'(temp menu item)'))
self.ImportOooItem.setToolTip( self.ImportOooItem.setToolTip(
translate(u'SongsPlugin.SongsPlugin', translate(u'SongsPlugin',
u'Import songs from ' u'Import songs from '
u'Word/Writer/Powerpoint/Impress')) u'Word/Writer/Powerpoint/Impress'))
self.ImportOooItem.setStatusTip( self.ImportOooItem.setStatusTip(
translate(u'SongsPlugin.SongsPlugin', translate(u'SongsPlugin',
u'Import songs from ' u'Import songs from '
u'Word/Writer/Powerpoint/Impress')) u'Word/Writer/Powerpoint/Impress'))
import_menu.addAction(self.ImportOooItem) import_menu.addAction(self.ImportOooItem)
@ -159,7 +159,7 @@ class SongsPlugin(Plugin):
def onImportSofItemClick(self): def onImportSofItemClick(self):
filenames = QtGui.QFileDialog.getOpenFileNames( filenames = QtGui.QFileDialog.getOpenFileNames(
None, translate(u'SongsPlugin.Songsplugin', None, translate(u'SongsPlugin',
u'Open Songs of Fellowship file'), u'Open Songs of Fellowship file'),
u'', u'Songs of Fellowship file (*.rtf *.RTF)') u'', u'Songs of Fellowship file (*.rtf *.RTF)')
try: try:
@ -169,9 +169,9 @@ class SongsPlugin(Plugin):
except: except:
log.exception('Could not import SoF file') log.exception('Could not import SoF file')
QtGui.QMessageBox.critical(None, QtGui.QMessageBox.critical(None,
translate(u'SongsPlugin.SongsPlugin', translate(u'SongsPlugin',
u'Import Error'), u'Import Error'),
translate(u'SongsPlugin.SongsPlugin', translate(u'SongsPlugin',
u'Error importing Songs of ' u'Error importing Songs of '
u'Fellowship file.\nOpenOffice.org must be installed' u'Fellowship file.\nOpenOffice.org must be installed'
u' and you must be using an unedited copy of the RTF' u' and you must be using an unedited copy of the RTF'
@ -182,7 +182,7 @@ class SongsPlugin(Plugin):
def onImportOooItemClick(self): def onImportOooItemClick(self):
filenames = QtGui.QFileDialog.getOpenFileNames( filenames = QtGui.QFileDialog.getOpenFileNames(
None, translate(u'SongsPlugin.Songsplugin', None, translate(u'SongsPlugin',
u'Open documents or presentations'), u'Open documents or presentations'),
u'', u'All Files(*.*)') u'', u'All Files(*.*)')
oooimport = OooImport(self.manager) oooimport = OooImport(self.manager)
@ -190,7 +190,7 @@ class SongsPlugin(Plugin):
Receiver.send_message(u'songs_load_list') Receiver.send_message(u'songs_load_list')
def about(self): def about(self):
about_text = translate(u'SongsPlugin.Songsplugin', about_text = translate(u'SongsPlugin',
u'<strong>Song Plugin</strong><br />' u'<strong>Song Plugin</strong><br />'
u'This plugin allows songs to be managed and displayed.') u'This plugin allows songs to be managed and displayed.')
return about_text return about_text

View File

@ -60,23 +60,23 @@ class SongUsagePlugin(Plugin):
self.SongUsageMenu = QtGui.QMenu(tools_menu) self.SongUsageMenu = QtGui.QMenu(tools_menu)
self.SongUsageMenu.setObjectName(u'SongUsageMenu') self.SongUsageMenu.setObjectName(u'SongUsageMenu')
self.SongUsageMenu.setTitle(translate( self.SongUsageMenu.setTitle(translate(
u'SongUsagePlugin.SongUsagePlugin', u'&Song Usage')) u'SongUsagePlugin', u'&Song Usage'))
#SongUsage Delete #SongUsage Delete
self.SongUsageDelete = QtGui.QAction(tools_menu) self.SongUsageDelete = QtGui.QAction(tools_menu)
self.SongUsageDelete.setText( self.SongUsageDelete.setText(
translate(u'SongUsagePlugin.SongUsagePlugin', translate(u'SongUsagePlugin',
u'&Delete recorded data')) u'&Delete recorded data'))
self.SongUsageDelete.setStatusTip( self.SongUsageDelete.setStatusTip(
translate(u'SongUsagePlugin.SongUsagePlugin', translate(u'SongUsagePlugin',
u'Delete song usage to specified date')) u'Delete song usage to specified date'))
self.SongUsageDelete.setObjectName(u'SongUsageDelete') self.SongUsageDelete.setObjectName(u'SongUsageDelete')
#SongUsage Report #SongUsage Report
self.SongUsageReport = QtGui.QAction(tools_menu) self.SongUsageReport = QtGui.QAction(tools_menu)
self.SongUsageReport.setText( self.SongUsageReport.setText(
translate(u'SongUsagePlugin.SongUsagePlugin', translate(u'SongUsagePlugin',
u'&Extract recorded data')) u'&Extract recorded data'))
self.SongUsageReport.setStatusTip( self.SongUsageReport.setStatusTip(
translate(u'SongUsagePlugin.SongUsagePlugin', translate(u'SongUsagePlugin',
u'Generate report on Song Usage')) u'Generate report on Song Usage'))
self.SongUsageReport.setObjectName(u'SongUsageReport') self.SongUsageReport.setObjectName(u'SongUsageReport')
#SongUsage activation #SongUsage activation
@ -86,9 +86,9 @@ class SongUsagePlugin(Plugin):
self.SongUsageStatus.setCheckable(True) self.SongUsageStatus.setCheckable(True)
self.SongUsageStatus.setChecked(False) self.SongUsageStatus.setChecked(False)
self.SongUsageStatus.setText(translate( self.SongUsageStatus.setText(translate(
u'SongUsagePlugin.SongUsagePlugin', u'Song Usage Status')) u'SongUsagePlugin', u'Song Usage Status'))
self.SongUsageStatus.setStatusTip( self.SongUsageStatus.setStatusTip(
translate(u'SongUsagePlugin.SongUsagePlugin', translate(u'SongUsagePlugin',
u'Start/Stop live song usage recording')) u'Start/Stop live song usage recording'))
self.SongUsageStatus.setShortcut(u'F4') self.SongUsageStatus.setShortcut(u'F4')
self.SongUsageStatus.setObjectName(u'SongUsageStatus') self.SongUsageStatus.setObjectName(u'SongUsageStatus')
@ -163,7 +163,7 @@ class SongUsagePlugin(Plugin):
self.SongUsagedetailform.exec_() self.SongUsagedetailform.exec_()
def about(self): def about(self):
about_text = translate(u'SongsPlugin.SongUsagePlugin', about_text = translate(u'SongUsagePlugin',
u'<b>SongUsage Plugin</b><br>This plugin ' u'<b>SongUsage Plugin</b><br>This plugin '
u'records the use of songs and when they have been used during ' u'records the use of songs and when they have been used during '
u'a live service') u'a live service')