diff --git a/openlp/core/ui/formattingtagcontroller.py b/openlp/core/ui/formattingtagcontroller.py index f2fca420a..9470e8859 100644 --- a/openlp/core/ui/formattingtagcontroller.py +++ b/openlp/core/ui/formattingtagcontroller.py @@ -166,5 +166,6 @@ class FormattingTagController(object): return None, end if end and end != end_html: 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 diff --git a/openlp/plugins/songs/lib/importers/wordsofworship.py b/openlp/plugins/songs/lib/importers/wordsofworship.py index a7ee57187..4f9076072 100644 --- a/openlp/plugins/songs/lib/importers/wordsofworship.py +++ b/openlp/plugins/songs/lib/importers/wordsofworship.py @@ -108,8 +108,8 @@ class WordsOfWorshipImport(SongImport): if song_data.read(19).decode() != 'WoW File\nSong Words': self.log_error(source, str(translate('SongsPlugin.WordsofWorshipSongImport', - 'Invalid Words of Worship song file. Missing "WoW File\\nSong ' - 'Words" header.'))) + 'Invalid Words of Worship song file. Missing "%s" header.' + % 'WoW File\\nSong Words'))) continue # Seek to byte which stores number of blocks in the song song_data.seek(56) @@ -118,8 +118,8 @@ class WordsOfWorshipImport(SongImport): if song_data.read(16).decode() != 'CSongDoc::CBlock': self.log_error(source, str(translate('SongsPlugin.WordsofWorshipSongImport', - 'Invalid Words of Worship song file. Missing "CSongDoc::CBlock" ' - 'string.'))) + 'Invalid Words of Worship song file. Missing "%s" ' + 'string.' % 'CSongDoc::CBlock'))) continue # Seek to the beginning of the first block song_data.seek(82)