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): def setupUi(self):
self.setObjectName(u'RemoteTab') self.setObjectName(u'RemoteTab')
self.tabTitleVisible = translate('RemoteTab','Remotes') self.tabTitleVisible = translate(u'RemotePlugin.RemoteTab', u'Remotes')
self.RemoteLayout = QtGui.QFormLayout(self) self.RemoteLayout = QtGui.QFormLayout(self)
self.RemoteLayout.setObjectName(u'RemoteLayout') self.RemoteLayout.setObjectName(u'RemoteLayout')
self.RemoteModeGroupBox = QtGui.QGroupBox(self) self.RemoteModeGroupBox = QtGui.QGroupBox(self)
@ -53,7 +53,8 @@ class RemoteTab(SettingsTab):
0, QtGui.QFormLayout.LabelRole, self.RemoteModeGroupBox) 0, QtGui.QFormLayout.LabelRole, self.RemoteModeGroupBox)
def retranslateUi(self): 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): def load(self):
self.RemotePortSpinBox.setValue( self.RemotePortSpinBox.setValue(

View File

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