mirror of https://github.com/mgba-emu/mgba.git
Qt: Surrounded remaining strings with tr()
This commit is contained in:
parent
1e7a62fbb3
commit
7e909803bc
|
@ -46,19 +46,19 @@ CheatsView::CheatsView(GameController* controller, QWidget* parent)
|
|||
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 @@ CheatsView::CheatsView(GameController* controller, QWidget* parent)
|
|||
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);
|
||||
|
|
|
@ -139,7 +139,7 @@ SettingsView::SettingsView(ConfigController* controller, InputController* inputC
|
|||
|
||||
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 @@ SettingsView::SettingsView(ConfigController* controller, InputController* inputC
|
|||
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 @@ SettingsView::SettingsView(ConfigController* controller, InputController* inputC
|
|||
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) {
|
||||
|
|
Loading…
Reference in New Issue