summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/MainWindow.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2021-09-08 21:36:46 +0200
committerGitHub <noreply@github.com>2021-09-08 21:36:46 +0200
commit2a22367211322f5afd72ff19dfc05827afdf59d8 (patch)
treed72ab98c8aacffddc4865c05a3e5ce98f7b68592 /Source/Core/DolphinQt/MainWindow.cpp
parent059794b551467f7fbc315469224d93e584575e03 (diff)
parent8c67f13256a1b6f709f9e2cd01776e9a26af0666 (diff)
Merge pull request #10056 from lioncash/qtloc
DolphinQt: Minor localization changes
Diffstat (limited to 'Source/Core/DolphinQt/MainWindow.cpp')
-rw-r--r--Source/Core/DolphinQt/MainWindow.cpp27
1 files changed, 13 insertions, 14 deletions
diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp
index cd566b7624..8a687cef47 100644
--- a/Source/Core/DolphinQt/MainWindow.cpp
+++ b/Source/Core/DolphinQt/MainWindow.cpp
@@ -255,8 +255,10 @@ MainWindow::MainWindow(std::unique_ptr<BootParameters> boot_parameters,
Settings::Instance().RefreshWidgetVisibility();
if (!ResourcePack::Init())
+ {
ModalMessageBox::critical(this, tr("Error"),
- tr("Error occured while loading some texture packs"));
+ tr("Error occurred while loading some texture packs"));
+ }
for (auto& pack : ResourcePack::GetPacks())
{
@@ -1377,16 +1379,15 @@ bool MainWindow::NetPlayJoin()
{
if (Core::IsRunning())
{
- ModalMessageBox::critical(
- nullptr, QObject::tr("Error"),
- QObject::tr("Can't start a NetPlay Session while a game is still running!"));
+ ModalMessageBox::critical(nullptr, tr("Error"),
+ tr("Can't start a NetPlay Session while a game is still running!"));
return false;
}
if (m_netplay_dialog->isVisible())
{
- ModalMessageBox::critical(nullptr, QObject::tr("Error"),
- QObject::tr("A NetPlay Session is already in progress!"));
+ ModalMessageBox::critical(nullptr, tr("Error"),
+ tr("A NetPlay Session is already in progress!"));
return false;
}
@@ -1445,16 +1446,15 @@ bool MainWindow::NetPlayHost(const UICommon::GameFile& game)
{
if (Core::IsRunning())
{
- ModalMessageBox::critical(
- nullptr, QObject::tr("Error"),
- QObject::tr("Can't start a NetPlay Session while a game is still running!"));
+ ModalMessageBox::critical(nullptr, tr("Error"),
+ tr("Can't start a NetPlay Session while a game is still running!"));
return false;
}
if (m_netplay_dialog->isVisible())
{
- ModalMessageBox::critical(nullptr, QObject::tr("Error"),
- QObject::tr("A NetPlay Session is already in progress!"));
+ ModalMessageBox::critical(nullptr, tr("Error"),
+ tr("A NetPlay Session is already in progress!"));
return false;
}
@@ -1478,9 +1478,8 @@ bool MainWindow::NetPlayHost(const UICommon::GameFile& game)
if (!Settings::Instance().GetNetPlayServer()->is_connected)
{
ModalMessageBox::critical(
- nullptr, QObject::tr("Failed to open server"),
- QObject::tr(
- "Failed to listen on port %1. Is another instance of the NetPlay server running?")
+ nullptr, tr("Failed to open server"),
+ tr("Failed to listen on port %1. Is another instance of the NetPlay server running?")
.arg(host_port));
NetPlayQuit();
return false;