i'm traying to implent python string translate function at field calculatore http://www.tutorialspoint.com/python/string_translate.htm in order to fix hebrew imported from cad. here is the code -
def Ttxt (RefName):
from string import maketrans
intab = "asdfghjkl"
outtab = "שדגכעיחלך"
return trantab = maketrans(intab, outtab)
Ttxt( !RefName! )
Any sugestion about how to right this function ?