def localTranslation():
 if getattr(threadLocal, 'currentTranslation', None):
  return threadLocal.currentTranslation
 else:
  return currentTranslation

def localTranslation ( ) : if getattr ( threadLocal , 'currentTranslation' , None ) : return threadLocal . currentTranslation else : return currentTranslation
return the translation local to this thread .