mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 03:13:24 +00:00
Better infrastructure for translating beta names
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b97233c562
commit
44e7670f85
1 changed files with 4 additions and 2 deletions
|
@ -10,8 +10,10 @@ SubsurfaceAbout::SubsurfaceAbout(QWidget *parent, Qt::WindowFlags f) : QDialog(p
|
|||
|
||||
setWindowModality(Qt::ApplicationModal);
|
||||
QString versionString(GIT_VERSION_STRING);
|
||||
if (versionString == "4.3.950")
|
||||
versionString = "4.4 Beta 1";
|
||||
QStringList readableVersions = QStringList() << "4.3.950" << "4.4 Beta 1" <<
|
||||
"4.3.960" << "4.4 Beta 2";
|
||||
if (readableVersions.contains(versionString))
|
||||
versionString = readableVersions[readableVersions.indexOf(versionString) + 1];
|
||||
|
||||
ui.aboutLabel->setText(tr("<span style='font-size: 18pt; font-weight: bold;'>"
|
||||
"Subsurface %1 </span><br><br>"
|
||||
|
|
Loading…
Add table
Reference in a new issue