Original: Shortly after the death of Sophie Charlotte, the settlement facing the palace was called Charlottenburg - the palace itself Schloss Charlottenburg - and chartered as a town on April 5, 1705.
Simplified: Just after the death of Sophie Charlotte, the village near the palace was called 'Charlottenburg' and the palace itself Schloss Charlottenburg, and the settlement was chartered as a town.