[master/f21/rhel7-branch] Add support for language selection in text mode. (#1000326)