allow stdClass-ed translation definition