comparison frontends/quick_frontend/quick_chat.py @ 70:8f2ed279784b

i18n - gettext support added in frontends - first draft of frontends french translation
author Goffi <goffi@goffi.org>
date Fri, 05 Mar 2010 20:33:10 +1100
parents 0e50dd3a234a
children f271fff3a713
comparison
equal deleted inserted replaced
69:86f1f7f6d332 70:8f2ed279784b
30 self.to_jid = to_jid 30 self.to_jid = to_jid
31 self.host = host 31 self.host = host
32 32
33 def historyPrint(self, size=20, keep_last=False, profile='@NONE@'): 33 def historyPrint(self, size=20, keep_last=False, profile='@NONE@'):
34 """Print the initial history""" 34 """Print the initial history"""
35 debug ("now we print history") 35 debug (_("now we print history"))
36 history=self.host.bridge.getHistory(self.host.profiles[profile]['whoami'].short, self.to_jid, 20) 36 history=self.host.bridge.getHistory(self.host.profiles[profile]['whoami'].short, self.to_jid, 20)
37 stamps=history.keys() 37 stamps=history.keys()
38 stamps.sort() 38 stamps.sort()
39 for stamp in stamps: 39 for stamp in stamps:
40 self.printMessage(JID(history[stamp][0]), history[stamp][1], profile, stamp) 40 self.printMessage(JID(history[stamp][0]), history[stamp][1], profile, stamp)