Use the correct option name for reporting the user's UI language

This commit is contained in:
Thomas Goyne 2012-10-07 19:54:34 -07:00
parent 695de800c3
commit db30fdedbd

View file

@ -333,8 +333,7 @@ static wxString GetSystemLanguage()
static wxString GetAegisubLanguage() static wxString GetAegisubLanguage()
{ {
const wxLanguageInfo *info = wxLocale::GetLanguageInfo(OPT_GET("App/Locale")->GetInt()); return lagi_wxString(OPT_GET("App/Language")->GetString());
return info ? info->CanonicalName : "unknown";
} }
template<class OutIter> template<class OutIter>