Use pretty variable names for translation
This commit is contained in:
parent
f112907af7
commit
a149d0af2b
@ -36,13 +36,13 @@ for func in functions:
|
|||||||
checkfunc = typesIn["__unknown"]
|
checkfunc = typesIn["__unknown"]
|
||||||
else:
|
else:
|
||||||
checkfunc = typesIn[arg]
|
checkfunc = typesIn[arg]
|
||||||
ofile.write("\t" +arg+ ' invar' +str(invarCount)+ ' = ' +checkfunc+ '(L,' +str(invarCount)+ ');\n')
|
ofile.write("\t" +arg+ ' ' +functions[func]["argNames"][invarCount - 1]+ ' = ' +checkfunc+ '(L,' +str(invarCount)+ ');\n')
|
||||||
invarCount += 1
|
invarCount += 1
|
||||||
|
|
||||||
invarCount = 1
|
invarCount = 0
|
||||||
argstring = ""
|
argstring = ""
|
||||||
for arg in functions[func]["arguments"]:
|
for arg in functions[func]["arguments"]:
|
||||||
argstring += ",invar" +str(invarCount)
|
argstring += "," +functions[func]["argNames"][invarCount]
|
||||||
invarCount += 1
|
invarCount += 1
|
||||||
argstring = "(" +argstring.strip(",")+ ")"
|
argstring = "(" +argstring.strip(",")+ ")"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user