Qt: Surrounded remaining strings with tr()
Kevin Doncam Demian López Brante kevin@kddlb.cl
Wed, 01 Feb 2017 02:02:32 -0300
2 files changed,
8 insertions(+),
8 deletions(-)
M
src/platform/qt/CheatsView.cpp
→
src/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.cpp
→
src/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) {