Tswana, also known by its native name Setswana, and previously spelled Sechuana in English, is a Bantu language spoken in Southern Africa by about 8.2 million people. It belongs to the Bantu language family within the Sotho-Tswana branch of Zone S (S.30), and is closely related to the Northern Sotho and Southern Sotho languages, as well as the Kgalagadi language and the Lozi language. Setswana is an official language of Botswana and South Africa. It is a lingua franca in Botswana and parts of South Africa, particularly North West Province. Tswana speaking ethnic groups are found in more than two provinces of South Africa, primarily in the North West, where about four million people speak the language. An urbanised variety, which is part slang and not the formal Setswana, is known as Pretoria Sotho, and is the principal unique language of the city of Pretoria. The three South African provinces with the most speakers are Gauteng (circa 11%), Northern Cape, and North West (over 70%). Until 1994, South African Tswana people were notionally citizens of Bophuthatswana, one of the bantustans of the apartheid regime. The Setswana language in the Northwest Province has variations in which it is spoken according to the ethnic groups found in the Tswana culture (Bakgatla, Barolong, Bakwena, Batlhaping, Bahurutshe, Bafokeng, Batlokwa, Bataung, and Bapo, among others); the written language remains the same. A small number of speakers are also found in Zimbabwe (unknown number) and Namibia (about 10,000 people). The first European to describe the language was the German traveller Hinrich Lichtenstein, who lived among the Tswana people Batlhaping in 1806 although his work was not published until 1930. He mistakenly regarded Tswana as a dialect of the Xhosa, and the name that he used for the language "Beetjuana" may also have covered the Northern and Southern Sotho languages. The first major work on Tswana was carried out by the British missionary Robert Moffat, who had also lived among the Batlhaping, and published Bechuana Spelling Book and A Bechuana Catechism in 1826.