Original sentence: After their extinction Stettin, along with the rest of western Pomerania, was granted to Sweden at the Peace of Westphalia, despite the protests of the Elector of Brandenburg, who had a legal claim to inherit all of Pomerania.Prior to 1945, the city, inhabited almost entirely by Germans from late Medieval times, was known internationally and locally as Stettin, its German name.Stettin remained in Prussia (and thus, after 1871 in Germany) until 1945, when the Red Army captured the city and gave it to Poland.Szczecin (pronounce:  , German Stettin) is the 7th largest city in Poland and the second largest Polish seaport on the Baltic.The city's German inhabitants either escaped or were transferred to Germany, and the city was colonized with Poles, mainly from Poznan area.The city, now known as Szczecin, was rebuilt and made a major industrial centre, the capital of Szczecin Voivodship.Till the 1630s Stettin was the capital of the Duchy of Pomerania ruled by the Slavonic Griffin dynasty, of Slavic origins
Edited sentence: After their extinction Szczecin, along with the rest of western Pomerania, was granted to Sweden at the Peace of Westphalia.Szczecin (pronounce:  , Latin Stetinum) is the 7th largest city in Poland and the second largest Polish seaport on the Baltic.Szczecin remained in Prussia (and thus, after 1871 in Germany) until 1945, when the Red Army captured the city and returned it to Poland.The city was rebuilt and made a major industrial centre, the capital of Szczecin Voivodship.The city's German inhabitants either escaped or were transferred to Germany, and the city was colonized with Poles, mainly from Poznań area.Till the 1630s Szczecin was the capital of the Duchy of Pomerania ruled by the Slavonic Griffin dynasty, of Slavic origins