Following the liberation of Denmark and the end of World War II, the last British troops left in September 1945. Until 1948 the Faroes had the official status of a Danish amt (county). A referendum on full independence was held in 1946, which produced a majority in favour. This was, however, not recognised by the Danish Government or king due to only 2/3 of the population participating in the referendum, so the Danish king abolished the government of the Faroes. The subsequent elections Løgting were won by an anti-independence majority and instead a high degree of self-governance was attained in 1948 with the passing of the Act of Faroese Home Rule. Faroese was now an official language, though Danish is still taught as a second language in schools. The Faroese flag was also officially recognised by Danish authorities.