forked from openlp/openlp
String clean ups
This commit is contained in:
parent
734c697fef
commit
d538a32f49
@ -62,6 +62,7 @@ class UiStrings(object):
|
|||||||
self.Advanced = translate('OpenLP.Ui', 'Advanced')
|
self.Advanced = translate('OpenLP.Ui', 'Advanced')
|
||||||
self.AllFiles = translate('OpenLP.Ui', 'All Files')
|
self.AllFiles = translate('OpenLP.Ui', 'All Files')
|
||||||
self.Automatic = translate('OpenLP.Ui', 'Automatic')
|
self.Automatic = translate('OpenLP.Ui', 'Automatic')
|
||||||
|
self.BackgroundColor = translate('OpenLP.Ui', 'Background Color')
|
||||||
self.Bottom = translate('OpenLP.Ui', 'Bottom')
|
self.Bottom = translate('OpenLP.Ui', 'Bottom')
|
||||||
self.Browse = translate('OpenLP.Ui', 'Browse...')
|
self.Browse = translate('OpenLP.Ui', 'Browse...')
|
||||||
self.Cancel = translate('OpenLP.Ui', 'Cancel')
|
self.Cancel = translate('OpenLP.Ui', 'Cancel')
|
||||||
@ -70,6 +71,7 @@ class UiStrings(object):
|
|||||||
self.ConfirmDelete = translate('OpenLP.Ui', 'Confirm Delete')
|
self.ConfirmDelete = translate('OpenLP.Ui', 'Confirm Delete')
|
||||||
self.Continuous = translate('OpenLP.Ui', 'Continuous')
|
self.Continuous = translate('OpenLP.Ui', 'Continuous')
|
||||||
self.Default = unicode(translate('OpenLP.Ui', 'Default'))
|
self.Default = unicode(translate('OpenLP.Ui', 'Default'))
|
||||||
|
self.DefaultColor = translate('OpenLP.Ui', 'Default Color:')
|
||||||
self.Delete = translate('OpenLP.Ui', '&Delete')
|
self.Delete = translate('OpenLP.Ui', '&Delete')
|
||||||
self.DisplayStyle = translate('OpenLP.Ui', 'Display style:')
|
self.DisplayStyle = translate('OpenLP.Ui', 'Display style:')
|
||||||
self.Duplicate = translate('OpenLP.Ui', 'Duplicate Error')
|
self.Duplicate = translate('OpenLP.Ui', 'Duplicate Error')
|
||||||
|
@ -129,10 +129,8 @@ class PlayerTab(SettingsTab):
|
|||||||
translate('OpenLP.PlayerTab', 'Available Media Players'))
|
translate('OpenLP.PlayerTab', 'Available Media Players'))
|
||||||
self.playerOrderGroupBox.setTitle(
|
self.playerOrderGroupBox.setTitle(
|
||||||
translate('OpenLP.PlayerTab', 'Player Search Order'))
|
translate('OpenLP.PlayerTab', 'Player Search Order'))
|
||||||
self.bgColorGroupBox.setTitle(
|
self.bgColorGroupBox.setTitle(UiStrings().BackgroundColor)
|
||||||
translate('ImagesPlugin.ImageTab', 'Background Color'))
|
self.backgroundColorLabel.setText(UiStrings().DefaultColor)
|
||||||
self.backgroundColorLabel.setText(
|
|
||||||
translate('ImagesPlugin.ImageTab', 'Default Color:'))
|
|
||||||
self.informationLabel.setText(
|
self.informationLabel.setText(
|
||||||
translate('OpenLP.PlayerTab', 'Visible background for videos '
|
translate('OpenLP.PlayerTab', 'Visible background for videos '
|
||||||
'with aspect ratio different to screen.'))
|
'with aspect ratio different to screen.'))
|
||||||
|
@ -31,6 +31,7 @@ from PyQt4 import QtCore, QtGui
|
|||||||
|
|
||||||
from openlp.core.lib import SettingsTab, translate, Receiver
|
from openlp.core.lib import SettingsTab, translate, Receiver
|
||||||
from openlp.core.lib.settings import Settings
|
from openlp.core.lib.settings import Settings
|
||||||
|
from openlp.core.lib.ui import UiStrings
|
||||||
|
|
||||||
class ImageTab(SettingsTab):
|
class ImageTab(SettingsTab):
|
||||||
"""
|
"""
|
||||||
@ -68,10 +69,8 @@ class ImageTab(SettingsTab):
|
|||||||
QtCore.SIGNAL(u'clicked()'), self.onbackgroundColorButtonClicked)
|
QtCore.SIGNAL(u'clicked()'), self.onbackgroundColorButtonClicked)
|
||||||
|
|
||||||
def retranslateUi(self):
|
def retranslateUi(self):
|
||||||
self.bgColorGroupBox.setTitle(
|
self.bgColorGroupBox.setTitle(UiStrings().BackgroundColor)
|
||||||
translate('ImagesPlugin.ImageTab', 'Background Color'))
|
self.backgroundColorLabel.setText(UiStrings().DefaultColor)
|
||||||
self.backgroundColorLabel.setText(
|
|
||||||
translate('ImagesPlugin.ImageTab', 'Default Color:'))
|
|
||||||
self.informationLabel.setText(
|
self.informationLabel.setText(
|
||||||
translate('ImagesPlugin.ImageTab', 'Visible background for images '
|
translate('ImagesPlugin.ImageTab', 'Visible background for images '
|
||||||
'with aspect ratio different to screen.'))
|
'with aspect ratio different to screen.'))
|
||||||
|
Loading…
Reference in New Issue
Block a user