# HG changeset patch # User Goffi # Date 1457518652 -3600 # Node ID e15c7d71ae76d594feb28939bd16bd29ca306215 # Parent c1fbd47b53bf896388dbbb931e96be5f6be0d31f plugin account: fixed use of {domain} instead of hardcoded libervia.org for welcoming e-mail. diff -r c1fbd47b53bf -r e15c7d71ae76 src/plugins/plugin_misc_account.py --- a/src/plugins/plugin_misc_account.py Wed Mar 09 11:16:24 2016 +0100 +++ b/src/plugins/plugin_misc_account.py Wed Mar 09 11:17:32 2016 +0100 @@ -306,12 +306,12 @@ body = (_(u"""Welcome to Libervia, the web interface of Salut à Toi. -Your account on %(domain)s has been successfully created. This is a demonstration version to show you the current status of the project. It is still under development, please keep it in mind! +Your account on {domain} has been successfully created. This is a demonstration version to show you the current status of the project. It is still under development, please keep it in mind! Here is your connection information: -Login on libervia.org: %(profile)s -Jabber ID (JID): %(jid_s)s +Login on {domain}: {profile} +Jabber ID (JID): {jid} Your password has been chosen by yourself during registration. In the beginning, you have nobody to talk to. To find some contacts, you may use the users' directory: @@ -322,7 +322,7 @@ Salut à Toi association http://www.salut-a-toi.org -""") % {'profile': profile, 'jid_s': jid_s, 'domain': domain}).encode('utf-8') +""").format(profile=profile, jid=jid_s, domain=domain)).encode('utf-8') msg = MIMEText(body, 'plain', 'UTF-8') msg['Subject'] = _(u'Libervia account created') msg['From'] = email_from