Qt sprefs: save lang in registry

Close #9329