summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-02-27 14:27:01 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-02-27 15:46:03 +0100
commit04ae0a46fdc50a2ec96d5f6e2284c4ddd6c92a65 (patch)
tree8c2a033a52ead0f0691c14427db76ae0dca3ba90
parentb05464749c618b83167e23f8b7046c1d29cbd9a3 (diff)
opentrack, installer: add back git version parsing
-rw-r--r--installer/opentrack-installer.iss4
-rw-r--r--opentrack/lang/nl_NL.ts27
-rw-r--r--opentrack/lang/ru_RU.ts27
-rw-r--r--opentrack/lang/stub.ts27
-rw-r--r--opentrack/lang/zh_CN.ts27
-rw-r--r--opentrack/main-window.cpp3
6 files changed, 111 insertions, 4 deletions
diff --git a/installer/opentrack-installer.iss b/installer/opentrack-installer.iss
index 469192f7..01478557 100644
--- a/installer/opentrack-installer.iss
+++ b/installer/opentrack-installer.iss
@@ -3,9 +3,9 @@
#include "../build/opentrack-version.hxx"
#define MyAppName "TrackHat opentrack v3"
-#define MyAppVersion "TrackHat opentrack v3.0b"
+#define MyAppVersion OPENTRACK_VERSION
#define MyAppPublisher "TrackHat"
-#define MyAppURL "http://github.com/opentrack/opentrack"
+#define MyAppURL "https://www.trackhat.org/trackhat-opentrack"
#define MyAppExeName "opentrack.exe"
[Setup]
diff --git a/opentrack/lang/nl_NL.ts b/opentrack/lang/nl_NL.ts
index b0e0072a..aad3532b 100644
--- a/opentrack/lang/nl_NL.ts
+++ b/opentrack/lang/nl_NL.ts
@@ -13,6 +13,33 @@
</message>
</context>
<context>
+ <name>UpdateDialog</name>
+ <message>
+ <source>Dialog</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Software update released</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Current version:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>TextLabel</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Released version:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Don&apos;t remind me again about this version</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
<name>main_window</name>
<message>
<source>Profile</source>
diff --git a/opentrack/lang/ru_RU.ts b/opentrack/lang/ru_RU.ts
index 6f202f4f..3a0cad0d 100644
--- a/opentrack/lang/ru_RU.ts
+++ b/opentrack/lang/ru_RU.ts
@@ -13,6 +13,33 @@
</message>
</context>
<context>
+ <name>UpdateDialog</name>
+ <message>
+ <source>Dialog</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Software update released</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Current version:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>TextLabel</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Released version:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Don&apos;t remind me again about this version</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
<name>main_window</name>
<message>
<source>Create new empty config</source>
diff --git a/opentrack/lang/stub.ts b/opentrack/lang/stub.ts
index cef43cb3..de72e075 100644
--- a/opentrack/lang/stub.ts
+++ b/opentrack/lang/stub.ts
@@ -13,6 +13,33 @@
</message>
</context>
<context>
+ <name>UpdateDialog</name>
+ <message>
+ <source>Dialog</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Software update released</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Current version:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>TextLabel</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Released version:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Don&apos;t remind me again about this version</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
<name>main_window</name>
<message>
<source>Profile</source>
diff --git a/opentrack/lang/zh_CN.ts b/opentrack/lang/zh_CN.ts
index cfeb5f3e..bdd69ff8 100644
--- a/opentrack/lang/zh_CN.ts
+++ b/opentrack/lang/zh_CN.ts
@@ -13,6 +13,33 @@
</message>
</context>
<context>
+ <name>UpdateDialog</name>
+ <message>
+ <source>Dialog</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Software update released</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Current version:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>TextLabel</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Released version:</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <source>Don&apos;t remind me again about this version</source>
+ <translation type="unfinished"></translation>
+ </message>
+</context>
+<context>
<name>main_window</name>
<message>
<source>Profile</source>
diff --git a/opentrack/main-window.cpp b/opentrack/main-window.cpp
index 896247c4..3e60b7a3 100644
--- a/opentrack/main-window.cpp
+++ b/opentrack/main-window.cpp
@@ -588,8 +588,7 @@ void main_window::show_pose_(const double* mapped, const double* raw)
void main_window::set_title(const QString& game_title)
{
- //static const QString version{opentrack_version};
- static const QString version = "TrackHat opentrack v3";
+ static const QString version{opentrack_version};
static const QString sep { tr(" :: ") };
static const QString pat1{ version + sep + "%1" + sep + "%2" };
static const QString pat2{ version + sep + "%1" };