diff --git a/res/i18n/ts/fr_FR.ts b/res/i18n/ts/fr_FR.ts index 8cb174a69f678742d4d7ac8b034cc6540c65891b..2511799fd215d9303a3ee0f0b5714e80dc6ec954 100644 --- a/res/i18n/ts/fr_FR.ts +++ b/res/i18n/ts/fr_FR.ts @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE TS><TS version="2.0" language="fr_FR" sourcelanguage="en"> +<!DOCTYPE TS> +<TS version="2.0" language="fr_FR" sourcelanguage="en"> <context> <name>@default</name> <message> @@ -1107,7 +1108,7 @@ Revoking your UID can only success if it is not already validated by the network </message> <message> <location filename="../../../src/cutecoin/gui/informations_tab.py" line="140"/> - <source>UD(t+1) = MAX { UD(t) ; c × M(t) / N(t) }</source> + <source>UD(t+1) = MAX { UD(t) ; c × M(t) / N(t) }</source> <translation type="obsolete">DU(t+1) = MAX { DU(t) ; c × M(t) / N(t) }</translation> </message> <message> @@ -2195,6 +2196,11 @@ Veuillez rééssayer plus tard</translation> <source>Me</source> <translation>Moi</translation> </message> + <message> + <location filename="../../../src/cutecoin/gui/wot_tab.py" line="28"/> + <source>Research a pubkey, an uid...</source> + <translation>Rechercher une clé publique, un uid...</translation> + </message> </context> <context> <name>self.config_dialog</name> diff --git a/src/cutecoin/gui/wot_tab.py b/src/cutecoin/gui/wot_tab.py index 7fe44de8f0a4c5220cb0e2b37f7d219e0c80c7e8..a3299f1225e84cafccc1ee601ff23e922b45b2f9 100644 --- a/src/cutecoin/gui/wot_tab.py +++ b/src/cutecoin/gui/wot_tab.py @@ -2,8 +2,9 @@ import logging from cutecoin.core.graph import Graph -from PyQt5.QtWidgets import QWidget, QComboBox +from PyQt5.QtWidgets import QWidget, QComboBox, QLineEdit from PyQt5.QtCore import pyqtSlot +from cutecoin.core.net.api import bma from ..gen_resources.wot_tab_uic import Ui_WotTabWidget from cutecoin.gui.views.wot import NODE_STATUS_HIGHLIGHTED, NODE_STATUS_SELECTED, NODE_STATUS_OUT, ARC_STATUS_STRONG, ARC_STATUS_WEAK @@ -23,6 +24,8 @@ class WotTabWidget(QWidget, Ui_WotTabWidget): # construct from qtDesigner self.setupUi(self) + # Default text when combo lineEdit is empty + self.comboBoxSearch.lineEdit().setPlaceholderText(self.tr('Research a pubkey, an uid...')) # add combobox events self.comboBoxSearch.lineEdit().returnPressed.connect(self.search) # To fix a recall of the same item with different case,