A language is different from a dialect. This is more a political issue than a linguistic one. For example, there are less differences between Spanish and Portugese than between Mandarin and Cantonese, though the former two are languages while the latter two are dialects of the same language (i.e. Chinese).