improve texts

This commit is contained in:
DanielSvoboda 2024-09-27 20:22:50 -03:00
parent 34890517bf
commit 57bdc3c9c4
2 changed files with 137 additions and 30 deletions

View file

@ -186,6 +186,7 @@ SettingsDialog::SettingsDialog(std::span<const QString> 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<const QString> 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) {

View file

@ -963,6 +963,111 @@
<source>Close</source>
<translation>Close</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="72"/>
<source>Point your mouse at an options to display a description in here</source>
<translation>Point your mouse at an options to display a description in here</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="289"/>
<source>consoleLanguageGroupBox</source>
<translation>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.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="291"/>
<source>emulatorLanguageGroupBox</source>
<translation>Emulator Language:\nSets the language of the emulator's user interface.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="293"/>
<source>fullscreenCheckBox</source>
<translation>Enable Full Screen:\nAutomatically puts the game window into full-screen mode.\nThis can be toggled by pressing the F10 key.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="295"/>
<source>showSplashCheckBox</source>
<translation>Show Splash Screen:\nShows the game's splash screen (a special image) while the game is starting.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="297"/>
<source>ps4proCheckBox</source>
<translation>Is PS4 Pro:\nMakes the emulator act as a PS4 PRO, which may enable special features in games that support it.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="299"/>
<source>userName</source>
<translation>Username:\nSets the PS4's account username, which may be displayed by some games.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="301"/>
<source>logTypeGroupBox</source>
<translation>Log Type:\nSets whether to synchronize the output of the log window for performance. May have adverse effects on emulation.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="303"/>
<source>logFilter</source>
<translation>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.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="305"/>
<source>updaterGroupBox</source>
<translation>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.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="306"/>
<source>GUIgroupBox</source>
<translation>Play Title Music:\nIf a game supports it, enable playing special music when selecting the game in the GUI.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="312"/>
<source>graphicsAdapterGroupBox</source>
<translation>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.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="314"/>
<source>resolutionLayout</source>
<translation>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.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="318"/>
<source>heightDivider</source>
<translation>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!</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="320"/>
<source>dumpShadersCheckBox</source>
<translation>Enable Shaders Dumping:\nFor the sake of technical debugging, saves the games shaders to a folder as they render.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="322"/>
<source>nullGpuCheckBox</source>
<translation>Enable Null GPU:\nFor the sake of technical debugging, disables game rendering as if there were no graphics card.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="323"/>
<source>dumpPM4CheckBox</source>
<translation>Enable PM4 Dumping:\nFor the sake of technical debugging, saves raw GPU instruction data to a folder as the emulator processes it.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="329"/>
<source>debugDump</source>
<translation>Enable Debug Dumping:\nSaves the import and export symbols and file header information of the currently running PS4 program to a directory</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="331"/>
<source>vkValidationCheckBox</source>
<translation>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.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="333"/>
<source>vkSyncValidationCheckBox</source>
<translation>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.</translation>
</message>
<message>
<location filename="../settings_dialog.cpp" line="335"/>
<source>rdocCheckBox</source>
<translation>Enable RenderDoc Debugging:\nIf enabled, the emulator will provide compatibility with Renderdoc to allow capture and analysis of the currently rendered frame.</translation>
</message>
</context>
<context>
<name>GameListFrame</name>