@cache_permission
def can_upload_translation(user, translation):
 return (can_edit(user, translation, 'trans.upload_translation') and (can_translate(user, translation) or can_suggest(user, translation)))

@ cache_permission def can_upload_translation ( user , translation ) : return ( can_edit ( user , translation , 'trans.upload_translation' ) and ( can_translate ( user , translation ) or can_suggest ( user , translation ) ) )
checks whether user can translate given translation .