create automatically translation folder

pull/135/head
Simon Stürz 2016-08-17 17:19:41 +02:00 committed by Michael Zanetti
parent a6dbf36d0f
commit 6060a260b3
1 changed files with 1 additions and 0 deletions

View File

@ -216,6 +216,7 @@ def createTranslationFiles():
path, fileName = os.path.split(translationFile)
translationOutput = (path + "/" + pluginMap['id'] + '-' + os.path.splitext(fileName)[0] + '.qm')
print(" --> Translation update %s" % translationFile)
print(subprocess.check_output(['mkdir', '-p', path]))
print(subprocess.check_output(['lupdate', '-recursive', '-no-obsolete', sourceDir, (args.builddir + "/" + args.output), '-ts', translationFile]))
print(" --> Translation release %s" % translationOutput)
print(subprocess.check_output(['lrelease', translationFile, '-qm', translationOutput]))