Complex sentence: Before World War II the city was located in Poland and during the German occupation in 1941--44 the city was designated as a capital of the German Ukraine (Reichskommissariat Ukraine).
Split into simpler sentences: Before World War II the city was located in Poland. During the German occupation in 1941--44 the city was designated as a capital of the German Ukraine (Reichskommissariat Ukraine).