From 44e7670f855b6d13afe625f54830982189f99f5f Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 25 Jan 2015 12:14:41 -0800 Subject: Better infrastructure for translating beta names Signed-off-by: Dirk Hohndel --- qt-ui/about.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'qt-ui/about.cpp') 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("" "Subsurface %1

" -- cgit v1.2.3-70-g09d2