MCPcopy Create free account
hub / github.com/Bitmessage/PyBitmessage / _translate

Function _translate

src/bitmessageqt/bitmessageui.py:27–31  ·  view source on GitHub ↗
(context, text, disambig, encoding = QtCore.QCoreApplication.CodecForTr, n = None)

Source from the content-addressed store, hash-verified

25try:
26 _encoding = QtGui.QApplication.UnicodeUTF8
27 def _translate(context, text, disambig, encoding = QtCore.QCoreApplication.CodecForTr, n = None):
28 if n is None:
29 return QtGui.QApplication.translate(context, text, disambig, _encoding)
30 else:
31 return QtGui.QApplication.translate(context, text, disambig, _encoding, n)
32except AttributeError:
33 def _translate(context, text, disambig, encoding = QtCore.QCoreApplication.CodecForTr, n = None):
34 if n is None:

Callers 2

retranslateUiMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected