Skip to content
Extraits de code Groupes Projets
Valider 39bf2ab5 rédigé par Thomas Goyne's avatar Thomas Goyne
Parcourir les fichiers

Don't list languages in the language dialog which won't actually work. Updates #1508.

parent 9a6eb70f
Branches
Étiquettes
Aucune requête de fusion associée trouvée
......@@ -37,6 +37,8 @@
#include "config.h"
#ifndef AGI_PRE
#include <algorithm>
#include <functional>
#include <locale.h>
#include <wx/dir.h>
......@@ -120,6 +122,9 @@ int AegisubLocale::PickLanguage() {
langs.Insert(user, 0);
}
// Remove languages which won't work due to the locale not being installed
langs.erase(remove_if(langs.begin(), langs.end(), not1(std::ptr_fun(&wxLocale::IsAvailable))), langs.end());
// Nothing to pick
if (langs.empty()) return -1;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter