Replace use of deprecated Language::getLanguageNames()

Change-Id: If64467d56df6e88550fd11da6aacb73a245a693d
Merge "Replace use of deprecated Language::getLanguageNames()"