feat: display git describe version string in app if possible

This commit is contained in:
Gary Wang
2020-09-29 09:45:07 +08:00
parent 4c3e370f70
commit 7c39668eb6
4 changed files with 29 additions and 13 deletions

View File

@ -35,36 +35,41 @@
</message>
<message>
<location filename="../aboutdialog.cpp" line="37"/>
<source>Version: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="40"/>
<source>Built with Qt %1 (%2)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="38"/>
<location filename="../aboutdialog.cpp" line="41"/>
<source>Source code</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="42"/>
<location filename="../aboutdialog.cpp" line="45"/>
<source>&lt;p&gt;&lt;i&gt;%1&lt;/i&gt; is released under the MIT License.&lt;/p&gt;&lt;p&gt;This license grants people a number of freedoms:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;You are free to use &lt;i&gt;%1&lt;/i&gt;, for any purpose&lt;/li&gt;&lt;li&gt;You are free to distribute &lt;i&gt;%1&lt;/i&gt;&lt;/li&gt;&lt;li&gt;You can study how &lt;i&gt;%1&lt;/i&gt; works and change it&lt;/li&gt;&lt;li&gt;You can distribute changed versions of &lt;i&gt;%1&lt;/i&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;The MIT license guarantees you this freedom. Nobody is ever permitted to take it away.&lt;/p&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="55"/>
<location filename="../aboutdialog.cpp" line="58"/>
<source>Your Rights</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="90"/>
<location filename="../aboutdialog.cpp" line="93"/>
<source>&amp;Help</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="91"/>
<location filename="../aboutdialog.cpp" line="94"/>
<source>&amp;About</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="92"/>
<location filename="../aboutdialog.cpp" line="95"/>
<source>&amp;License</source>
<translation type="unfinished"></translation>
</message>

View File

@ -35,36 +35,41 @@
</message>
<message>
<location filename="../aboutdialog.cpp" line="37"/>
<source>Version: %1</source>
<translation>: %1</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="40"/>
<source>Built with Qt %1 (%2)</source>
<translation>使 Qt %1 (%2) </translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="38"/>
<location filename="../aboutdialog.cpp" line="41"/>
<source>Source code</source>
<translation></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="42"/>
<location filename="../aboutdialog.cpp" line="45"/>
<source>&lt;p&gt;&lt;i&gt;%1&lt;/i&gt; is released under the MIT License.&lt;/p&gt;&lt;p&gt;This license grants people a number of freedoms:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;You are free to use &lt;i&gt;%1&lt;/i&gt;, for any purpose&lt;/li&gt;&lt;li&gt;You are free to distribute &lt;i&gt;%1&lt;/i&gt;&lt;/li&gt;&lt;li&gt;You can study how &lt;i&gt;%1&lt;/i&gt; works and change it&lt;/li&gt;&lt;li&gt;You can distribute changed versions of &lt;i&gt;%1&lt;/i&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;The MIT license guarantees you this freedom. Nobody is ever permitted to take it away.&lt;/p&gt;</source>
<translation>&lt;p&gt;&lt;i&gt;%1&lt;/i&gt; MIT &lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;使 &lt;i&gt;%1&lt;/i&gt;&lt;/li&gt;&lt;li&gt; &lt;i&gt;%1&lt;/i&gt;&lt;/li&gt;&lt;li&gt; &lt;i&gt;%1&lt;/i&gt; &lt;/li&gt;&lt;li&gt; &lt;i&gt;%1&lt;/i&gt; &lt;/li&gt;&lt;/ul&gt;&lt;p&gt; MIT &lt;/p&gt;</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="55"/>
<location filename="../aboutdialog.cpp" line="58"/>
<source>Your Rights</source>
<translation></translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="90"/>
<location filename="../aboutdialog.cpp" line="93"/>
<source>&amp;Help</source>
<translation>(&amp;H)</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="91"/>
<location filename="../aboutdialog.cpp" line="94"/>
<source>&amp;About</source>
<translation>(&amp;A)</translation>
</message>
<message>
<location filename="../aboutdialog.cpp" line="92"/>
<location filename="../aboutdialog.cpp" line="95"/>
<source>&amp;License</source>
<translation>(&amp;L)</translation>
</message>