Original: It remained as a mosque until 1935, when it was converted into a museum by the Republic of Turkey.
Simplified: It was made into a mosque in 1453 by the Turks and changed into a museum in 1935.