From cd0107390310d714e7228fb879f88439cb2ef189 Mon Sep 17 00:00:00 2001 From: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com> Date: Tue, 3 Dec 2024 14:16:35 +0200 Subject: [PATCH] Qt: Add missing translations --- src/panda_qt/cheats_window.cpp | 4 ++-- src/panda_qt/patch_window.cpp | 2 +- src/panda_qt/text_editor.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/panda_qt/cheats_window.cpp b/src/panda_qt/cheats_window.cpp index 2d7e6b4c..2485c677 100644 --- a/src/panda_qt/cheats_window.cpp +++ b/src/panda_qt/cheats_window.cpp @@ -69,7 +69,7 @@ void CheatEntryWidget::editClicked() { } CheatEditDialog::CheatEditDialog(Emulator* emu, CheatEntryWidget& cheatEntry) : QDialog(), emu(emu), cheatEntry(cheatEntry) { - setWindowTitle("Edit Cheat"); + setWindowTitle(tr("Edit Cheat")); setAttribute(Qt::WA_DeleteOnClose); setModal(true); @@ -161,7 +161,7 @@ void CheatEditDialog::rejected() { CheatsWindow::CheatsWindow(Emulator* emu, const std::filesystem::path& cheatPath, QWidget* parent) : QWidget(parent, Qt::Window), emu(emu), cheatPath(cheatPath) { - setWindowTitle("Cheats"); + setWindowTitle(tr("Cheats")); mainWindow = static_cast(parent); QVBoxLayout* layout = new QVBoxLayout; diff --git a/src/panda_qt/patch_window.cpp b/src/panda_qt/patch_window.cpp index 6ba73e84..6096d89a 100644 --- a/src/panda_qt/patch_window.cpp +++ b/src/panda_qt/patch_window.cpp @@ -12,7 +12,7 @@ #include "io_file.hpp" PatchWindow::PatchWindow(QWidget* parent) : QWidget(parent, Qt::Window) { - setWindowTitle("ROM patcher"); + setWindowTitle(tr("ROM patcher")); QVBoxLayout* layout = new QVBoxLayout; layout->setContentsMargins(6, 6, 6, 6); diff --git a/src/panda_qt/text_editor.cpp b/src/panda_qt/text_editor.cpp index 24febd0d..7ac1d5f2 100644 --- a/src/panda_qt/text_editor.cpp +++ b/src/panda_qt/text_editor.cpp @@ -9,7 +9,7 @@ using namespace Zep; TextEditorWindow::TextEditorWindow(QWidget* parent, const std::string& filename, const std::string& initialText) : QDialog(parent), zepWidget(this, qApp->applicationDirPath().toStdString(), fontSize) { - setWindowTitle("Lua Editor"); + setWindowTitle(tr("Lua Editor")); resize(600, 600); // Register our extensions