The fermentation of galactose and galactose-1-phosphate.