forked from openlp/openlp
Fix i18n for visible and non-visible title use
This commit is contained in:
parent
c34d452bb6
commit
439c3c90ca
@ -44,7 +44,8 @@ class SettingsTab(QtGui.QWidget):
|
||||
to write to when the ``save`` method is called.
|
||||
"""
|
||||
QtGui.QWidget.__init__(self)
|
||||
self.tabTitle = self.trUtf8(title)
|
||||
self.tabTitle = title
|
||||
self.tabTitleVisible = None
|
||||
# Use the line below when pulling the translation template file.
|
||||
#self.tabTitle = title
|
||||
self.setupUi()
|
||||
|
@ -41,11 +41,11 @@ class BiblesTab(SettingsTab):
|
||||
self.paragraph_style = True
|
||||
self.show_new_chapters = False
|
||||
self.display_style = 0
|
||||
SettingsTab.__init__(self, section=u'Bibles')
|
||||
SettingsTab.__init__(self, u'Bibles', u'Bibles')
|
||||
|
||||
def setupUi(self):
|
||||
self.setObjectName(u'BiblesTab')
|
||||
self.setTitle(self.trUtf8(u'Bibles'))
|
||||
self.tabTitleVisible = self.trUtf8(u'Bibles')
|
||||
self.BibleLayout = QtGui.QHBoxLayout(self)
|
||||
self.BibleLayout.setSpacing(8)
|
||||
self.BibleLayout.setMargin(8)
|
||||
|
@ -31,11 +31,11 @@ class ImageTab(SettingsTab):
|
||||
ImageTab is the Image settings tab in the settings dialog.
|
||||
"""
|
||||
def __init__(self):
|
||||
SettingsTab.__init__(self, section=u'Images')
|
||||
SettingsTab.__init__(self, u'Images', u'Images')
|
||||
|
||||
def setupUi(self):
|
||||
self.setObjectName(u'ImageTab')
|
||||
self.setTitle(self.trUtf8(u'Images'))
|
||||
self.tabTitleVisible = self.trUtf8(u'Images')
|
||||
self.ImageLayout = QtGui.QFormLayout(self)
|
||||
self.ImageLayout.setObjectName(u'ImageLayout')
|
||||
self.ImageSettingsGroupBox = QtGui.QGroupBox(self)
|
||||
|
@ -31,11 +31,11 @@ class MediaTab(SettingsTab):
|
||||
mediaTab is the media settings tab in the settings dialog.
|
||||
"""
|
||||
def __init__(self):
|
||||
SettingsTab.__init__(self, section=u'Media')
|
||||
SettingsTab.__init__(self, u'Media', u'Media')
|
||||
|
||||
def setupUi(self):
|
||||
self.setObjectName(u'MediaTab')
|
||||
self.setTitle(self.trUtf8(u'Media'))
|
||||
self.tabTitleVisible = self.trUtf8(u'Media')
|
||||
self.MediaLayout = QtGui.QFormLayout(self)
|
||||
self.MediaLayout.setObjectName(u'MediaLayout')
|
||||
self.MediaModeGroupBox = QtGui.QGroupBox(self)
|
||||
|
@ -32,11 +32,11 @@ class PresentationTab(SettingsTab):
|
||||
"""
|
||||
def __init__(self, controllers):
|
||||
self.controllers = controllers
|
||||
SettingsTab.__init__(self, section=u'Presentations')
|
||||
SettingsTab.__init__(self, u'Presentations', u'Presentations')
|
||||
|
||||
def setupUi(self):
|
||||
self.setObjectName(u'PresentationTab')
|
||||
self.setTitle(self.trUtf8(u'Presentations'))
|
||||
self.tabTitleVisible = self.trUtf8(u'Presentations')
|
||||
self.PresentationLayout = QtGui.QHBoxLayout(self)
|
||||
self.PresentationLayout.setSpacing(8)
|
||||
self.PresentationLayout.setMargin(8)
|
||||
|
@ -27,11 +27,11 @@ class RemoteTab(SettingsTab):
|
||||
RemoteTab is the Remotes settings tab in the settings dialog.
|
||||
"""
|
||||
def __init__(self):
|
||||
SettingsTab.__init__(self, section=u'Remotes')
|
||||
SettingsTab.__init__(self, u'Remotes', u'Remotes')
|
||||
|
||||
def setupUi(self):
|
||||
self.setObjectName(u'RemoteTab')
|
||||
self.setTitle(self.trUtf8(u'Remotes'))
|
||||
self.tabTitleVisible = self.trUtf8(u'Remotes')
|
||||
self.RemoteLayout = QtGui.QFormLayout(self)
|
||||
self.RemoteLayout.setObjectName(u'RemoteLayout')
|
||||
self.RemoteModeGroupBox = QtGui.QGroupBox(self)
|
||||
|
@ -31,11 +31,11 @@ class SongsTab(SettingsTab):
|
||||
SongsTab is the Songs settings tab in the settings dialog.
|
||||
"""
|
||||
def __init__(self):
|
||||
SettingsTab.__init__(self, section=u'Songs')
|
||||
SettingsTab.__init__(self, u'Songs', u'Songs')
|
||||
|
||||
def setupUi(self):
|
||||
self.setObjectName(u'SongsTab')
|
||||
self.setTitle(self.trUtf8(u'Songs'))
|
||||
self.tabTitleVisible = self.trUtf8(u'Songs')
|
||||
self.SongsLayout = QtGui.QFormLayout(self)
|
||||
self.SongsLayout.setObjectName(u'SongsLayout')
|
||||
self.SongsModeGroupBox = QtGui.QGroupBox(self)
|
||||
|
Loading…
Reference in New Issue
Block a user