mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
Config: Port remaining Interface settings to new config system.
This commit is contained in:
parent
df0870f79d
commit
d6331c1e71
30 changed files with 135 additions and 162 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue