forked from openlp/openlp
translate(pluginName.pluginName) -> translate(pluginName) and removed some spaces
This commit is contained in:
parent
99d97a95a3
commit
7c6b5c0b99
@ -224,7 +224,7 @@ class MediaManagerItem(QtGui.QWidget):
|
||||
## New Button ##
|
||||
if self.hasNewIcon:
|
||||
self.addToolbarButton(
|
||||
unicode(translate(u'MediaManagerItem', u'New %s')) % \
|
||||
unicode(translate(u'MediaManagerItem', u'New %s')) % \
|
||||
self.PluginNameShort,
|
||||
unicode(translate(u'MediaManagerItem', u'Add a new %s')) % \
|
||||
self.PluginNameVisible,
|
||||
@ -232,7 +232,7 @@ class MediaManagerItem(QtGui.QWidget):
|
||||
## Edit Button ##
|
||||
if self.hasEditIcon:
|
||||
self.addToolbarButton(
|
||||
unicode(translate(u'MediaManagerItem', u'Edit %s')) % \
|
||||
unicode(translate(u'MediaManagerItem', u'Edit %s')) % \
|
||||
self.PluginNameShort,
|
||||
unicode(translate(
|
||||
u'MediaManagerItem', u'Edit the selected %s')) % \
|
||||
@ -241,7 +241,7 @@ class MediaManagerItem(QtGui.QWidget):
|
||||
## Delete Button ##
|
||||
if self.hasDeleteIcon:
|
||||
self.addToolbarButton(
|
||||
unicode(translate(u'MediaManagerItem', u'Delete %s')) % \
|
||||
unicode(translate(u'MediaManagerItem', u'Delete %s')) % \
|
||||
self.PluginNameShort,
|
||||
translate(u'MediaManagerItem', u'Delete the selected item'),
|
||||
u':/general/general_delete.png', self.onDeleteClick)
|
||||
@ -260,7 +260,7 @@ class MediaManagerItem(QtGui.QWidget):
|
||||
u':/general/general_live.png', self.onLiveClick)
|
||||
## Add to service Button ##
|
||||
self.addToolbarButton(
|
||||
unicode(translate(u'MediaManagerItem', u'Add %s to Service')) % \
|
||||
unicode(translate(u'MediaManagerItem', u'Add %s to Service')) % \
|
||||
self.PluginNameShort,
|
||||
translate(u'MediaManagerItem',
|
||||
u'Add the selected item(s) to the service'),
|
||||
|
@ -64,9 +64,9 @@ class alertsPlugin(Plugin):
|
||||
self.toolsAlertItem.setIcon(AlertIcon)
|
||||
self.toolsAlertItem.setObjectName(u'toolsAlertItem')
|
||||
self.toolsAlertItem.setText(
|
||||
translate(u'AlertsPlugin.AlertsPlugin', u'&Alert'))
|
||||
translate(u'AlertsPlugin', u'&Alert'))
|
||||
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.service_manager.parent.ToolsMenu.addAction(self.toolsAlertItem)
|
||||
QtCore.QObject.connect(self.toolsAlertItem,
|
||||
@ -94,7 +94,7 @@ class alertsPlugin(Plugin):
|
||||
self.alertForm.exec_()
|
||||
|
||||
def about(self):
|
||||
about_text = translate(u'AlertsPlugin.AlertsPlugin',
|
||||
about_text = translate(u'AlertsPlugin',
|
||||
u'<b>Alerts Plugin</b><br>This plugin '
|
||||
u'controls the displaying of alerts on the presentations screen')
|
||||
return about_text
|
||||
|
@ -71,7 +71,7 @@ class BiblePlugin(Plugin):
|
||||
self.ImportBibleItem.setObjectName(u'ImportBibleItem')
|
||||
import_menu.addAction(self.ImportBibleItem)
|
||||
self.ImportBibleItem.setText(
|
||||
translate(u'BiblesPlugin.BiblePlugin', u'&Bible'))
|
||||
translate(u'BiblePlugin', u'&Bible'))
|
||||
# Signals and slots
|
||||
QtCore.QObject.connect(self.ImportBibleItem,
|
||||
QtCore.SIGNAL(u'triggered()'), self.onBibleImportClick)
|
||||
@ -82,7 +82,7 @@ class BiblePlugin(Plugin):
|
||||
self.ExportBibleItem.setObjectName(u'ExportBibleItem')
|
||||
export_menu.addAction(self.ExportBibleItem)
|
||||
self.ExportBibleItem.setText(translate(
|
||||
u'BiblesPlugin.BiblePlugin', u'&Bible'))
|
||||
u'BiblePlugin', u'&Bible'))
|
||||
self.ExportBibleItem.setVisible(False)
|
||||
|
||||
def onBibleImportClick(self):
|
||||
@ -90,7 +90,7 @@ class BiblePlugin(Plugin):
|
||||
self.media_item.onImportClick()
|
||||
|
||||
def about(self):
|
||||
about_text = translate(u'BiblesPlugin.BiblePlugin',
|
||||
about_text = translate(u'BiblePlugin',
|
||||
u'<strong>Bible Plugin</strong><br />This '
|
||||
u'plugin allows bible verses from different sources to be '
|
||||
u'displayed on the screen during the service.')
|
||||
|
@ -67,7 +67,7 @@ class CustomPlugin(Plugin):
|
||||
self.remove_toolbox_item()
|
||||
|
||||
def about(self):
|
||||
about_text = translate(u'CustomPlugin.CustomPlugin',
|
||||
about_text = translate(u'CustomPlugin',
|
||||
u'<b>Custom Plugin</b><br>This plugin '
|
||||
u'allows slides to be displayed on the screen in the same way '
|
||||
u'songs are. This plugin provides greater freedom over the '
|
||||
|
@ -56,7 +56,7 @@ class ImagePlugin(Plugin):
|
||||
return ImageMediaItem(self, self.icon, self.name)
|
||||
|
||||
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'of images are selected together and presented on the live '
|
||||
u'controller it is possible to turn them into a timed loop.<br<br>'
|
||||
|
@ -81,7 +81,7 @@ class MediaPlugin(Plugin):
|
||||
return MediaMediaItem(self, self.icon, self.name)
|
||||
|
||||
def about(self):
|
||||
about_text = translate(u'MediaPlugin.MediaPlugin',
|
||||
about_text = translate(u'MediaPlugin',
|
||||
u'<b>Media Plugin</b><br>This plugin '
|
||||
u'allows the playing of audio and video media')
|
||||
return about_text
|
||||
|
@ -108,7 +108,7 @@ class PresentationPlugin(Plugin):
|
||||
return False
|
||||
|
||||
def about(self):
|
||||
about_text = translate(u'PresentationPlugin.PresentationPlugin',
|
||||
about_text = translate(u'PresentationPlugin',
|
||||
u'<b>Presentation Plugin</b> <br> Delivers '
|
||||
u'the ability to show presentations using a number of different '
|
||||
u'programs. The choice of available presentation programs is '
|
||||
|
@ -69,7 +69,7 @@ class RemotesPlugin(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'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>'
|
||||
|
@ -95,9 +95,9 @@ class SongsPlugin(Plugin):
|
||||
self.SongImportItem = QtGui.QAction(import_menu)
|
||||
self.SongImportItem.setObjectName(u'SongImportItem')
|
||||
self.SongImportItem.setText(translate(
|
||||
u'SongsPlugin.SongsPlugin', u'&Song'))
|
||||
u'SongsPlugin', u'&Song'))
|
||||
self.SongImportItem.setToolTip(
|
||||
translate(u'SongsPlugin.SongsPlugin',
|
||||
translate(u'SongsPlugin',
|
||||
u'Import songs using the import wizard.'))
|
||||
import_menu.addAction(self.SongImportItem)
|
||||
# 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.setObjectName(u'ImportSofItem')
|
||||
self.ImportSofItem.setText(
|
||||
translate(u'SongsPlugin.SongsPlugin',
|
||||
translate(u'SongsPlugin',
|
||||
u'Songs of Fellowship (temp menu item)'))
|
||||
self.ImportSofItem.setToolTip(
|
||||
translate(u'SongsPlugin.SongsPlugin',
|
||||
translate(u'SongsPlugin',
|
||||
u'Import songs from the VOLS1_2.RTF, sof3words' \
|
||||
+ u'.rtf and sof4words.rtf supplied with the music books'))
|
||||
self.ImportSofItem.setStatusTip(
|
||||
translate(u'SongsPlugin.SongsPlugin',
|
||||
translate(u'SongsPlugin',
|
||||
u'Import songs from the VOLS1_2.RTF, sof3words' \
|
||||
+ u'.rtf and sof4words.rtf supplied with the music books'))
|
||||
import_menu.addAction(self.ImportSofItem)
|
||||
@ -121,15 +121,15 @@ class SongsPlugin(Plugin):
|
||||
self.ImportOooItem = QtGui.QAction(import_menu)
|
||||
self.ImportOooItem.setObjectName(u'ImportOooItem')
|
||||
self.ImportOooItem.setText(
|
||||
translate(u'SongsPlugin.SongsPlugin',
|
||||
translate(u'SongsPlugin',
|
||||
u'Generic Document/Presentation Import '
|
||||
u'(temp menu item)'))
|
||||
self.ImportOooItem.setToolTip(
|
||||
translate(u'SongsPlugin.SongsPlugin',
|
||||
translate(u'SongsPlugin',
|
||||
u'Import songs from '
|
||||
u'Word/Writer/Powerpoint/Impress'))
|
||||
self.ImportOooItem.setStatusTip(
|
||||
translate(u'SongsPlugin.SongsPlugin',
|
||||
translate(u'SongsPlugin',
|
||||
u'Import songs from '
|
||||
u'Word/Writer/Powerpoint/Impress'))
|
||||
import_menu.addAction(self.ImportOooItem)
|
||||
@ -159,7 +159,7 @@ class SongsPlugin(Plugin):
|
||||
|
||||
def onImportSofItemClick(self):
|
||||
filenames = QtGui.QFileDialog.getOpenFileNames(
|
||||
None, translate(u'SongsPlugin.Songsplugin',
|
||||
None, translate(u'SongsPlugin',
|
||||
u'Open Songs of Fellowship file'),
|
||||
u'', u'Songs of Fellowship file (*.rtf *.RTF)')
|
||||
try:
|
||||
@ -169,9 +169,9 @@ class SongsPlugin(Plugin):
|
||||
except:
|
||||
log.exception('Could not import SoF file')
|
||||
QtGui.QMessageBox.critical(None,
|
||||
translate(u'SongsPlugin.SongsPlugin',
|
||||
translate(u'SongsPlugin',
|
||||
u'Import Error'),
|
||||
translate(u'SongsPlugin.SongsPlugin',
|
||||
translate(u'SongsPlugin',
|
||||
u'Error importing Songs of '
|
||||
u'Fellowship file.\nOpenOffice.org must be installed'
|
||||
u' and you must be using an unedited copy of the RTF'
|
||||
@ -182,7 +182,7 @@ class SongsPlugin(Plugin):
|
||||
|
||||
def onImportOooItemClick(self):
|
||||
filenames = QtGui.QFileDialog.getOpenFileNames(
|
||||
None, translate(u'SongsPlugin.Songsplugin',
|
||||
None, translate(u'SongsPlugin',
|
||||
u'Open documents or presentations'),
|
||||
u'', u'All Files(*.*)')
|
||||
oooimport = OooImport(self.manager)
|
||||
@ -190,7 +190,7 @@ class SongsPlugin(Plugin):
|
||||
Receiver.send_message(u'songs_load_list')
|
||||
|
||||
def about(self):
|
||||
about_text = translate(u'SongsPlugin.Songsplugin',
|
||||
about_text = translate(u'SongsPlugin',
|
||||
u'<strong>Song Plugin</strong><br />'
|
||||
u'This plugin allows songs to be managed and displayed.')
|
||||
return about_text
|
||||
|
@ -60,23 +60,23 @@ class SongUsagePlugin(Plugin):
|
||||
self.SongUsageMenu = QtGui.QMenu(tools_menu)
|
||||
self.SongUsageMenu.setObjectName(u'SongUsageMenu')
|
||||
self.SongUsageMenu.setTitle(translate(
|
||||
u'SongUsagePlugin.SongUsagePlugin', u'&Song Usage'))
|
||||
u'SongUsagePlugin', u'&Song Usage'))
|
||||
#SongUsage Delete
|
||||
self.SongUsageDelete = QtGui.QAction(tools_menu)
|
||||
self.SongUsageDelete.setText(
|
||||
translate(u'SongUsagePlugin.SongUsagePlugin',
|
||||
translate(u'SongUsagePlugin',
|
||||
u'&Delete recorded data'))
|
||||
self.SongUsageDelete.setStatusTip(
|
||||
translate(u'SongUsagePlugin.SongUsagePlugin',
|
||||
translate(u'SongUsagePlugin',
|
||||
u'Delete song usage to specified date'))
|
||||
self.SongUsageDelete.setObjectName(u'SongUsageDelete')
|
||||
#SongUsage Report
|
||||
self.SongUsageReport = QtGui.QAction(tools_menu)
|
||||
self.SongUsageReport.setText(
|
||||
translate(u'SongUsagePlugin.SongUsagePlugin',
|
||||
translate(u'SongUsagePlugin',
|
||||
u'&Extract recorded data'))
|
||||
self.SongUsageReport.setStatusTip(
|
||||
translate(u'SongUsagePlugin.SongUsagePlugin',
|
||||
translate(u'SongUsagePlugin',
|
||||
u'Generate report on Song Usage'))
|
||||
self.SongUsageReport.setObjectName(u'SongUsageReport')
|
||||
#SongUsage activation
|
||||
@ -86,9 +86,9 @@ class SongUsagePlugin(Plugin):
|
||||
self.SongUsageStatus.setCheckable(True)
|
||||
self.SongUsageStatus.setChecked(False)
|
||||
self.SongUsageStatus.setText(translate(
|
||||
u'SongUsagePlugin.SongUsagePlugin', u'Song Usage Status'))
|
||||
u'SongUsagePlugin', u'Song Usage Status'))
|
||||
self.SongUsageStatus.setStatusTip(
|
||||
translate(u'SongUsagePlugin.SongUsagePlugin',
|
||||
translate(u'SongUsagePlugin',
|
||||
u'Start/Stop live song usage recording'))
|
||||
self.SongUsageStatus.setShortcut(u'F4')
|
||||
self.SongUsageStatus.setObjectName(u'SongUsageStatus')
|
||||
@ -163,7 +163,7 @@ class SongUsagePlugin(Plugin):
|
||||
self.SongUsagedetailform.exec_()
|
||||
|
||||
def about(self):
|
||||
about_text = translate(u'SongsPlugin.SongUsagePlugin',
|
||||
about_text = translate(u'SongUsagePlugin',
|
||||
u'<b>SongUsage Plugin</b><br>This plugin '
|
||||
u'records the use of songs and when they have been used during '
|
||||
u'a live service')
|
||||
|
Loading…
Reference in New Issue
Block a user