Original: It is the capital of the canton of Vaud and of the district of Lausanne.
Simplified: The city is the capital of the district Lausanne. It is also the capital of the canton of Vaud.