You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.setError(_translate("AddressValidator", "Address already present as one of your identities."))
69
92
return (QtGui.QValidator.Intermediate, 0)
93
+
70
94
ifaddressGeneratorReturnValue[0] =='chan name does not match address':
71
-
self.setError(_translate("AddressValidator", "Although the Bitmessage address you entered was valid, it doesn\'t match the chan name."))
95
+
self.setError(
96
+
_translate(
97
+
"AddressValidator",
98
+
"Although the Bitmessage address you entered was valid, it doesn\'t match the chan name."))
72
99
return (QtGui.QValidator.Intermediate, 0)
100
+
73
101
self.setOK(_translate("MainWindow", "Passphrase and address appear to be valid."))
74
102
75
103
defreturnValid(self):
104
+
""""""
76
105
ifself.isValid:
77
106
returnQtGui.QValidator.Acceptable
78
-
else:
79
-
returnQtGui.QValidator.Intermediate
107
+
returnQtGui.QValidator.Intermediate
80
108
81
109
defvalidate(self, s, pos):
110
+
""""""
111
+
# pylint: disable=unused-argument
82
112
ifself.addressObjectisNone:
83
113
address=None
84
114
else:
@@ -105,9 +135,13 @@ def validate(self, s, pos):
105
135
106
136
# version too high
107
137
ifdecodeAddress(address)[0] =='versiontoohigh':
108
-
self.setError(_translate("AddressValidator", "Address too new. Although that Bitmessage address might be valid, its version number is too new for us to handle. Perhaps you need to upgrade Bitmessage."))
138
+
self.setError(
139
+
_translate(
140
+
"AddressValidator",
141
+
"Address too new. Although that Bitmessage address might be valid, its version number is"
142
+
" too new for us to handle. Perhaps you need to upgrade Bitmessage."))
109
143
return (QtGui.QValidator.Intermediate, pos)
110
-
144
+
111
145
# invalid
112
146
ifdecodeAddress(address)[0] !='success':
113
147
self.setError(_translate("AddressValidator", "The Bitmessage address is not valid."))
0 commit comments