comparison frontends/quick_frontend/quick_contact_management.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 8147b4f40809
children ded2431cea5a
comparison
equal deleted inserted replaced
69:86f1f7f6d332 70:8f2ed279784b
62 if self.__contactlist[entity.short]['statuses']: 62 if self.__contactlist[entity.short]['statuses']:
63 return self.__contactlist[entity.short]['statuses'].values()[0] 63 return self.__contactlist[entity.short]['statuses'].values()[0]
64 if self.__contactlist[entity.short].has_key(name): 64 if self.__contactlist[entity.short].has_key(name):
65 return self.__contactlist[entity.short][name] 65 return self.__contactlist[entity.short][name]
66 else: 66 else:
67 debug('Trying to get attribute for an unknown contact') 67 debug(_('Trying to get attribute for an unknown contact'))
68 return None 68 return None
69 69
70 def isConnected(self, entity): 70 def isConnected(self, entity):
71 """Tell if the contact is online""" 71 """Tell if the contact is online"""
72 return self.__contactlist.has_key(entity.short) 72 return self.__contactlist.has_key(entity.short)
89 @param value: value of the attribute 89 @param value: value of the attribute
90 """ 90 """
91 if self.__contactlist.has_key(entity.short): 91 if self.__contactlist.has_key(entity.short):
92 self.__contactlist[entity.short][key] = value 92 self.__contactlist[entity.short][key] = value
93 else: 93 else:
94 debug ('Trying to update an unknown contact: %s', entity.short) 94 debug (_('Trying to update an unknown contact: %s'), entity.short)
95 95
96 def get_full(self, entity): 96 def get_full(self, entity):
97 return entity.short+'/'+self.__contactlist[entity.short]['resources'][-1] 97 return entity.short+'/'+self.__contactlist[entity.short]['resources'][-1]
98 98