"The teacher can sing Chinese songs."
Many are confused about the difference between 中文 and 汉语。These two are very much similar with the subtle difference in that, 中文 can also refer to the languages spoken by the indigeneous people (minorities) of china. There are 91% of han ethnic people (汉族人) in china, therefore the majoritiy. 9% of 55 groups of minorities in china have their own languages, their languages are also "中文". 汉语 spcifically refer to languages spoken by individuals of han ethnic(madarin, cantonese and many other dialects) . In vast majority of cases these two can be used interchangably.