Translation fixes. Fixes bug 1545072

Fixes: https://launchpad.net/bugs/1545072
This commit is contained in:
Tomas Groth 2016-03-22 22:11:12 +01:00
parent 7c6e1902c4
commit dc0924fbbb
2 changed files with 8 additions and 8 deletions

View File

@ -760,8 +760,8 @@ class ThemeManager(OpenLPMixin, RegistryMixin, QtWidgets.QWidget, Ui_ThemeManage
used_count = plugin.uses_theme(theme)
if used_count:
plugin_usage = "%s%s" % (plugin_usage, (translate('OpenLP.ThemeManager',
'%s time(s) by %s') %
(used_count, plugin.name)))
'%(count)s time(s) by %(plugin)s') %
{'count': used_count, 'plugin': plugin.name}))
plugin_usage = "%s\n" % plugin_usage
if plugin_usage:
critical_error_message_box(translate('OpenLP.ThemeManager', 'Unable to delete theme'),

View File

@ -107,9 +107,9 @@ class WordsOfWorshipImport(SongImport):
song_data = open(source, 'rb')
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 "%s" header.'
% 'WoW File\\nSong Words')))
translate('SongsPlugin.WordsofWorshipSongImport',
'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)
@ -117,9 +117,9 @@ class WordsOfWorshipImport(SongImport):
song_data.seek(66)
if song_data.read(16).decode() != 'CSongDoc::CBlock':
self.log_error(source,
str(translate('SongsPlugin.WordsofWorshipSongImport',
'Invalid Words of Worship song file. Missing "%s" '
'string.' % 'CSongDoc::CBlock')))
translate('SongsPlugin.WordsofWorshipSongImport',
'Invalid Words of Worship song file. Missing "%s" string.')
% 'CSongDoc::CBlock')
continue
# Seek to the beginning of the first block
song_data.seek(82)