Skip to content

Commit

Permalink
Change Add-Ons to Mods, remove Qt client text
Browse files Browse the repository at this point in the history
  • Loading branch information
jwrober committed Jan 16, 2024
1 parent 5360066 commit 1c53d45
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions client/page_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ page_main::page_main(QWidget *parent, fc_client *gui) : QWidget(parent)
ui.bload->setText(_("Load saved game"));
ui.bconnect->setText(_("Connect to network game"));
ui.bquit->setText(_("Quit"));
ui.baddon->setText(_("Add-Ons"));
ui.bmods->setText(_("Mods"));

connect(ui.btut, &QAbstractButton::clicked, gui,
&fc_client::start_tutorial);
connect(ui.bstart, &QAbstractButton::clicked, gui,
&fc_client::start_new_game);
connect(ui.baddon, &QAbstractButton::clicked, gui,
connect(ui.bmods, &QAbstractButton::clicked, gui,
&fc_client::load_modpack);
connect(ui.bscenario, &QPushButton::clicked,
[gui]() { gui->switch_page(PAGE_SCENARIO); });
Expand All @@ -46,10 +46,8 @@ page_main::page_main(QWidget *parent, fc_client *gui) : QWidget(parent)
connect(ui.bload, &QPushButton::clicked,
[gui]() { gui->switch_page(PAGE_LOAD); });

// TRANS: "version 2.6.0, Qt client"
msgbuf = QString(_("%1%2, Qt client"))
.arg(word_version())
.arg(freeciv21_version());
// TRANS: "version 2.6.0"
msgbuf = QString(_("%1%2")).arg(word_version()).arg(freeciv21_version());
ui.lversion->setText(QString(msgbuf) + beta);
setLayout(ui.gridLayout);
}
Expand Down
4 changes: 2 additions & 2 deletions client/page_main.ui
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@
</widget>
</item>
<item row="8" column="0">
<widget class="QPushButton" name="baddon">
<widget class="QPushButton" name="bmods">
<property name="text">
<string>Add Ons</string>
<string>Mods</string>
</property>
<property name="main_pagebt" stdset="0">
<bool>true</bool>
Expand Down

0 comments on commit 1c53d45

Please sign in to comment.