forked from openlp/openlp
added a placeholder to show the alternate title of a song
Fixes: https://launchpad.net/bugs/1694430
This commit is contained in:
parent
66c9f8eb82
commit
88642395ee
@ -667,6 +667,7 @@ class SongMediaItem(MediaManagerItem):
|
||||
# Keep this in sync with the list in songstab.py
|
||||
item.footer_html = pystache.render(footer_template, {
|
||||
'title': song.title,
|
||||
'alternate_title': song.alternate_title,
|
||||
'authors_none_label': translate('OpenLP.Ui', 'Written by'),
|
||||
'authors_none': make_list(authors_none),
|
||||
'authors_words_label': AuthorType.Types[AuthorType.Words],
|
||||
|
@ -134,7 +134,9 @@ class SongsTab(SettingsTab):
|
||||
# Keep this in sync with the list in mediaitem.py
|
||||
const = '<code>"{}"</code>'
|
||||
placeholders = [
|
||||
# placeholder, description, can be empty, is a list
|
||||
['title', translate('SongsPlugin.SongsTab', 'Song Title'), False, False],
|
||||
['alternate_title', translate('SongsPlugin.SongsTab', 'Alternate Title'), False, False],
|
||||
['written_by', const.format(translate('SongsPlugin.SongsTab', 'Written By')), True, False],
|
||||
['authors_none', translate('SongsPlugin.SongsTab', 'Authors when type is not set'), True, True],
|
||||
['authors_words_label', const.format(AuthorType.Types[AuthorType.Words]), False, False],
|
||||
|
Loading…
Reference in New Issue
Block a user