mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Config: Port remaining Interface settings to new config system.
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
#include "Common/MsgHandler.h"
|
||||
#include "Common/StringUtil.h"
|
||||
|
||||
#include "Core/ConfigManager.h"
|
||||
#include "Core/Config/MainSettings.h"
|
||||
|
||||
#include "DolphinQt/QtUtils/ModalMessageBox.h"
|
||||
|
||||
@ -310,7 +310,7 @@ void Translation::Initialize()
|
||||
[](const char* text) { return QObject::tr(text).toStdString(); });
|
||||
|
||||
// Hook up Qt translations
|
||||
auto& configured_language = SConfig::GetInstance().m_InterfaceLanguage;
|
||||
std::string configured_language = Config::Get(Config::MAIN_INTERFACE_LANGUAGE);
|
||||
if (!configured_language.empty())
|
||||
{
|
||||
if (TryInstallTranslator(QString::fromStdString(configured_language)))
|
||||
@ -319,7 +319,7 @@ void Translation::Initialize()
|
||||
ModalMessageBox::warning(
|
||||
nullptr, QObject::tr("Error"),
|
||||
QObject::tr("Error loading selected language. Falling back to system default."));
|
||||
configured_language.clear();
|
||||
Config::SetBase(Config::MAIN_INTERFACE_LANGUAGE, "");
|
||||
}
|
||||
|
||||
for (const auto& lang : QLocale::system().uiLanguages())
|
||||
|
Reference in New Issue
Block a user