Skip to content

Commit

Permalink
Small fix in translation tools
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Feb 21, 2018
1 parent b9e1cbb commit 80f9057
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Tools/updatefromcrowdin.py
Expand Up @@ -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 = " <file>translations/"+modname+"_"+lncode+".qm</file>\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)

Expand Down

0 comments on commit 80f9057

Please sign in to comment.