# This is used so that the translateText function can be used when we are in daemon mode and not using any QT functions.
classtranslateClass:
def__init__(self,context,text):
self.context=context
self.text=text
defarg(self,argument):
if'%'inself.text:
returntranslateClass(self.context,self.text.replace('%','',1))# This doesn't actually do anything with the arguments because we don't have a UI in which to display this information anyway.
print'PyBitmessage requires PyQt unless you want to run it as a daemon and interact with it using the API. You can download PyQt from http://www.riverbankcomputing.com/software/pyqt/download or by searching Google for \'PyQt Download\'. If you want to run in daemon mode, see https://bitmessage.org/wiki/Daemon'