forked from openlp/openlp
Better strings for translation
This commit is contained in:
parent
fce9a1e1f2
commit
eac92737a2
@ -166,5 +166,6 @@ class FormattingTagController(object):
|
|||||||
return None, end
|
return None, end
|
||||||
if end and end != end_html:
|
if end and end != end_html:
|
||||||
return translate('OpenLP.FormattingTagForm',
|
return translate('OpenLP.FormattingTagForm',
|
||||||
'End tag %s does not match end tag for start tag %s') % (end, start_html), None
|
'End tag %(end)s does not match end tag for start tag %(start)s') % \
|
||||||
|
{'end': end, 'start': start_html}, None
|
||||||
return None, None
|
return None, None
|
||||||
|
@ -108,8 +108,8 @@ class WordsOfWorshipImport(SongImport):
|
|||||||
if song_data.read(19).decode() != 'WoW File\nSong Words':
|
if song_data.read(19).decode() != 'WoW File\nSong Words':
|
||||||
self.log_error(source,
|
self.log_error(source,
|
||||||
str(translate('SongsPlugin.WordsofWorshipSongImport',
|
str(translate('SongsPlugin.WordsofWorshipSongImport',
|
||||||
'Invalid Words of Worship song file. Missing "WoW File\\nSong '
|
'Invalid Words of Worship song file. Missing "%s" header.'
|
||||||
'Words" header.')))
|
% 'WoW File\\nSong Words')))
|
||||||
continue
|
continue
|
||||||
# Seek to byte which stores number of blocks in the song
|
# Seek to byte which stores number of blocks in the song
|
||||||
song_data.seek(56)
|
song_data.seek(56)
|
||||||
@ -118,8 +118,8 @@ class WordsOfWorshipImport(SongImport):
|
|||||||
if song_data.read(16).decode() != 'CSongDoc::CBlock':
|
if song_data.read(16).decode() != 'CSongDoc::CBlock':
|
||||||
self.log_error(source,
|
self.log_error(source,
|
||||||
str(translate('SongsPlugin.WordsofWorshipSongImport',
|
str(translate('SongsPlugin.WordsofWorshipSongImport',
|
||||||
'Invalid Words of Worship song file. Missing "CSongDoc::CBlock" '
|
'Invalid Words of Worship song file. Missing "%s" '
|
||||||
'string.')))
|
'string.' % 'CSongDoc::CBlock')))
|
||||||
continue
|
continue
|
||||||
# Seek to the beginning of the first block
|
# Seek to the beginning of the first block
|
||||||
song_data.seek(82)
|
song_data.seek(82)
|
||||||
|
Loading…
Reference in New Issue
Block a user