Dialects of Serbo-Croatian
Kajkavian is spoken in North Croatia, including the capital Zagreb, as well as in a few enclaves in Austria, Hungary, and Romania. Though its speakers are ethnic Croats and Kajkavian is thus generally considered a dialect of Serbo-Croatian, it is closer to neighboring Slovene than it is to Chakavian or Shtokavian. The Kajkavian area of Croatia is bordered on the northwest by Slovene language territory. It is bordered on the east and southeast by Shtokavian dialects roughly along a line that was the former division between Civil Croatia and the Habsburg Military Frontier; in southwest along Kupa and Dobra rivers, it persisted in ancient (medieval) contact with Chakavian dialects.
Languages of Slovenia
The population of Slovenia has become more diverse in regard to its language through recent decades but is still relatively homogenous — Slovene was in 2002 the first language of 87.8% of the inhabitants. It was followed by Croatian (2.8%), Serbian (1.6%) and so-called Serbo-Croatian (1.6%). Italian and Hungarian language, protected by the Constitution of Slovenia, had lower numbers of native speakers.