comparison frontends/src/primitivus/chat.py @ 381:1f7a14d0343d

primitivus: added forgotten gettext i18n call
author Goffi <goffi@goffi.org>
date Sat, 27 Aug 2011 17:24:17 +0200
parents ede26abf6ca1
children e66d300c5d42
comparison
equal deleted inserted replaced
380:ede26abf6ca1 381:1f7a14d0343d
231 self.content.append(ChatText(self, timestamp or None, nick, mymess, msg)) 231 self.content.append(ChatText(self, timestamp or None, nick, mymess, msg))
232 self.text_list.set_focus(len(self.content)-1) 232 self.text_list.set_focus(len(self.content)-1)
233 self.host.redraw() 233 self.host.redraw()
234 if not self.host.notify.hasFocus(): 234 if not self.host.notify.hasFocus():
235 if self.type=="one2one": 235 if self.type=="one2one":
236 self.host.notify.sendNotification("Primitivus: %s is talking to you" % from_jid) 236 self.host.notify.sendNotification(_("Primitivus: %s is talking to you") % from_jid)
237 elif self.getUserNick().lower() in msg.lower(): 237 elif self.getUserNick().lower() in msg.lower():
238 self.host.notify.sendNotification("Primitivus: Somebody pinged your name in %s room" % self.target) 238 self.host.notify.sendNotification(_("Primitivus: Somebody pinged your name in %s room") % self.target)
239 239
240 def printInfo(self, msg, type='normal'): 240 def printInfo(self, msg, type='normal'):
241 """Print general info 241 """Print general info
242 @param msg: message to print 242 @param msg: message to print
243 @type: one of: 243 @type: one of:
247 self.content.append(sat_widgets.ClickableText(msg)) 247 self.content.append(sat_widgets.ClickableText(msg))
248 self.text_list.set_focus(len(self.content)-1) 248 self.text_list.set_focus(len(self.content)-1)
249 self.host.redraw() 249 self.host.redraw()
250 if not self.host.notify.hasFocus(): 250 if not self.host.notify.hasFocus():
251 if self.type=="one2one": 251 if self.type=="one2one":
252 self.host.notify.sendNotification("Primitivus: there is a message about you") 252 self.host.notify.sendNotification(_("Primitivus: there is a message about you"))
253 elif self.getUserNick().lower() in msg.lower(): 253 elif self.getUserNick().lower() in msg.lower():
254 self.host.notify.sendNotification("Primitivus: Somebody is talking about you in %s room" % self.target) 254 self.host.notify.sendNotification(_("Primitivus: Somebody is talking about you in %s room") % self.target)
255 255
256 def startGame(self, game_type, referee, players): 256 def startGame(self, game_type, referee, players):
257 """Configure the chat window to start a game""" 257 """Configure the chat window to start a game"""
258 if game_type=="Tarot": 258 if game_type=="Tarot":
259 try: 259 try: