Merge pull request #647 from DanielSvoboda/main

fix tr cheats_patches.cpp
This commit is contained in:
georgemoralis 2024-08-29 19:44:04 +03:00 committed by GitHub
commit 07c8c28000
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -130,7 +130,7 @@ void CheatsPatches::setupUI() {
// Call the method to fill the list of cheat files // Call the method to fill the list of cheat files
populateFileListCheats(); populateFileListCheats();
QLabel* repositoryLabel = new QLabel("Repository:"); QLabel* repositoryLabel = new QLabel(tr("Repository:"));
repositoryLabel->setAlignment(Qt::AlignLeft); repositoryLabel->setAlignment(Qt::AlignLeft);
repositoryLabel->setAlignment(Qt::AlignVCenter); repositoryLabel->setAlignment(Qt::AlignVCenter);
@ -1123,7 +1123,7 @@ void CheatsPatches::addPatchesToLayout(const QString& filePath) {
void CheatsPatches::updateNoteTextEdit(const QString& patchName) { void CheatsPatches::updateNoteTextEdit(const QString& patchName) {
if (m_patchInfos.contains(patchName)) { if (m_patchInfos.contains(patchName)) {
const PatchInfo& patchInfo = m_patchInfos[patchName]; const PatchInfo& patchInfo = m_patchInfos[patchName];
QString text = QString(tr("Name:") + " %1\n" + tr("Author:") + " %2\n\n%3") QString text = QString(tr("Name:") + " %1\n" + tr("Author: ") + "%2\n\n%3")
.arg(patchInfo.name) .arg(patchInfo.name)
.arg(patchInfo.author) .arg(patchInfo.author)
.arg(patchInfo.note); .arg(patchInfo.note);
@ -1261,4 +1261,4 @@ void CheatsPatches::onPatchCheckBoxHovered(QCheckBox* checkBox, bool hovered) {
} else { } else {
instructionsTextEdit->setText(defaultTextEdit); instructionsTextEdit->setText(defaultTextEdit);
} }
} }