we dont mention account specific strings when user has one account [which is the case for everyday users]
This commit is contained in:
parent
89337ea5bc
commit
68394d8398
|
@ -514,8 +514,12 @@ class SubscriptionRequestWindow:
|
||||||
self.plugin = plugin
|
self.plugin = plugin
|
||||||
self.jid = jid
|
self.jid = jid
|
||||||
self.account = account
|
self.account = account
|
||||||
xml.get_widget('from_label').set_text(
|
if len(gajim.connections) >= 2:
|
||||||
_('Subscription request for account %s from %s') % (account, self.jid))
|
prompt_text = _('Subscription request for account %s from %s')\
|
||||||
|
% (account, self.jid)
|
||||||
|
else:
|
||||||
|
prompt_text = _('Subscription request from %s') % self.jid
|
||||||
|
xml.get_widget('from_label').set_text(prompt_text)
|
||||||
xml.get_widget('message_textview').get_buffer().set_text(text)
|
xml.get_widget('message_textview').get_buffer().set_text(text)
|
||||||
xml.signal_autoconnect(self)
|
xml.signal_autoconnect(self)
|
||||||
self.window.show_all()
|
self.window.show_all()
|
||||||
|
|
Loading…
Reference in New Issue