diff --git a/res/i18n/ts/fr_FR.ts b/res/i18n/ts/fr_FR.ts index ee820cc8a09af87bb2543207515bb702b96b9659..2b468ac6b368a0e64c105834a6667613dfa5825a 100644 --- a/res/i18n/ts/fr_FR.ts +++ b/res/i18n/ts/fr_FR.ts @@ -1120,7 +1120,7 @@ Revoking your UID can only success if it is not already validated by the network <translation>Sauvegarder</translation> </message> <message> - <location filename="../../../src/cutecoin/gui/mainwindow.py" line="385"/> + <location filename="../../../src/cutecoin/gui/mainwindow.py" line="387"/> <source>Export</source> <translation>Exporter</translation> </message> @@ -1146,7 +1146,7 @@ Revoking your UID can only success if it is not already validated by the network </translation> </message> <message> - <location filename="../../../src/cutecoin/gui/mainwindow.py" line="251"/> + <location filename="../../../src/cutecoin/gui/mainwindow.py" line="253"/> <source> <h1>Cutecoin</h1> @@ -1181,32 +1181,32 @@ Revoking your UID can only success if it is not already validated by the network </translation> </message> <message> - <location filename="../../../src/cutecoin/gui/mainwindow.py" line="319"/> + <location filename="../../../src/cutecoin/gui/mainwindow.py" line="321"/> <source>Edit</source> <translation>Editer</translation> </message> <message> - <location filename="../../../src/cutecoin/gui/mainwindow.py" line="322"/> + <location filename="../../../src/cutecoin/gui/mainwindow.py" line="324"/> <source>Delete</source> <translation>Supprimer</translation> </message> <message> - <location filename="../../../src/cutecoin/gui/mainwindow.py" line="338"/> + <location filename="../../../src/cutecoin/gui/mainwindow.py" line="340"/> <source>CuteCoin {0}</source> <translation>CuteCoin {0}</translation> </message> <message> - <location filename="../../../src/cutecoin/gui/mainwindow.py" line="363"/> + <location filename="../../../src/cutecoin/gui/mainwindow.py" line="365"/> <source>CuteCoin {0} - Account : {1}</source> <translation>CuteCoin {0} - Compte : {1}</translation> </message> <message> - <location filename="../../../src/cutecoin/gui/mainwindow.py" line="383"/> + <location filename="../../../src/cutecoin/gui/mainwindow.py" line="385"/> <source>Export an account</source> <translation>Exporter un compte</translation> </message> <message> - <location filename="../../../src/cutecoin/gui/mainwindow.py" line="384"/> + <location filename="../../../src/cutecoin/gui/mainwindow.py" line="386"/> <source>All account files (*.acc)</source> <translation>Tout fichier de compte (*.acc)</translation> </message> @@ -1276,7 +1276,7 @@ Revoking your UID can only success if it is not already validated by the network <translation>&Préférences</translation> </message> <message> - <location filename="../../../src/cutecoin/gui/mainwindow.py" line="276"/> + <location filename="../../../src/cutecoin/gui/mainwindow.py" line="278"/> <source>Please get the latest release {version}</source> <translation>Veuillez télécharger la dernière version {version}</translation> </message> @@ -1301,11 +1301,16 @@ Revoking your UID can only success if it is not already validated by the network <p><b>{version_info}</b></p> <p><a href="{version_url}">Download link</a></p> </source> - <translation> + <translation type="obsolete"> <p><b>{version_info}</b></p> <p><a href="{version_url}">Lien de téléchargement</a></p> </translation> </message> + <message> + <location filename="../../../src/cutecoin/gui/mainwindow.py" line="249"/> + <source>Download link</source> + <translation type="unfinished">Lien de téléchargement</translation> + </message> </context> <context> <name>MemberDialog</name> diff --git a/res/ui/about.ui b/res/ui/about.ui index 4ea3a486921d41a934835baf6e2ea636c9f4ba0e..dfd2c3756f9b99b2c994648f99f0bba68f5f0fc2 100644 --- a/res/ui/about.ui +++ b/res/ui/about.ui @@ -19,7 +19,10 @@ <item> <widget class="QLabel" name="label"> <property name="text"> - <string>TextLabel</string> + <string>label</string> + </property> + <property name="textFormat"> + <enum>Qt::RichText</enum> </property> <property name="alignment"> <set>Qt::AlignCenter</set> @@ -27,6 +30,9 @@ <property name="openExternalLinks"> <bool>true</bool> </property> + <property name="textInteractionFlags"> + <set>Qt::TextBrowserInteraction</set> + </property> </widget> </item> <item> diff --git a/src/cutecoin/core/app.py b/src/cutecoin/core/app.py index 7619336a8784e1fa23c4cde772ce8779410d9491..ca266b27eb0dc05e0d6f04c784917fe53e29826d 100644 --- a/src/cutecoin/core/app.py +++ b/src/cutecoin/core/app.py @@ -409,7 +409,7 @@ class Application(QObject): latest = None releases = reply.readAll().data().decode('utf-8') logging.debug(releases) - if reply.error == QNetworkReply.NoError: + if reply.error() == QNetworkReply.NoError: for r in json.loads(releases): if not latest: latest = r diff --git a/src/cutecoin/gui/mainwindow.py b/src/cutecoin/gui/mainwindow.py index 72e05de0b39490c9ab139a9aa15eeea25d497ee5..b44cafb29dfe137ed7877ba77c0302f1022c400b 100644 --- a/src/cutecoin/gui/mainwindow.py +++ b/src/cutecoin/gui/mainwindow.py @@ -237,13 +237,17 @@ class MainWindow(QMainWindow, Ui_MainWindow): version_url = "" if not latest[0]: version_info = self.tr("Latest release : {version}") \ - .format(version='.'.join(latest[1])) + .format(version=latest[1]) version_url = latest[2] - new_version_text = self.tr(""" - <p><b>{version_info}</b></p> - <p><a href="{version_url}">Download link</a></p> - """).format(version_info=version_info, version_url=version_url) + new_version_text = """ + <p><b>{version_info}</b></p> + <p><a href="{version_url}">{link_text}</a></p> + """.format(version_info=version_info, + version_url=version_url, + link_text=self.tr("Download link")) + else: + new_version_text = "" text = self.tr(""" <h1>Cutecoin</h1>