Issue #2020301 by plach, Berdir: Make the $type parameter of LanguageManager::getLanguage() optional.