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) used_count = plugin.uses_theme(theme)
if used_count: if used_count:
plugin_usage = "%s%s" % (plugin_usage, (translate('OpenLP.ThemeManager', plugin_usage = "%s%s" % (plugin_usage, (translate('OpenLP.ThemeManager',
'%s time(s) by %s') % '%(count)s time(s) by %(plugin)s') %
(used_count, plugin.name))) {'count': used_count, 'plugin': plugin.name}))
plugin_usage = "%s\n" % plugin_usage plugin_usage = "%s\n" % plugin_usage
if plugin_usage: if plugin_usage:
critical_error_message_box(translate('OpenLP.ThemeManager', 'Unable to delete theme'), 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') song_data = open(source, 'rb')
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', translate('SongsPlugin.WordsofWorshipSongImport',
'Invalid Words of Worship song file. Missing "%s" header.' 'Invalid Words of Worship song file. Missing "%s" header.')
% 'WoW File\\nSong Words'))) % '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)
@ -117,9 +117,9 @@ class WordsOfWorshipImport(SongImport):
song_data.seek(66) song_data.seek(66)
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', translate('SongsPlugin.WordsofWorshipSongImport',
'Invalid Words of Worship song file. Missing "%s" ' 'Invalid Words of Worship song file. Missing "%s" string.')
'string.' % 'CSongDoc::CBlock'))) % '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)