Original: Until the independence of Namibia was inaugurated in 1990, Windhoek was recognised as the capital city of South West Africa as administered by the South African government.
Simplified: It was the capital of South West Africa (Namibia) under South African control until the independence of Namibia in 1990.