forked from openlp/openlp
Fixes for translation utils
This commit is contained in:
parent
de528e7c41
commit
eb5f0b7dd4
@ -175,7 +175,7 @@ def run(command):
|
||||
process = QtCore.QProcess()
|
||||
process.start(command)
|
||||
while process.waitForReadyRead():
|
||||
print_verbose('ReadyRead: %s' % QtCore.QString(process.readAll()))
|
||||
print_verbose('ReadyRead: %s' % process.readAll())
|
||||
print_verbose('Error(s):\n%s' % process.readAllStandardError())
|
||||
print_verbose('Output:\n%s' % process.readAllStandardOutput())
|
||||
|
||||
@ -261,7 +261,7 @@ def prepare_project():
|
||||
lines.append('TRANSLATIONS += %s' % line)
|
||||
lines.sort()
|
||||
file = open(os.path.join(start_dir, 'openlp.pro'), 'w')
|
||||
file.write('\n'.join(lines).encode('utf8'))
|
||||
file.write('\n'.join(lines))
|
||||
file.close()
|
||||
print_quiet(' Done.')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user