Complex sentence: Left with nothing, he appealed to the Austrian consulate in Trieste but in 1889 a court sentenced him to a short stay in prison and extended his military service by one year.
Split into simpler sentences: Left with nothing, he appealed to the Austro-Hungarian consulate. In 1889 a court sentenced him to a short stay in prison and extended his military service by one year.