def survey_T(phrase, langDict):
 if ((phrase in langDict) and (langDict[phrase] != '')):
  return langDict[phrase]
 else:
  return phrase

def survey_T ( phrase , langDict ) : if ( ( phrase in langDict ) and ( langDict [ phrase ] != '' ) ) : return langDict [ phrase ] else : return phrase
function to translate a phrase using the dictionary passed in @todo: parameter description .