Thursday, December 24, 2020

Remove unknown locale qaa-Latn from windows

Got a fresh window 10 installation where I configure US keyboard as default and added Greek as well (the language with π and Σ symbols). I noticed that when I was switching languages a 3rd locale (qaa-Latn) appeared in the list which I couldn't remove from the windows list. In my case the keyboard was emitting Greek characters but the windows spelling couldn't recognize the words. In order to remove the extra locale I had to use the following powershell.

# First add it to the list (it is not there initially)
$LanguageList = Get-WinUserLanguageList
$LanguageList.Add("qaa-latn")
Set-WinUserLanguageList $LanguageList -Force
# Refresh the list (may not be needed)
$LanguageList = Get-WinUserLanguageList
# Get reference to the locale we want to remove
$Language = $LanguageList | where LanguageTag -eq "qaa-Latn"
$LanguageList.Remove($Language)
Set-WinUserLanguageList $LanguageList -Force
# Thanks to https://superuser.com/a/1540185

No comments: