better and translatble strings

This commit is contained in:
Nikos Kouremenos 2005-08-04 19:48:57 +00:00
parent 967de6a187
commit fa5ddbe498
1 changed files with 5 additions and 5 deletions

View File

@ -246,9 +246,9 @@ class VcardWindow:
i += 1 i += 1
if client == '': if client == '':
client = 'N/A' client = _('Unknown')
if os == '': if os == '':
os = 'N/A' os = _('Unknown')
self.xml.get_widget('client_name_version_label').set_text(client) self.xml.get_widget('client_name_version_label').set_text(client)
self.xml.get_widget('os_label').set_text(os) self.xml.get_widget('os_label').set_text(os)
@ -260,14 +260,15 @@ class VcardWindow:
if self.contact.ask: if self.contact.ask:
label.set_text(self.contact.ask) label.set_text(self.contact.ask)
else: else:
label.set_text('None') label.set_text(_('None'))
self.xml.get_widget('nickname_entry').set_text(self.contact.name) self.xml.get_widget('nickname_entry').set_text(self.contact.name)
log = 1 log = 1
if self.contact.jid in gajim.config.get_per('accounts', self.account, if self.contact.jid in gajim.config.get_per('accounts', self.account,
'no_log_for').split(' '): 'no_log_for').split(' '):
log = 0 log = 0
self.xml.get_widget('log_checkbutton').set_active(log) self.xml.get_widget('log_checkbutton').set_active(log)
resources = '%s (%s)' % (self.contact.resource, str(self.contact.priority)) resources = '%s (%s)' % (self.contact.resource, str(
self.contact.priority))
uf_resources = self.contact.resource + _(' resource with priority ')\ uf_resources = self.contact.resource + _(' resource with priority ')\
+ str(self.contact.priority) + str(self.contact.priority)
if not self.contact.status: if not self.contact.status:
@ -312,7 +313,6 @@ class VcardWindow:
status_label.set_text(stats) status_label.set_text(stats)
gajim.connections[self.account].request_vcard(self.contact.jid) gajim.connections[self.account].request_vcard(self.contact.jid)
def add_to_vcard(self, vcard, entry, txt): def add_to_vcard(self, vcard, entry, txt):