From 11f81e10e123e17d8dfac3a7f3330f3c09f787e0 Mon Sep 17 00:00:00 2001 From: Vincent Texier <vit@free.fr> Date: Sat, 30 May 2015 09:20:54 +0200 Subject: [PATCH] Add network tooltypes french translation --- res/i18n/ts/fr_FR.ts | 25 ++++++++++++++++++++++++- src/cutecoin/models/network.py | 8 ++++---- 2 files changed, 28 insertions(+), 5 deletions(-) diff --git a/res/i18n/ts/fr_FR.ts b/res/i18n/ts/fr_FR.ts index 22cb1e22..65d3f214 100644 --- a/res/i18n/ts/fr_FR.ts +++ b/res/i18n/ts/fr_FR.ts @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE TS> -<TS version="2.1" language="fr_FR" sourcelanguage="en"> +<TS version="2.0" language="fr_FR" sourcelanguage="en"> <context> <name>@default</name> <message> @@ -1354,6 +1354,29 @@ Revoking your UID can only success if it is not already validated by the network <translation>Définir comme noeud racine</translation> </message> </context> +<context> + <name>NetworkTableModel</name> + <message> + <location filename="../../../src/cutecoin/models/network.py" line="112"/> + <source>Online</source> + <translation>Connecté</translation> + </message> + <message> + <location filename="../../../src/cutecoin/models/network.py" line="113"/> + <source>Offline</source> + <translation>Déconnecté</translation> + </message> + <message> + <location filename="../../../src/cutecoin/models/network.py" line="114"/> + <source>Unsynchronized</source> + <translation>Désynchronisé</translation> + </message> + <message> + <location filename="../../../src/cutecoin/models/network.py" line="115"/> + <source>Corrupted</source> + <translation>Corrompu</translation> + </message> +</context> <context> <name>Node</name> <message> diff --git a/src/cutecoin/models/network.py b/src/cutecoin/models/network.py index d76c1b5e..4c43f072 100644 --- a/src/cutecoin/models/network.py +++ b/src/cutecoin/models/network.py @@ -109,10 +109,10 @@ class NetworkTableModel(QAbstractTableModel): Node.CORRUPTED: QColor(Qt.lightGray) } self.node_states = { - Node.ONLINE: 'Online', - Node.OFFLINE: 'Offline', - Node.DESYNCED: 'Unsynchronized', - Node.CORRUPTED: 'Corrupted' + Node.ONLINE: self.tr('Online'), + Node.OFFLINE: self.tr('Offline'), + Node.DESYNCED: self.tr('Unsynchronized'), + Node.CORRUPTED: self.tr('Corrupted') } @property -- GitLab