From 91fac9094a804c9ba9dfc4fa49209043cb5423b8 Mon Sep 17 00:00:00 2001 From: Yorik van Havre Date: Wed, 21 Feb 2018 13:35:32 -0300 Subject: [PATCH] Small fix in translation tools --- src/Tools/updatefromcrowdin.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Tools/updatefromcrowdin.py b/src/Tools/updatefromcrowdin.py index 41f780019f..360044cfa6 100755 --- a/src/Tools/updatefromcrowdin.py +++ b/src/Tools/updatefromcrowdin.py @@ -136,8 +136,10 @@ def updateqrc(qrcpath,lncode): if ".qm" in line: line = re.sub("_.*\.qm","_"+lncode+".qm",line) else: - print "ERROR: no existing qm entry in this resource: Please add one manually " + qrcpath - sys.exit() + modname = os.path.splitext(os.path.basename(qrcpath))[0] + line = " translations/"+modname+"_"+lncode+".qm\n" + #print "ERROR: no existing qm entry in this resource: Please add one manually " + qrcpath + #sys.exit() print "inserting line: ",line resources.insert(pos+1,line)