i18n: make the client translation ready
- add tx config file
- add source translation file
- changed some formatted string to be included in tr in case the
argument order need to be changed
- moved some ui text to code (e.g Credits)
Issue: #80359
Change-Id: I8ca846942a879f1e5753d042bb4cb44626c4c5ef
diff --git a/aboutdialog.ui b/aboutdialog.ui
index 116f605..ea36713 100644
--- a/aboutdialog.ui
+++ b/aboutdialog.ui
@@ -542,7 +542,10 @@
<item alignment="Qt::AlignHCenter">
<widget class="QLabel" name="clientVersionLabel">
<property name="text">
- <string><html><head/><body><p><span style=" font-weight:600;">Windows Ring v</span></p></body></html></string>
+ <string notr="true">Windows Ring v</string>
+ </property>
+ <property name="textFormat">
+ <enum>Qt::AutoText</enum>
</property>
<property name="margin">
<number>15</number>
@@ -552,7 +555,7 @@
<item alignment="Qt::AlignHCenter">
<widget class="QLabel" name="gitVersionLabel">
<property name="text">
- <string>version : </string>
+ <string notr="true">version : </string>
</property>
<property name="margin">
<number>5</number>
@@ -562,7 +565,10 @@
<item alignment="Qt::AlignHCenter">
<widget class="QLabel" name="releaseLabel">
<property name="text">
- <string><html><head/><body><p>Release : Samuel de Champlain</p></body></html></string>
+ <string>Release : Samuel de Champlain</string>
+ </property>
+ <property name="textFormat">
+ <enum>Qt::PlainText</enum>
</property>
<property name="margin">
<number>0</number>
@@ -575,10 +581,11 @@
<enum>Qt::LeftToRight</enum>
</property>
<property name="text">
- <string><html><head/><body><p align="center">The Microsoft Windows client for Ring. <BR>Ring is a secured and distributed communication software.</p></body></html></string>
+ <string>The Microsoft Windows client for Ring.
+Ring is a secured and distributed communication software.</string>
</property>
<property name="textFormat">
- <enum>Qt::AutoText</enum>
+ <enum>Qt::PlainText</enum>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
@@ -599,7 +606,7 @@
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="text">
- <string><html><head/><body><p><a href="www.ring.cx"><span style=" font-size:9pt; text-decoration: underline; color:#0000ff;">www.ring.cx</span></a></p></body></html></string>
+ <string notr="true"><html><head/><body><p><a href="www.ring.cx"><span style=" font-size:9pt; text-decoration: underline; color:#0000ff;">www.ring.cx</span></a></p></body></html></string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
@@ -636,7 +643,7 @@
</font>
</property>
<property name="text">
- <string><html><head/><body><p>© 2015 Savoir-faire Linux</p></body></html></string>
+ <string notr="true"><html><head/><body><p>© 2015 Savoir-faire Linux</p></body></html></string>
</property>
<property name="margin">
<number>5</number>
@@ -654,7 +661,7 @@
<cursorShape>PointingHandCursor</cursorShape>
</property>
<property name="text">
- <string><html><head/><body><p>This program comes with absolutely no warranty. <br/>See the <a href="http://www.gnu.org/licenses/gpl-3.0.html"><span style=" text-decoration: underline; color:#0000ff;">GNU General Public License, version 3 or later</span></a> for details.</p></body></html></string>
+ <string notr="true"><html><head/><body><p>This program comes with absolutely no warranty. <br/>See the <a href="http://www.gnu.org/licenses/gpl-3.0.html"><span style=" text-decoration: underline; color:#0000ff;">GNU General Public License, version 3 or later</span></a> for details.</p></body></html></string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
@@ -680,25 +687,13 @@
<number>1</number>
</property>
<item>
- <widget class="QTextBrowser" name="textBrowser">
+ <widget class="QTextBrowser" name="creditsBrowser">
<property name="html">
- <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
+ <string notr="true"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Cantarell'; font-size:11pt; font-weight:400; font-style:normal;">
-<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Created by: </span></p>
-<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Adrien Béraud</p>
-<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Alexandre Lision</p>
-<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Édric Milaret</p>
-<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Éloi Bail</p>
-<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Emmanuel Lepage-Vallée</p>
-<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Guillaume Roguez</p>
-<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Stepan Salenikovich</p>
-<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-weight:600;">Artwork by:</span></p>
-<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Marianne Forget</p>
-<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p>
-<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Based on the SFLPhone project</p>
-<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html></string>
+<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br /></p></body></html></string>
</property>
</widget>
</item>