Fixed translate() function in RemotePlugin

This commit is contained in:
Frode Woldsund 2010-06-06 15:44:07 +02:00
parent 3c096b4d0a
commit 5e64814133
2 changed files with 8 additions and 6 deletions

View File

@ -36,7 +36,7 @@ class RemoteTab(SettingsTab):
def setupUi(self):
self.setObjectName(u'RemoteTab')
self.tabTitleVisible = translate('RemoteTab','Remotes')
self.tabTitleVisible = translate(u'RemotePlugin.RemoteTab', u'Remotes')
self.RemoteLayout = QtGui.QFormLayout(self)
self.RemoteLayout.setObjectName(u'RemoteLayout')
self.RemoteModeGroupBox = QtGui.QGroupBox(self)
@ -53,7 +53,8 @@ class RemoteTab(SettingsTab):
0, QtGui.QFormLayout.LabelRole, self.RemoteModeGroupBox)
def retranslateUi(self):
self.RemoteModeGroupBox.setTitle(translate('RemoteTab','Remotes Receiver Port'))
self.RemoteModeGroupBox.setTitle(
translate(u'RemotePlugin.RemoteTab', u'Remotes Receiver Port'))
def load(self):
self.RemotePortSpinBox.setValue(

View File

@ -69,8 +69,9 @@ class RemotesPlugin(Plugin):
"""
Information about this plugin
"""
about_text = translate('RemotePlugin','<b>Remote Plugin</b><br>This plugin '
'provides the ability to send messages to a running version of '
'openlp on a different computer via a web browser or other app<br>'
'The Primary use for this would be to send alerts from a creche')
about_text = translate(u'RemotePlugin.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>'
u'The Primary use for this would be to send alerts from a creche')
return about_text