all repos — mgba @ 7e909803bc46f69aeef4c8dd23411545c956e44a

mGBA Game Boy Advance Emulator

Qt: Surrounded remaining strings with tr()
Kevin Doncam Demian López Brante kevin@kddlb.cl
Wed, 01 Feb 2017 02:02:32 -0300
commit

7e909803bc46f69aeef4c8dd23411545c956e44a

parent

1e7a62fbb33a0063c30a2bd597c243ad3e4e1c22

2 files changed, 8 insertions(+), 8 deletions(-)

jump to
M src/platform/qt/CheatsView.cppsrc/platform/qt/CheatsView.cpp

@@ -46,19 +46,19 @@ connect(m_ui.add, &QPushButton::clicked, [this]() {

enterCheat(GBA_CHEAT_AUTODETECT); }); - add = new QPushButton("Add GameShark"); + add = new QPushButton(tr("Add GameShark")); m_ui.gridLayout->addWidget(add, m_ui.gridLayout->rowCount(), 2, 1, 2); connect(add, &QPushButton::clicked, [this]() { enterCheat(GBA_CHEAT_GAMESHARK); }); - add = new QPushButton("Add Pro Action Replay"); + add = new QPushButton(tr("Add Pro Action Replay")); m_ui.gridLayout->addWidget(add, m_ui.gridLayout->rowCount(), 2, 1, 2); connect(add, &QPushButton::clicked, [this]() { enterCheat(GBA_CHEAT_PRO_ACTION_REPLAY); }); - add = new QPushButton("Add CodeBreaker"); + add = new QPushButton(tr("Add CodeBreaker")); m_ui.gridLayout->addWidget(add, m_ui.gridLayout->rowCount(), 2, 1, 2); connect(add, &QPushButton::clicked, [this]() { enterCheat(GBA_CHEAT_CODEBREAKER);

@@ -71,13 +71,13 @@ connect(m_ui.add, &QPushButton::clicked, [this]() {

enterCheat(GB_CHEAT_AUTODETECT); }); - add = new QPushButton("Add GameShark"); + add = new QPushButton(tr("Add GameShark")); m_ui.gridLayout->addWidget(add, m_ui.gridLayout->rowCount(), 2, 1, 2); connect(add, &QPushButton::clicked, [this]() { enterCheat(GB_CHEAT_GAMESHARK); }); - add = new QPushButton("Add GameGenie"); + add = new QPushButton(tr("Add GameGenie")); m_ui.gridLayout->addWidget(add, m_ui.gridLayout->rowCount(), 2, 1, 2); connect(add, &QPushButton::clicked, [this]() { enterCheat(GB_CHEAT_GAME_GENIE);
M src/platform/qt/SettingsView.cppsrc/platform/qt/SettingsView.cpp

@@ -139,7 +139,7 @@ });

GBAKeyEditor* editor = new GBAKeyEditor(inputController, InputController::KEYBOARD, QString(), this); m_ui.stackedWidget->addWidget(editor); - m_ui.tabs->addItem("Keyboard"); + m_ui.tabs->addItem(tr("Keyboard")); connect(m_ui.buttonBox, SIGNAL(accepted()), editor, SLOT(save())); GBAKeyEditor* buttonEditor = nullptr;

@@ -148,7 +148,7 @@ inputController->recalibrateAxes();

const char* profile = inputController->profileForType(SDL_BINDING_BUTTON); buttonEditor = new GBAKeyEditor(inputController, SDL_BINDING_BUTTON, profile); m_ui.stackedWidget->addWidget(buttonEditor); - m_ui.tabs->addItem("Controllers"); + m_ui.tabs->addItem(tr("Controllers")); connect(m_ui.buttonBox, SIGNAL(accepted()), buttonEditor, SLOT(save())); #endif

@@ -167,7 +167,7 @@ ShortcutView* shortcutView = new ShortcutView();

shortcutView->setController(shortcutController); shortcutView->setInputController(inputController); m_ui.stackedWidget->addWidget(shortcutView); - m_ui.tabs->addItem("Shortcuts"); + m_ui.tabs->addItem(tr("Shortcuts")); } void SettingsView::selectBios(QLineEdit* bios) {