Fix widget warning in language selection

Bug #3157