Skip to content

Commit

Permalink
Qt: Add missing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
wheremyfoodat committed Dec 3, 2024
1 parent 2627e1b commit cd01073
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/panda_qt/cheats_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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<MainWindow*>(parent);

QVBoxLayout* layout = new QVBoxLayout;
Expand Down
2 changes: 1 addition & 1 deletion src/panda_qt/patch_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/panda_qt/text_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd01073

Please sign in to comment.