Browse Source
Merge pull request #8204 from Docteh/translate_gameslist
ui: Fix Game Compatibility list translations
pull/15/merge
Mai M
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
6 additions and
3 deletions
-
src/yuzu/compatdb.ui
-
src/yuzu/configuration/configure_dialog.cpp
-
src/yuzu/game_list_p.h
|
|
|
@ -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> |
|
|
|
|
|
|
|
@ -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(); |
|
|
|
|
|
|
|
@ -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); |
|
|
|
} |
|
|
|
|
|
|
|
|