diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-01-25 12:14:41 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-01-25 12:19:05 -0800 |
commit | 44e7670f855b6d13afe625f54830982189f99f5f (patch) | |
tree | 252090ac7a378bc07550ba996d505e79404b1fb8 /qt-ui | |
parent | b97233c562008cc1920292a8b8603b2750d53d1a (diff) | |
download | subsurface-44e7670f855b6d13afe625f54830982189f99f5f.tar.gz |
Better infrastructure for translating beta names
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/about.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/qt-ui/about.cpp b/qt-ui/about.cpp index ff8776cf3..1f0f25c75 100644 --- a/qt-ui/about.cpp +++ b/qt-ui/about.cpp @@ -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>" |