forked from openlp/openlp
Fix label text for CCLI
bzr-revno: 2463
This commit is contained in:
commit
e89558da39
@ -67,6 +67,7 @@ class UiStrings(object):
|
|||||||
self.Browse = translate('OpenLP.Ui', 'Browse...')
|
self.Browse = translate('OpenLP.Ui', 'Browse...')
|
||||||
self.Cancel = translate('OpenLP.Ui', 'Cancel')
|
self.Cancel = translate('OpenLP.Ui', 'Cancel')
|
||||||
self.CCLINumberLabel = translate('OpenLP.Ui', 'CCLI number:')
|
self.CCLINumberLabel = translate('OpenLP.Ui', 'CCLI number:')
|
||||||
|
self.CCLISongNumberLabel = translate('OpenLP.Ui', 'CCLI song number:')
|
||||||
self.CreateService = translate('OpenLP.Ui', 'Create a new service.')
|
self.CreateService = translate('OpenLP.Ui', 'Create a new service.')
|
||||||
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')
|
||||||
|
@ -323,7 +323,7 @@ class Ui_EditSongDialog(object):
|
|||||||
self.theme_add_button.setText(translate('SongsPlugin.EditSongForm', 'New &Theme'))
|
self.theme_add_button.setText(translate('SongsPlugin.EditSongForm', 'New &Theme'))
|
||||||
self.rights_group_box.setTitle(translate('SongsPlugin.EditSongForm', 'Copyright Information'))
|
self.rights_group_box.setTitle(translate('SongsPlugin.EditSongForm', 'Copyright Information'))
|
||||||
self.copyright_insert_button.setText(SongStrings.CopyrightSymbol)
|
self.copyright_insert_button.setText(SongStrings.CopyrightSymbol)
|
||||||
self.ccli_label.setText(UiStrings().CCLINumberLabel)
|
self.ccli_label.setText(UiStrings().CCLISongNumberLabel)
|
||||||
self.comments_group_box.setTitle(translate('SongsPlugin.EditSongForm', 'Comments'))
|
self.comments_group_box.setTitle(translate('SongsPlugin.EditSongForm', 'Comments'))
|
||||||
self.song_tab_widget.setTabText(self.song_tab_widget.indexOf(self.theme_tab),
|
self.song_tab_widget.setTabText(self.song_tab_widget.indexOf(self.theme_tab),
|
||||||
translate('SongsPlugin.EditSongForm', 'Theme, Copyright Info && Comments'))
|
translate('SongsPlugin.EditSongForm', 'Theme, Copyright Info && Comments'))
|
||||||
|
@ -34,6 +34,7 @@ from unittest import TestCase
|
|||||||
from PyQt4 import QtGui
|
from PyQt4 import QtGui
|
||||||
|
|
||||||
from openlp.core.common import Registry
|
from openlp.core.common import Registry
|
||||||
|
from openlp.core.common.uistrings import UiStrings
|
||||||
from openlp.plugins.songs.forms.editsongform import EditSongForm
|
from openlp.plugins.songs.forms.editsongform import EditSongForm
|
||||||
from tests.interfaces import MagicMock
|
from tests.interfaces import MagicMock
|
||||||
from tests.helpers.testmixin import TestMixin
|
from tests.helpers.testmixin import TestMixin
|
||||||
@ -136,3 +137,15 @@ class TestEditSongForm(TestCase, TestMixin):
|
|||||||
# THEN: The no-verse-order message should be shown.
|
# THEN: The no-verse-order message should be shown.
|
||||||
assert self.form.warning_label.text() == self.form.no_verse_order_entered_warning, \
|
assert self.form.warning_label.text() == self.form.no_verse_order_entered_warning, \
|
||||||
'The no-verse-order message should be shown.'
|
'The no-verse-order message should be shown.'
|
||||||
|
|
||||||
|
def bug_1404967_test(self):
|
||||||
|
"""
|
||||||
|
Test for CCLI label showing correct text
|
||||||
|
"""
|
||||||
|
# GIVEN; Mocked methods
|
||||||
|
form = self.form
|
||||||
|
# THEN: CCLI label should be CCLI song label
|
||||||
|
self.assertNotEquals(form.ccli_label.text(), UiStrings().CCLINumberLabel,
|
||||||
|
'CCLI label should not be "{}"'.format(UiStrings().CCLINumberLabel))
|
||||||
|
self.assertEquals(form.ccli_label.text(), UiStrings().CCLISongNumberLabel,
|
||||||
|
'CCLI label text should be "{}"'.format(UiStrings().CCLISongNumberLabel))
|
||||||
|
Loading…
Reference in New Issue
Block a user