From c34d452bb6baad6cc7ef5a5e4223e9f7cd934f56 Mon Sep 17 00:00:00 2001 From: Jon Tibble Date: Wed, 28 Oct 2009 01:17:35 +0000 Subject: [PATCH] Fix plugintab.py i18n --- openlp/plugins/bibles/lib/biblestab.py | 4 ++-- openlp/plugins/images/lib/imagetab.py | 4 ++-- openlp/plugins/media/lib/mediatab.py | 4 ++-- openlp/plugins/presentations/lib/presentationtab.py | 3 ++- openlp/plugins/remotes/lib/remotetab.py | 3 ++- openlp/plugins/songs/lib/songstab.py | 3 ++- 6 files changed, 12 insertions(+), 9 deletions(-) diff --git a/openlp/plugins/bibles/lib/biblestab.py b/openlp/plugins/bibles/lib/biblestab.py index bf08acbec..3cdb03ce4 100644 --- a/openlp/plugins/bibles/lib/biblestab.py +++ b/openlp/plugins/bibles/lib/biblestab.py @@ -41,11 +41,11 @@ class BiblesTab(SettingsTab): self.paragraph_style = True self.show_new_chapters = False self.display_style = 0 - SettingsTab.__init__(self, u'Bibles', u'Bibles') - #SettingsTab.__init__(self, self.trUtf8(u'Bibles'), u'Bibles') + SettingsTab.__init__(self, section=u'Bibles') def setupUi(self): self.setObjectName(u'BiblesTab') + self.setTitle(self.trUtf8(u'Bibles')) self.BibleLayout = QtGui.QHBoxLayout(self) self.BibleLayout.setSpacing(8) self.BibleLayout.setMargin(8) diff --git a/openlp/plugins/images/lib/imagetab.py b/openlp/plugins/images/lib/imagetab.py index f5472b02c..ef6de959e 100644 --- a/openlp/plugins/images/lib/imagetab.py +++ b/openlp/plugins/images/lib/imagetab.py @@ -31,11 +31,11 @@ class ImageTab(SettingsTab): ImageTab is the Image settings tab in the settings dialog. """ def __init__(self): - #SettingsTab.__init__(self, self.trUtf8(u'Images'), u'Images') - SettingsTab.__init__(self, u'Images', u'Images') + SettingsTab.__init__(self, section=u'Images') def setupUi(self): self.setObjectName(u'ImageTab') + self.setTitle(self.trUtf8(u'Images')) self.ImageLayout = QtGui.QFormLayout(self) self.ImageLayout.setObjectName(u'ImageLayout') self.ImageSettingsGroupBox = QtGui.QGroupBox(self) diff --git a/openlp/plugins/media/lib/mediatab.py b/openlp/plugins/media/lib/mediatab.py index 69440faa8..20de4be52 100644 --- a/openlp/plugins/media/lib/mediatab.py +++ b/openlp/plugins/media/lib/mediatab.py @@ -31,11 +31,11 @@ class MediaTab(SettingsTab): mediaTab is the media settings tab in the settings dialog. """ def __init__(self): - SettingsTab.__init__(self, u'Media', u'Media') - #SettingsTab.__init__(self, self.trUtf8(u'Media'), u'Media') + SettingsTab.__init__(self, section=u'Media') def setupUi(self): self.setObjectName(u'MediaTab') + self.setTitle(self.trUtf8(u'Media')) self.MediaLayout = QtGui.QFormLayout(self) self.MediaLayout.setObjectName(u'MediaLayout') self.MediaModeGroupBox = QtGui.QGroupBox(self) diff --git a/openlp/plugins/presentations/lib/presentationtab.py b/openlp/plugins/presentations/lib/presentationtab.py index 410e3cde9..27b85c7d9 100644 --- a/openlp/plugins/presentations/lib/presentationtab.py +++ b/openlp/plugins/presentations/lib/presentationtab.py @@ -32,10 +32,11 @@ class PresentationTab(SettingsTab): """ def __init__(self, controllers): self.controllers = controllers - SettingsTab.__init__(self, u'Presentation', u'Presentations') + SettingsTab.__init__(self, section=u'Presentations') def setupUi(self): self.setObjectName(u'PresentationTab') + self.setTitle(self.trUtf8(u'Presentations')) self.PresentationLayout = QtGui.QHBoxLayout(self) self.PresentationLayout.setSpacing(8) self.PresentationLayout.setMargin(8) diff --git a/openlp/plugins/remotes/lib/remotetab.py b/openlp/plugins/remotes/lib/remotetab.py index a1f473c7c..deb0e42c7 100644 --- a/openlp/plugins/remotes/lib/remotetab.py +++ b/openlp/plugins/remotes/lib/remotetab.py @@ -27,10 +27,11 @@ class RemoteTab(SettingsTab): RemoteTab is the Remotes settings tab in the settings dialog. """ def __init__(self): - SettingsTab.__init__(self, u'Remotes', u'Remotes') + SettingsTab.__init__(self, section=u'Remotes') def setupUi(self): self.setObjectName(u'RemoteTab') + self.setTitle(self.trUtf8(u'Remotes')) self.RemoteLayout = QtGui.QFormLayout(self) self.RemoteLayout.setObjectName(u'RemoteLayout') self.RemoteModeGroupBox = QtGui.QGroupBox(self) diff --git a/openlp/plugins/songs/lib/songstab.py b/openlp/plugins/songs/lib/songstab.py index c5c2adbdc..2f1114423 100644 --- a/openlp/plugins/songs/lib/songstab.py +++ b/openlp/plugins/songs/lib/songstab.py @@ -31,10 +31,11 @@ class SongsTab(SettingsTab): SongsTab is the Songs settings tab in the settings dialog. """ def __init__(self): - SettingsTab.__init__(self, u'Songs', u'Songs') + SettingsTab.__init__(self, section=u'Songs') def setupUi(self): self.setObjectName(u'SongsTab') + self.setTitle(self.trUtf8(u'Songs')) self.SongsLayout = QtGui.QFormLayout(self) self.SongsLayout.setObjectName(u'SongsLayout') self.SongsModeGroupBox = QtGui.QGroupBox(self)