Original: He started his studies at the seminary in Senj, but moved to Pest in 1845 in order to attend a Roman Catholic theological seminary from which he graduated in 1848.
Simplified: He started his studies at the seminary in Senj, but moved to Pest in the year of 1845 in order to attend a Roman Catholic theological seminary - which he finished in 1848.