How did Latvia get its name?

The name comes from Latgalians - one of the Latvian pre-christian tribes that are now part of modern Latvian nation living in Latgale region, albeit with quite strong accent (some rank it as a regional language). Other pre-christian Latvian tribes are Couronians, Semigallians and Selonians