I noticed that sometimes categories are "translated" to Commons categories and sometimes they are converted to text like xx:Category:Some name. Example this edit.
Is it because the category have a ":" in the name? If I change "Kategorija" to "Category" before I import then it works fine.