summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKyle K <190571+Docteh@users.noreply.github.com>2022-04-13 22:29:59 +0200
committerKyle K <190571+Docteh@users.noreply.github.com>2022-04-17 01:30:45 +0200
commit42b8148acaf9a47c2edafe89594a6dc54b22f59f (patch)
treed5da7f7258c461182a9d88e6be1b347d1e5f9874 /src
parentMerge pull request #8165 from bunnei/ensure-session-port-cleanup (diff)
downloadyuzu-42b8148acaf9a47c2edafe89594a6dc54b22f59f.tar
yuzu-42b8148acaf9a47c2edafe89594a6dc54b22f59f.tar.gz
yuzu-42b8148acaf9a47c2edafe89594a6dc54b22f59f.tar.bz2
yuzu-42b8148acaf9a47c2edafe89594a6dc54b22f59f.tar.lz
yuzu-42b8148acaf9a47c2edafe89594a6dc54b22f59f.tar.xz
yuzu-42b8148acaf9a47c2edafe89594a6dc54b22f59f.tar.zst
yuzu-42b8148acaf9a47c2edafe89594a6dc54b22f59f.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/compatdb.ui2
-rw-r--r--src/yuzu/configuration/configure_dialog.cpp3
-rw-r--r--src/yuzu/game_list_p.h4
3 files changed, 6 insertions, 3 deletions
diff --git a/src/yuzu/compatdb.ui b/src/yuzu/compatdb.ui
index fed402176..3ca55eda6 100644
--- a/src/yuzu/compatdb.ui
+++ b/src/yuzu/compatdb.ui
@@ -86,7 +86,7 @@
<item row="4" column="0">
<widget class="QRadioButton" name="radioButton_Great">
<property name="text">
- <string>Great </string>
+ <string>Great</string>
</property>
</widget>
</item>
diff --git a/src/yuzu/configuration/configure_dialog.cpp b/src/yuzu/configuration/configure_dialog.cpp
index 69458a3ff..b415a1cc4 100644
--- a/src/yuzu/configuration/configure_dialog.cpp
+++ b/src/yuzu/configuration/configure_dialog.cpp
@@ -25,6 +25,7 @@
#include "yuzu/configuration/configure_ui.h"
#include "yuzu/configuration/configure_web.h"
#include "yuzu/hotkeys.h"
+#include "yuzu/uisettings.h"
ConfigureDialog::ConfigureDialog(QWidget* parent, HotkeyRegistry& registry,
InputCommon::InputSubsystem* input_subsystem,
@@ -169,6 +170,8 @@ void ConfigureDialog::PopulateSelectionList() {
void ConfigureDialog::OnLanguageChanged(const QString& locale) {
emit LanguageChanged(locale);
+ // Reloading the game list is needed to force retranslation.
+ UISettings::values.is_game_list_reload_pending = true;
// first apply the configuration, and then restore the display
ApplyConfiguration();
RetranslateUI();
diff --git a/src/yuzu/game_list_p.h b/src/yuzu/game_list_p.h
index 211a84dde..f2a986ed8 100644
--- a/src/yuzu/game_list_p.h
+++ b/src/yuzu/game_list_p.h
@@ -164,8 +164,8 @@ public:
}
const CompatStatus& status = iterator->second;
setData(compatibility, CompatNumberRole);
- setText(QObject::tr(status.text));
- setToolTip(QObject::tr(status.tooltip));
+ setText(tr(status.text));
+ setToolTip(tr(status.tooltip));
setData(CreateCirclePixmapFromColor(status.color), Qt::DecorationRole);
}