forked from openlp/openlp
attempt to fix test; naming errors
This commit is contained in:
parent
51eb93fe75
commit
20e26e7ea1
@ -411,7 +411,7 @@ class ActionList(object):
|
|||||||
for existing_action in existing_actions:
|
for existing_action in existing_actions:
|
||||||
if action is existing_action:
|
if action is existing_action:
|
||||||
continue
|
continue
|
||||||
if not global_context or existing_action in affected_actions:
|
if existing_action in affected_actions:
|
||||||
return False
|
return False
|
||||||
if existing_action.shortcutContext() in [QtCore.Qt.WindowShortcut, QtCore.Qt.ApplicationShortcut]:
|
if existing_action.shortcutContext() in [QtCore.Qt.WindowShortcut, QtCore.Qt.ApplicationShortcut]:
|
||||||
return False
|
return False
|
||||||
|
@ -165,7 +165,7 @@ class VerseType(object):
|
|||||||
translate('SongsPlugin.VerseType', 'Intro'),
|
translate('SongsPlugin.VerseType', 'Intro'),
|
||||||
translate('SongsPlugin.VerseType', 'Ending'),
|
translate('SongsPlugin.VerseType', 'Ending'),
|
||||||
translate('SongsPlugin.VerseType', 'Other')]
|
translate('SongsPlugin.VerseType', 'Other')]
|
||||||
tanslated_tags = [name[0].lower() for name in translated_names]
|
translated_tags = [name[0].lower() for name in translated_names]
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def translated_tag(verse_tag, default=Other):
|
def translated_tag(verse_tag, default=Other):
|
||||||
@ -181,9 +181,9 @@ class VerseType(object):
|
|||||||
verse_tag = verse_tag[0].lower()
|
verse_tag = verse_tag[0].lower()
|
||||||
for num, tag in enumerate(VerseType.tags):
|
for num, tag in enumerate(VerseType.tags):
|
||||||
if verse_tag == tag:
|
if verse_tag == tag:
|
||||||
return VerseType.tanslated_tags[num].upper()
|
return VerseType.translated_tags[num].upper()
|
||||||
if default in VerseType.tanslated_tags:
|
if default in VerseType.translated_tags:
|
||||||
return VerseType.tanslated_tags[default].upper()
|
return VerseType.translated_tags[default].upper()
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def translated_name(verse_tag, default=Other):
|
def translated_name(verse_tag, default=Other):
|
||||||
|
Loading…
Reference in New Issue
Block a user