diff options
| author | 2022-04-17 05:45:30 -0400 | |
|---|---|---|
| committer | 2022-04-17 05:45:30 -0400 | |
| commit | 637f7e69286d4df083cc5682f74e19dcedc0d8ee (patch) | |
| tree | 3b73a9568030a0ae439fbd1e9c37990470d664cf | |
| parent | Merge pull request #6558 from german77/ringcon2 (diff) | |
| parent | ui: Fix Game Compatibility list translations (diff) | |
| download | yuzu-637f7e69286d4df083cc5682f74e19dcedc0d8ee.tar.gz yuzu-637f7e69286d4df083cc5682f74e19dcedc0d8ee.tar.xz yuzu-637f7e69286d4df083cc5682f74e19dcedc0d8ee.zip | |
Merge pull request #8204 from Docteh/translate_gameslist
ui: Fix Game Compatibility list translations
Diffstat (limited to '')
| -rw-r--r-- | src/yuzu/compatdb.ui | 2 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_dialog.cpp | 3 | ||||
| -rw-r--r-- | src/yuzu/game_list_p.h | 4 |
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 @@ | |||
| 86 | <item row="4" column="0"> | 86 | <item row="4" column="0"> |
| 87 | <widget class="QRadioButton" name="radioButton_Great"> | 87 | <widget class="QRadioButton" name="radioButton_Great"> |
| 88 | <property name="text"> | 88 | <property name="text"> |
| 89 | <string>Great </string> | 89 | <string>Great</string> |
| 90 | </property> | 90 | </property> |
| 91 | </widget> | 91 | </widget> |
| 92 | </item> | 92 | </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 @@ | |||
| 25 | #include "yuzu/configuration/configure_ui.h" | 25 | #include "yuzu/configuration/configure_ui.h" |
| 26 | #include "yuzu/configuration/configure_web.h" | 26 | #include "yuzu/configuration/configure_web.h" |
| 27 | #include "yuzu/hotkeys.h" | 27 | #include "yuzu/hotkeys.h" |
| 28 | #include "yuzu/uisettings.h" | ||
| 28 | 29 | ||
| 29 | ConfigureDialog::ConfigureDialog(QWidget* parent, HotkeyRegistry& registry, | 30 | ConfigureDialog::ConfigureDialog(QWidget* parent, HotkeyRegistry& registry, |
| 30 | InputCommon::InputSubsystem* input_subsystem, | 31 | InputCommon::InputSubsystem* input_subsystem, |
| @@ -169,6 +170,8 @@ void ConfigureDialog::PopulateSelectionList() { | |||
| 169 | 170 | ||
| 170 | void ConfigureDialog::OnLanguageChanged(const QString& locale) { | 171 | void ConfigureDialog::OnLanguageChanged(const QString& locale) { |
| 171 | emit LanguageChanged(locale); | 172 | emit LanguageChanged(locale); |
| 173 | // Reloading the game list is needed to force retranslation. | ||
| 174 | UISettings::values.is_game_list_reload_pending = true; | ||
| 172 | // first apply the configuration, and then restore the display | 175 | // first apply the configuration, and then restore the display |
| 173 | ApplyConfiguration(); | 176 | ApplyConfiguration(); |
| 174 | RetranslateUI(); | 177 | 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: | |||
| 164 | } | 164 | } |
| 165 | const CompatStatus& status = iterator->second; | 165 | const CompatStatus& status = iterator->second; |
| 166 | setData(compatibility, CompatNumberRole); | 166 | setData(compatibility, CompatNumberRole); |
| 167 | setText(QObject::tr(status.text)); | 167 | setText(tr(status.text)); |
| 168 | setToolTip(QObject::tr(status.tooltip)); | 168 | setToolTip(tr(status.tooltip)); |
| 169 | setData(CreateCirclePixmapFromColor(status.color), Qt::DecorationRole); | 169 | setData(CreateCirclePixmapFromColor(status.color), Qt::DecorationRole); |
| 170 | } | 170 | } |
| 171 | 171 | ||