when we edit a transport, we print 'edit %s' instead of 'register to %s'

This commit is contained in:
Yann Leboulanger 2005-05-25 22:27:40 +00:00
parent 4142f76b44
commit 9bc2c5781e
1 changed files with 4 additions and 1 deletions

View File

@ -1432,7 +1432,10 @@ class Service_registration_window:
self.plugin = plugin self.plugin = plugin
self.account = account self.account = account
self.window = self.xml.get_widget('service_registration_window') self.window = self.xml.get_widget('service_registration_window')
self.window.set_title(_('Register to %s') % service) if infos.has_key('registered'):
self.window.set_title(_('Edit ' + service)
else:
self.window.set_title(_('Register to ' + service)
self.xml.get_widget('label').set_text(infos['instructions']) self.xml.get_widget('label').set_text(infos['instructions'])
self.entries = {} self.entries = {}
self.draw_table() self.draw_table()