get translation_function attribute of the t object, call the result with 3 arguments: singular, plural and number, return the result.
return getattr ( t , translation_function ) ( singular , plural , number )