Added translation between nametag types and textan types.