Before World War I, the city had a population that was 42% German, 41% Hungarian and 15% Slovak (1910 census, the population was influenced by Magyarization). The first post war census in 1919 declared the city's ethnic composition at 36% German, 33% Slovak and 29% Hungarian but this may have reflected changing self-identification, rather than an exchange of peoples. Many people were bi- or trilingual and multicultural. After World War I and the formation of Czechoslovakia on October 28, 1918, the city was incorporated into the new state despite its representatives' reluctance. The dominant Hungarian and German population tried to prevent annexation of the city to Czechoslovakia and declared it a free city. However, the Czechoslovak Legions occupied the city on January 1, 1919, and made it part of Czechoslovakia, against the wish of the local population, on reasons of its economic importance for the new state. The city became the seat of Slovakia's political organs and organizations and became Slovakia's capital on 4 February. On February 12, 1919 the German and Hungarian population started a protest against the Czechoslovak occupation. According to Marcell Jankovics, lawyer, publicist and member of the Hungarian Parliament, the Czechoslovak Legions opened fire on the unarmed demonstrators. Slovak sources don't deny the shooting, but add that the Legionaries were defending themselves from violent and aggressive behavior of the demonstrators. A contemporary Slovak language newspaper reported that "a mob spat on our soldiers, tore down badges from their hats, physically attacked them and shot on them from windows."