Crowdin translation adjustments (#2426)

* Fix TR

* +
This commit is contained in:
DanielSvoboda 2025-02-14 02:23:24 -03:00 committed by GitHub
parent d1e88c40d8
commit 0f8bd509b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
32 changed files with 1447 additions and 1438 deletions

View file

@ -45,8 +45,13 @@ CheatsPatches::CheatsPatches(const QString& gameName, const QString& gameSerial,
CheatsPatches::~CheatsPatches() {}
void CheatsPatches::setupUI() {
defaultTextEdit = tr("defaultTextEdit_MSG");
defaultTextEdit.replace("\\n", "\n");
// clang-format off
defaultTextEdit_MSG = tr("Cheats/Patches are experimental.\\nUse with caution.\\n\\nDownload cheats individually by selecting the repository and clicking the download button.\\nIn the Patches tab, you can download all patches at once, choose which ones you want to use, and save your selection.\\n\\nSince we do not develop the Cheats/Patches,\\nplease report issues to the cheat author.\\n\\nCreated a new cheat? Visit:\\n").replace("\\n", "\n")+"https://github.com/shadps4-emu/ps4_cheats";
CheatsNotFound_MSG = tr("No Cheats found for this game in this version of the selected repository,try another repository or a different version of the game.");
CheatsDownloadedSuccessfully_MSG = tr("You have successfully downloaded the cheats for this version of the game from the selected repository. You can try downloading from another repository, if it is available it will also be possible to use it by selecting the file from the list.");
DownloadComplete_MSG = tr("Patches Downloaded Successfully! All Patches available for all games have been downloaded, there is no need to download them individually for each game as happens in Cheats. If the patch does not appear, it may be that it does not exist for the specific serial and version of the game.");
// clang-format on
QString CHEATS_DIR_QString;
Common::FS::PathToQString(CHEATS_DIR_QString,
@ -92,7 +97,7 @@ void CheatsPatches::setupUI() {
// Add a text area for instructions and 'Patch' descriptions
instructionsTextEdit = new QTextEdit();
instructionsTextEdit->setText(defaultTextEdit);
instructionsTextEdit->setText(defaultTextEdit_MSG);
instructionsTextEdit->setReadOnly(true);
instructionsTextEdit->setFixedHeight(290);
gameInfoLayout->addWidget(instructionsTextEdit);
@ -579,7 +584,7 @@ void CheatsPatches::downloadCheats(const QString& source, const QString& gameSer
}
}
if (!foundFiles && showMessageBox) {
QMessageBox::warning(this, tr("Cheats Not Found"), tr("CheatsNotFound_MSG"));
QMessageBox::warning(this, tr("Cheats Not Found"), CheatsNotFound_MSG);
}
} else if (source == "GoldHEN" || source == "shadPS4") {
QString textContent(jsonData);
@ -655,18 +660,18 @@ void CheatsPatches::downloadCheats(const QString& source, const QString& gameSer
}
}
if (!foundFiles && showMessageBox) {
QMessageBox::warning(this, tr("Cheats Not Found"), tr("CheatsNotFound_MSG"));
QMessageBox::warning(this, tr("Cheats Not Found"), CheatsNotFound_MSG);
}
}
if (foundFiles && showMessageBox) {
QMessageBox::information(this, tr("Cheats Downloaded Successfully"),
tr("CheatsDownloadedSuccessfully_MSG"));
CheatsDownloadedSuccessfully_MSG);
populateFileListCheats();
}
} else {
if (showMessageBox) {
QMessageBox::warning(this, tr("Cheats Not Found"), tr("CheatsNotFound_MSG"));
QMessageBox::warning(this, tr("Cheats Not Found"), CheatsNotFound_MSG);
}
}
reply->deleteLater();
@ -816,7 +821,7 @@ void CheatsPatches::downloadPatches(const QString repository, const bool showMes
}
if (showMessageBox) {
QMessageBox::information(this, tr("Download Complete"),
QString(tr("DownloadComplete_MSG")));
QString(DownloadComplete_MSG));
}
// Create the files.json file with the identification of which file to open
createFilesJson(repository);
@ -1422,6 +1427,6 @@ void CheatsPatches::onPatchCheckBoxHovered(QCheckBox* checkBox, bool hovered) {
updateNoteTextEdit(patchName.toString());
}
} else {
instructionsTextEdit->setText(defaultTextEdit);
instructionsTextEdit->setText(defaultTextEdit_MSG);
}
}