From 57bdc3c9c4def1c561135450c6fb36fe052b707f Mon Sep 17 00:00:00 2001 From: DanielSvoboda Date: Fri, 27 Sep 2024 20:22:50 -0300 Subject: [PATCH] improve texts --- src/qt_gui/settings_dialog.cpp | 62 +++++++++---------- src/qt_gui/translations/en.ts | 105 +++++++++++++++++++++++++++++++++ 2 files changed, 137 insertions(+), 30 deletions(-) diff --git a/src/qt_gui/settings_dialog.cpp b/src/qt_gui/settings_dialog.cpp index ee3cf777e..58762ed46 100644 --- a/src/qt_gui/settings_dialog.cpp +++ b/src/qt_gui/settings_dialog.cpp @@ -186,6 +186,7 @@ SettingsDialog::SettingsDialog(std::span physical_devices, QWidge // Descriptions { + // General ui->consoleLanguageGroupBox->installEventFilter(this); ui->emulatorLanguageGroupBox->installEventFilter(this); ui->fullscreenCheckBox->installEventFilter(this); @@ -196,12 +197,17 @@ SettingsDialog::SettingsDialog(std::span physical_devices, QWidge ui->logFilter->installEventFilter(this); ui->updaterGroupBox->installEventFilter(this); ui->GUIgroupBox->installEventFilter(this); + + // Graphics ui->graphicsAdapterGroupBox->installEventFilter(this); - ui->layoutResolution->installEventFilter(this); + ui->widthGroupBox->installEventFilter(this); + ui->heightGroupBox->installEventFilter(this); ui->heightDivider->installEventFilter(this); ui->dumpShadersCheckBox->installEventFilter(this); ui->nullGpuCheckBox->installEventFilter(this); ui->dumpPM4CheckBox->installEventFilter(this); + + // Debug ui->debugDump->installEventFilter(this); ui->vkValidationCheckBox->installEventFilter(this); ui->vkSyncValidationCheckBox->installEventFilter(this); @@ -276,64 +282,60 @@ int SettingsDialog::exec() { SettingsDialog::~SettingsDialog() {} void SettingsDialog::updateNoteTextEdit(const QString& elementName) { - QString text; + QString text; // texts are only in .ts translation files for better formatting // General if (elementName == "consoleLanguageGroupBox") { - text = tr("Console Language:\nIt's the language of ps4"); + text = tr("consoleLanguageGroupBox"); } else if (elementName == "emulatorLanguageGroupBox") { - text = tr("Emulator Language:\nThe language of the emulator interface."); + text = tr("emulatorLanguageGroupBox"); } else if (elementName == "fullscreenCheckBox") { - text = tr("Enable Fullscreen:\nMakes the emulator take up the entire screen during " - "gameplay, offering a more immersive experience.\nThis can be changed by " - "pressing F10 during gameplay.."); + text = tr("fullscreenCheckBox"); } else if (elementName == "showSplashCheckBox") { - text = tr("Show splash screen:\nShows a game image (Splash) before starting emulation"); + text = tr("showSplashCheckBox"); } else if (elementName == "ps4proCheckBox") { - text = tr("Is PS4 Pro:\nSetting the console as the PRO model may influence some games."); + text = tr("ps4proCheckBox"); } else if (elementName == "userName") { - text = tr("userName:\nIt is your console username, it can be used during some games"); + text = tr("userName"); } else if (elementName == "logTypeGroupBox") { - text = tr("Log Type:\nsyn e async"); + text = tr("logTypeGroupBox"); } else if (elementName == "logFilter") { - text = tr("Log Filter:\n *:Critical"); + text = tr("logFilter"); } else if (elementName == "updaterGroupBox") { - text = tr( - "Update:\nStable: These versions are more reliable and tested\nUnstable: pre-releases " - "with updates almost daily (These may contain bugs and are less stable)"); + text = tr("updaterGroupBox"); } else if (elementName == "GUIgroupBox") { - text = tr("Play title music:\nPlays music when selecting a game from the list that has " - "this feature."); + text = tr("GUIgroupBox"); } // Graphics if (elementName == "graphicsAdapterGroupBox") { - text = tr("Graphics Device:\nChoose your gpu or -1 for automatic."); - } else if (elementName == "layoutResolution") { // It's not working? - text = tr("width/height:\nChange emulator resolution."); + text = tr("graphicsAdapterGroupBox"); + } else if (elementName == "widthGroupBox") { + text = tr("resolutionLayout"); + } else if (elementName == "heightGroupBox") { + text = tr("resolutionLayout"); } else if (elementName == "heightDivider") { - text = tr("Vblank Divider:\nEmulator speed, default is 1, if you use 2 it will be twice as " - "fast."); + text = tr("heightDivider"); } else if (elementName == "dumpShadersCheckBox") { - text = tr("Shaders Dumping:\nDump shaders, should improve speed."); + text = tr("dumpShadersCheckBox"); } else if (elementName == "nullGpuCheckBox") { - text = tr("nullGpu:\nStart the emulator without the video."); + text = tr("nullGpuCheckBox"); } else if (elementName == "dumpPM4CheckBox") { - text = tr("PM4 Dumping:\nPM4 Dumping"); + text = tr("dumpPM4CheckBox"); } // Debug if (elementName == "debugDump") { - text = tr("Debug Dumping:\n"); + text = tr("debugDump"); } else if (elementName == "vkValidationCheckBox") { - text = tr("Vulkan Validation Layers:\n"); + text = tr("vkValidationCheckBox"); } else if (elementName == "vkSyncValidationCheckBox") { - text = tr("Vulkan Synchronization Validation:\n"); + text = tr("vkSyncValidationCheckBox"); } else if (elementName == "rdocCheckBox") { - text = tr("RenderDoc Debugging:\n"); + text = tr("rdocCheckBox"); } - ui->descriptionText->setText(text); + ui->descriptionText->setText(text.replace("\\n", "\n")); } bool SettingsDialog::eventFilter(QObject* obj, QEvent* event) { diff --git a/src/qt_gui/translations/en.ts b/src/qt_gui/translations/en.ts index 949e09269..a5912526d 100644 --- a/src/qt_gui/translations/en.ts +++ b/src/qt_gui/translations/en.ts @@ -963,6 +963,111 @@ Close Close + + + Point your mouse at an options to display a description in here + Point your mouse at an options to display a description in here + + + + consoleLanguageGroupBox + Console Language:\nSets the language that the PS4 game uses.\nIt's recommended to set this to a language the game supports, which will vary by region. + + + + emulatorLanguageGroupBox + Emulator Language:\nSets the language of the emulator's user interface. + + + + fullscreenCheckBox + Enable Full Screen:\nAutomatically puts the game window into full-screen mode.\nThis can be toggled by pressing the F10 key. + + + + showSplashCheckBox + Show Splash Screen:\nShows the game's splash screen (a special image) while the game is starting. + + + + ps4proCheckBox + Is PS4 Pro:\nMakes the emulator act as a PS4 PRO, which may enable special features in games that support it. + + + + userName + Username:\nSets the PS4's account username, which may be displayed by some games. + + + + logTypeGroupBox + Log Type:\nSets whether to synchronize the output of the log window for performance. May have adverse effects on emulation. + + + + logFilter + Log Filter: Filters the log to only print specific information. Examples: "Core:Trace" "Lib.Pad:Debug Common.Filesystem:Error" "*:Critical" Levels: Trace, Debug, Info, Warning, Error, Critical - in this order, a specific level silences all levels preceding it in the list and logs every level after it. + + + + updaterGroupBox + Update:\nStable: Official versions released every month that may be very outdated, but are more reliable and tested.\nUnstable: Development versions that have all the latest features and fixes, but may contain bugs and are less stable. + + + + GUIgroupBox + Play Title Music:\nIf a game supports it, enable playing special music when selecting the game in the GUI. + + + + graphicsAdapterGroupBox + Graphics Device:\nOn multiple GPU systems, select the GPU the emulator will use from the drop down list,\nor select "Auto Select" to automatically determine it. + + + + resolutionLayout + Width/Height:\nSets the size of the emulator window at launch, which can be resized during gameplay.\nThis is different from the in-game resolution. + + + + heightDivider + Vblank Divider:\nThe frame rate at which the emulator refreshes at is multiplied by this number. Changing this may have adverse effects, such as increasing the game speed, or breaking critical game functionality that does not expect this to change! + + + + dumpShadersCheckBox + Enable Shaders Dumping:\nFor the sake of technical debugging, saves the games shaders to a folder as they render. + + + + nullGpuCheckBox + Enable Null GPU:\nFor the sake of technical debugging, disables game rendering as if there were no graphics card. + + + + dumpPM4CheckBox + Enable PM4 Dumping:\nFor the sake of technical debugging, saves raw GPU instruction data to a folder as the emulator processes it. + + + + debugDump + Enable Debug Dumping:\nSaves the import and export symbols and file header information of the currently running PS4 program to a directory + + + + vkValidationCheckBox + Enable Vulkan Validation Layers:\nEnables a system that validates the state of the Vulkan renderer and logs information about it's internal state. This will reduce performance and likely change the behavior of emulation. + + + + vkSyncValidationCheckBox + Enable Vulkan Synchronization Validation:\nEnables a system that validates the timing of Vulkan rendering tasks. This will reduce performance and likely change the behavior of emulation. + + + + rdocCheckBox + Enable RenderDoc Debugging:\nIf enabled, the emulator will provide compatibility with Renderdoc to allow capture and analysis of the currently rendered frame. + GameListFrame