Merge lp:~canonical-isd-hackers/canonical-identity-provider/fix-translatable-strings into lp:canonical-identity-provider/release

Proposed by Szilveszter Farkas
Status: Merged
Merged at revision: 22
Proposed branch: lp:~canonical-isd-hackers/canonical-identity-provider/fix-translatable-strings
Merge into: lp:canonical-identity-provider/release
Diff against target: 844 lines (+172/-159)
35 files modified
identityprovider/branding.py (+20/-0)
identityprovider/context_processors.py (+0/-1)
identityprovider/models/authtoken.py (+8/-9)
identityprovider/templates/404.html (+1/-5)
identityprovider/templates/500.html (+1/-1)
identityprovider/templates/account/confirm_new_email.html (+1/-2)
identityprovider/templates/account/delete_email.html (+1/-2)
identityprovider/templates/account/edit.html (+2/-4)
identityprovider/templates/account/new_email.html (+1/-2)
identityprovider/templates/admin/readonly_confirm.html (+8/-16)
identityprovider/templates/launchpad/base.html (+1/-3)
identityprovider/templates/launchpad/email/email-validation-token.txt (+14/-0)
identityprovider/templates/launchpad/email/forgottenpassword.txt (+14/-0)
identityprovider/templates/launchpad/email/impersonate-warning.txt (+12/-0)
identityprovider/templates/launchpad/email/newuser.txt (+14/-0)
identityprovider/templates/launchpad/email/validate-email.txt (+18/-0)
identityprovider/templates/launchpad/registration/login.html (+10/-19)
identityprovider/templates/registration/bad_token.html (+1/-3)
identityprovider/templates/registration/confirm_new_account.html (+2/-3)
identityprovider/templates/registration/email_sent.html (+4/-12)
identityprovider/templates/registration/forgot_password.html (+2/-3)
identityprovider/templates/registration/logout_to_confirm.html (+1/-2)
identityprovider/templates/registration/new_account.html (+1/-2)
identityprovider/templates/registration/reset_password.html (+2/-3)
identityprovider/templates/ubuntu/base.html (+6/-15)
identityprovider/templates/ubuntu/email/email-validation-token.txt (+4/-9)
identityprovider/templates/ubuntu/email/forgottenpassword.txt (+3/-5)
identityprovider/templates/ubuntu/email/impersonate-warning.txt (+3/-5)
identityprovider/templates/ubuntu/email/newuser.txt (+3/-6)
identityprovider/templates/ubuntu/email/validate-email.txt (+3/-7)
identityprovider/templates/ubuntu/registration/login.html (+4/-7)
identityprovider/templates/widgets/recaptcha.html (+1/-3)
identityprovider/templates/widgets/unknown_rp.html (+2/-6)
identityprovider/tests/test_static.py (+2/-2)
identityprovider/views/ui.py (+2/-2)
To merge this branch: bzr merge lp:~canonical-isd-hackers/canonical-identity-provider/fix-translatable-strings
Reviewer Review Type Date Requested Status
Łukasz Czyżykowski (community) Approve
Review via email: mp+25237@code.launchpad.net

Description of the change

This branch hopes to make translators's life easier.

To post a comment you must log in.
Revision history for this message
Łukasz Czyżykowski (lukasz-czyzykowski) wrote :

Looks good.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'identityprovider/branding.py'
--- identityprovider/branding.py 2010-05-12 17:15:50 +0000
+++ identityprovider/branding.py 2010-05-13 15:20:43 +0000
@@ -15,6 +15,16 @@
15 server_info = _('This is the Launchpad login service, built on OpenID. '15 server_info = _('This is the Launchpad login service, built on OpenID. '
16 'The service enables you to use your Launchpad account '16 'The service enables you to use your Launchpad account '
17 'to log into OpenID-enabled sites around the Internet.')17 'to log into OpenID-enabled sites around the Internet.')
18 unknown_rp = _('You have used your Single Sign On ID to access a site '
19 'which is <em>not</em> recognised by Launchpad Login '
20 'Service:')
21 complete_reg = _('Complete your Launchpad Login Service registration')
22 reset_password = _('Reset your Launchpad Login Service password')
23 not_found_error = _('There\'s no page with this address in the Launchpad '
24 'Login Service. Check that you entered the address '
25 'correctly and try again.')
26 oops_error = _('Sorry, something just went wrong in Launchpad Login '
27 'Service.')
1828
1929
20class Ubuntu(object):30class Ubuntu(object):
@@ -27,5 +37,15 @@
27 server_info = _('This is the Ubuntu SSO service, built on OpenID. The '37 server_info = _('This is the Ubuntu SSO service, built on OpenID. The '
28 'service enables you to use your Ubuntu SSO account to '38 'service enables you to use your Ubuntu SSO account to '
29 'log into various sites run by Canonical and Ubuntu.')39 'log into various sites run by Canonical and Ubuntu.')
40 unknown_rp = _('You have used your Single Sign On ID to access a site '
41 'which is <em>not</em> recognised by Ubuntu Single Sign '
42 'On:')
43 complete_reg = _('Complete your Ubuntu Single Sign On registration')
44 reset_password = _('Reset your Ubuntu Single Sign On password')
45 not_found_error = _('There\'s no page with this address in the Ubuntu '
46 'Single Sign On service. Check that you entered the '
47 'address correctly and try again.')
48 oops_error = _('Sorry, something just went wrong in Ubuntu Single Sign '
49 'On.')
3050
31current_brand = globals()[settings.BRAND]()51current_brand = globals()[settings.BRAND]()
3252
=== modified file 'identityprovider/context_processors.py'
--- identityprovider/context_processors.py 2010-04-21 15:29:24 +0000
+++ identityprovider/context_processors.py 2010-05-13 15:20:43 +0000
@@ -22,6 +22,5 @@
22def branding(request):22def branding(request):
23 return {23 return {
24 'template_dir': current_brand.template_dir,24 'template_dir': current_brand.template_dir,
25 'sso_brand_name': u'%s' % current_brand.name,
26 'brand': current_brand,25 'brand': current_brand,
27 }26 }
2827
=== modified file 'identityprovider/models/authtoken.py'
--- identityprovider/models/authtoken.py 2010-04-21 15:29:24 +0000
+++ identityprovider/models/authtoken.py 2010-05-13 15:20:43 +0000
@@ -78,9 +78,9 @@
78 'toaddress': self.email,78 'toaddress': self.email,
79 'token_url': self.get_absolute_url(),79 'token_url': self.get_absolute_url(),
80 'support_form_url': settings.SUPPORT_FORM_URL,80 'support_form_url': settings.SUPPORT_FORM_URL,
81 'sso_brand_name': unicode(current_brand.name),
82 }81 }
83 message = render_to_string('email/validate-email.txt', replacements)82 message = render_to_string('%s/email/validate-email.txt' %
83 current_brand.template_dir, replacements)
84 subject = u'%s' % current_brand.name + ": Validate your email address"84 subject = u'%s' % current_brand.name + ": Validate your email address"
85 self._send_email(u"%s Email Validator" % current_brand.name, subject,85 self._send_email(u"%s Email Validator" % current_brand.name, subject,
86 message)86 message)
@@ -89,10 +89,9 @@
89 replacements = {89 replacements = {
90 'token': self.token,90 'token': self.token,
91 'toaddress': self.email,91 'toaddress': self.email,
92 'sso_brand_name': unicode(current_brand.name),
93 }92 }
94 message = render_to_string('email/email-validation-token.txt',93 message = render_to_string('%s/email/email-validation-token.txt' %
95 replacements)94 current_brand.template_dir, replacements)
96 subject = u"%s: Validate your email address" % current_brand.name95 subject = u"%s: Validate your email address" % current_brand.name
97 self._send_email(u"%s Email Validator" % current_brand.name, subject,96 self._send_email(u"%s Email Validator" % current_brand.name, subject,
98 message)97 message)
@@ -100,20 +99,20 @@
100 def sendPasswordResetEmail(self):99 def sendPasswordResetEmail(self):
101 replacements = {100 replacements = {
102 'token_url': self.get_absolute_url(),101 'token_url': self.get_absolute_url(),
103 'sso_brand_name': unicode(current_brand.name)
104 }102 }
105 from_name = unicode(current_brand.name)103 from_name = unicode(current_brand.name)
106 message = render_to_string('email/forgottenpassword.txt', replacements)104 message = render_to_string('%s/email/forgottenpassword.txt' %
105 current_brand.template_dir, replacements)
107 subject = u"%s: Forgotten Password" % current_brand.name106 subject = u"%s: Forgotten Password" % current_brand.name
108 self._send_email(from_name, subject, message)107 self._send_email(from_name, subject, message)
109108
110 def sendNewUserEmail(self):109 def sendNewUserEmail(self):
111 replacements = {110 replacements = {
112 'token_url': self.get_absolute_url(),111 'token_url': self.get_absolute_url(),
113 'sso_brand_name': unicode(current_brand.name)
114 }112 }
115 from_name = unicode(current_brand.name)113 from_name = unicode(current_brand.name)
116 message = render_to_string('email/newuser.txt', replacements)114 message = render_to_string('%s/email/newuser.txt' %
115 current_brand.template_dir, replacements)
117 subject = u"%s: Finish your registration" % current_brand.name116 subject = u"%s: Finish your registration" % current_brand.name
118 self._send_email(from_name, subject, message)117 self._send_email(from_name, subject, message)
119118
120119
=== modified file 'identityprovider/templates/404.html'
--- identityprovider/templates/404.html 2010-04-21 15:29:24 +0000
+++ identityprovider/templates/404.html 2010-05-13 15:20:43 +0000
@@ -12,11 +12,7 @@
12 <div id="box">12 <div id="box">
13 <h1 class="main">Lost something?</h1>13 <h1 class="main">Lost something?</h1>
14 <div>14 <div>
15 <p>{% blocktrans %}There's no page with this address in the15 <p>{{ brand.not_found }}</p>
16{{ sso_brand_name }} service.
17
18Check that you entered the address correctly and try again.{% endblocktrans %}
19 </p>
20 <p>16 <p>
21 {% blocktrans %}(Error <abbr>ID</abbr>: {{oopsid}}){% endblocktrans %}17 {% blocktrans %}(Error <abbr>ID</abbr>: {{oopsid}}){% endblocktrans %}
22 </p>18 </p>
2319
=== modified file 'identityprovider/templates/500.html'
--- identityprovider/templates/500.html 2010-04-21 15:29:24 +0000
+++ identityprovider/templates/500.html 2010-05-13 15:20:43 +0000
@@ -13,7 +13,7 @@
13 <h1 class="main">Oops!</h1>13 <h1 class="main">Oops!</h1>
14 <div>14 <div>
15 <p>15 <p>
16 {% blocktrans %}Sorry, something just went wrong in {{ sso_brand_name }}.{% endblocktrans %}16 {{ brand.oops_error }}
17 </p>17 </p>
18 <p>18 <p>
19 {% blocktrans %}We&#8217;ve recorded what happened,19 {% blocktrans %}We&#8217;ve recorded what happened,
2020
=== modified file 'identityprovider/templates/account/confirm_new_email.html'
--- identityprovider/templates/account/confirm_new_email.html 2010-04-21 15:29:24 +0000
+++ identityprovider/templates/account/confirm_new_email.html 2010-05-13 15:20:43 +0000
@@ -11,8 +11,7 @@
11 <h2 class="main">{% blocktrans %}Validate {{ email }}?{% endblocktrans %}</h2>11 <h2 class="main">{% blocktrans %}Validate {{ email }}?{% endblocktrans %}</h2>
1212
13 <div class="info">13 <div class="info">
14 <p>{% blocktrans %}Are you sure you want to confirm and validate this14 <p>{% blocktrans %}Are you sure you want to confirm and validate this email address?{% endblocktrans %}</p>
15 email address? {% endblocktrans %}</p>
16 </div>15 </div>
1716
18 <div class="actions">17 <div class="actions">
1918
=== modified file 'identityprovider/templates/account/delete_email.html'
--- identityprovider/templates/account/delete_email.html 2010-04-21 15:29:24 +0000
+++ identityprovider/templates/account/delete_email.html 2010-05-13 15:20:43 +0000
@@ -13,8 +13,7 @@
13 <h2 class="main">{% blocktrans %}Remove {{ email }}?{% endblocktrans %}</h2>13 <h2 class="main">{% blocktrans %}Remove {{ email }}?{% endblocktrans %}</h2>
14 14
15 <div class="info">15 <div class="info">
16 <p>{% blocktrans %}Are you sure you want to remove this unverified email16 <p>{% blocktrans %}Are you sure you want to remove this unverified email address?{% endblocktrans %}</p>
17address?{% endblocktrans %}</p>
18 </div>17 </div>
19 18
20 <div class="actions">19 <div class="actions">
2120
=== modified file 'identityprovider/templates/account/edit.html'
--- identityprovider/templates/account/edit.html 2010-04-21 15:29:24 +0000
+++ identityprovider/templates/account/edit.html 2010-05-13 15:20:43 +0000
@@ -69,8 +69,7 @@
69 <label class="formLabel tooltip"69 <label class="formLabel tooltip"
70 for="id_preferred_email">{% trans "Preferred email" %}70 for="id_preferred_email">{% trans "Preferred email" %}
71 <span class="description tooltip">? <span class="tooltip-content">71 <span class="description tooltip">? <span class="tooltip-content">
72 {% blocktrans %}This email address is passed on to other72 {% blocktrans %}This email address is passed on to other sites when requested as part of the login process.{% endblocktrans %}
73sites when requested as part of the login process.{% endblocktrans %}
74 </span>73 </span>
75 <span class="tooltip-tail">&nbsp;</span></span></label>74 <span class="tooltip-tail">&nbsp;</span></span></label>
76 {{ form.preferred_email }}75 {{ form.preferred_email }}
@@ -122,8 +121,7 @@
122 {% endif %}121 {% endif %}
123 {% if not form.newpassword.errors %}122 {% if not form.newpassword.errors %}
124 <div id="pwhint">123 <div id="pwhint">
125 {% blocktrans %}Password must be at least 8 characters long,124 {% blocktrans %}Password must be at least 8 characters long, and must contain at least one number and an upper case letter.{% endblocktrans %}
126and must contain at least one number and an upper case letter.{% endblocktrans %}
127 </div>125 </div>
128 {% endif %}126 {% endif %}
129 {% if form.non_field_errors %}127 {% if form.non_field_errors %}
130128
=== modified file 'identityprovider/templates/account/new_email.html'
--- identityprovider/templates/account/new_email.html 2010-04-21 15:29:24 +0000
+++ identityprovider/templates/account/new_email.html 2010-05-13 15:20:43 +0000
@@ -10,8 +10,7 @@
10<div id="auth">10<div id="auth">
11 <h2 class="main">{% trans "Add an email address to your account" %}</h2>11 <h2 class="main">{% trans "Add an email address to your account" %}</h2>
1212
13 <p>{% blocktrans %}Enter your email address, and we will send you13 <p>{% blocktrans %}Enter your email address, and we will send you instructions on how to confirm your account.{% endblocktrans %}</p>
14instructions on how to confirm your account.{% endblocktrans %}</p>
1514
16 <form action="+new-email" method="post">15 <form action="+new-email" method="post">
17 <p class="input-row{% if form.newemail.errors %} haserrors{% endif %}">16 <p class="input-row{% if form.newemail.errors %} haserrors{% endif %}">
1817
=== modified file 'identityprovider/templates/admin/readonly_confirm.html'
--- identityprovider/templates/admin/readonly_confirm.html 2010-04-21 15:29:24 +0000
+++ identityprovider/templates/admin/readonly_confirm.html 2010-05-13 15:20:43 +0000
@@ -23,16 +23,14 @@
23 {% blocktrans %}You're not operating on all appservers{% endblocktrans %}23 {% blocktrans %}You're not operating on all appservers{% endblocktrans %}
24 </p>24 </p>
25 <p>25 <p>
26 {% blocktrans %}Changing readonly mode on a single application server can26 {% blocktrans %}Changing readonly mode on a single application server can lead to inconsistent states and unexpected behaviour.{% endblocktrans %}
27lead to inconsistent states and unexpected behaviour.{% endblocktrans %}
28 </p>27 </p>
29 </div>28 </div>
30 {% else %}29 {% else %}
31 {% ifequal action "clear" %}30 {% ifequal action "clear" %}
32 <div class="system-message">31 <div class="system-message">
33 <p class="system-message-title">32 <p class="system-message-title">
34 {% blocktrans %}Make sure the master database connection is enabled on all33 {% blocktrans %}Make sure the master database connection is enabled on all app servers <b>before</b> leaving readonly mode!{% endblocktrans %}
35app servers <b>before</b> leaving readonly mode!{% endblocktrans %}
36 </p>34 </p>
37 </div>35 </div>
38 {% endifequal %}36 {% endifequal %}
@@ -45,29 +43,23 @@
45<b>{{ appserver }}</b>.{% endblocktrans %}43<b>{{ appserver }}</b>.{% endblocktrans %}
46 {% else %}44 {% else %}
47 {% blocktrans %}You are about to enable readonly mode globally.{% endblocktrans %}</p><p>45 {% blocktrans %}You are about to enable readonly mode globally.{% endblocktrans %}</p><p>
48 {% blocktrans %}All appservers will be passed to read-only mode if46 {% blocktrans %}All appservers will be passed to read-only mode if you confirm.{% endblocktrans %}
49you confirm.{% endblocktrans %}
50 {% endif %}47 {% endif %}
51 {% else %}48 {% else %}
52 {% ifequal action "clear" %}49 {% ifequal action "clear" %}
53 {% if appserver %}50 {% if appserver %}
54 {% blocktrans %}You are about to clear readonly mode on appserver51 {% blocktrans %}You are about to clear readonly mode on appserver <b>{{ appserver }}</b>.{% endblocktrans %}</p><p>
55<b>{{ appserver }}</b>.{% endblocktrans %}</p><p>52 {% blocktrans %}If you confirm, <b>{{ appserver }}</b> will attempt to resume normal operation with its master database connection.{% endblocktrans %}</p>
56 {% blocktrans %}If you confirm, <b>{{ appserver }}</b> will attempt
57to resume normal operation with its master database connection.{% endblocktrans %}</p>
58 {% else %}53 {% else %}
59 {% blocktrans %}You are about to clear readonly mode globally.{% endblocktrans %}</p><p>54 {% blocktrans %}You are about to clear readonly mode globally.{% endblocktrans %}</p><p>
60 {% blocktrans %}If you confirm, all appservers will attempt to55 {% blocktrans %}If you confirm, all appservers will attempt to resume normal operation.{% endblocktrans %}
61resume normal operation.{% endblocktrans %}
62 {% endif %}56 {% endif %}
63 {% else %}57 {% else %}
64 {% ifequal action "enable" %}58 {% ifequal action "enable" %}
65 {% blocktrans %}You are about to enable the <b>{{ conn }}</b> database connection on appserver59 {% blocktrans %}You are about to enable the <b>{{ conn }}</b> database connection on appserver <b>{{ appserver }}</b>.{% endblocktrans %}
66<b>{{ appserver }}</b>.{% endblocktrans %}
67 {% else %}60 {% else %}
68 {% ifequal action "disable" %}61 {% ifequal action "disable" %}
69 {% blocktrans %}You are about to disable the <b>{{ conn }}</b> database connection on appserver62 {% blocktrans %}You are about to disable the <b>{{ conn }}</b> database connection on appserver <b>{{ appserver }}</b>.{% endblocktrans %}
70<b>{{ appserver }}</b>.{% endblocktrans %}
71 {% endifequal %}63 {% endifequal %}
72 {% endifequal %}64 {% endifequal %}
73 {% endifequal %}65 {% endifequal %}
7466
=== modified file 'identityprovider/templates/launchpad/base.html'
--- identityprovider/templates/launchpad/base.html 2010-04-21 15:29:24 +0000
+++ identityprovider/templates/launchpad/base.html 2010-05-13 15:20:43 +0000
@@ -27,9 +27,7 @@
27 <div id="maincontent">27 <div id="maincontent">
28 {% if readonly %}28 {% if readonly %}
29 <div class="message">29 <div class="message">
30 {% blocktrans %}We are currently in read-only mode. That30 {% blocktrans %}We are currently in read-only mode. That means that at the moment you can't create new accounts, update your personal information, or request password reminders.{% endblocktrans %}
31means that at the moment you can't create new accounts, update your personal
32information, or request password reminders.{% endblocktrans %}
33 </ul>31 </ul>
34 </div>32 </div>
35 {% endif %}33 {% endif %}
3634
=== added directory 'identityprovider/templates/launchpad/email'
=== added file 'identityprovider/templates/launchpad/email/email-validation-token.txt'
--- identityprovider/templates/launchpad/email/email-validation-token.txt 1970-01-01 00:00:00 +0000
+++ identityprovider/templates/launchpad/email/email-validation-token.txt 2010-05-13 15:20:43 +0000
@@ -0,0 +1,14 @@
1{% load i18n %}
2{% blocktrans %}Hello
3
4We received a request to validate the email address {{ toaddress }} for use in the Launchpad Login Service.
5
6If you made this request, please copy and paste the token below into the desktop application to complete the process to add {{ toaddress }} to your existing Launchpad Login Service account.
7
8 {{ token }}
9
10If you did not make this request, please ignore this message or report it as a possible attempt at a security attack on your data.
11
12Thank you,
13
14The Launchpad Login Service team{% endblocktrans %}
015
=== added file 'identityprovider/templates/launchpad/email/forgottenpassword.txt'
--- identityprovider/templates/launchpad/email/forgottenpassword.txt 1970-01-01 00:00:00 +0000
+++ identityprovider/templates/launchpad/email/forgottenpassword.txt 2010-05-13 15:20:43 +0000
@@ -0,0 +1,14 @@
1{% load i18n %}
2{% blocktrans %}Hello
3
4You have requested a new password for your Launchpad Login Service account.
5
6To change your password:
7
8 {{ token_url }}
9
10If you don't know what this is about, then someone else has entered your email address at the Launchpad Login Service. Sorry about that. You don't need to do anything further, just delete this message.
11
12Regards,
13
14The Launchpad Login Service team{% endblocktrans %}
015
=== added file 'identityprovider/templates/launchpad/email/impersonate-warning.txt'
--- identityprovider/templates/launchpad/email/impersonate-warning.txt 1970-01-01 00:00:00 +0000
+++ identityprovider/templates/launchpad/email/impersonate-warning.txt 2010-05-13 15:20:43 +0000
@@ -0,0 +1,12 @@
1{% load i18n %}
2{% blocktrans %}We've received a request to create a new account with your email address.
3
4If this was you, perhaps you've forgotten your password?
5
6 {{ forgotten_password_url }}
7
8If not, someone may be trying to impersonate you. If you get more requests like this, please let us know.
9
10Regards,
11
12The Launchpad Login Service team{% endblocktrans %}
013
=== added file 'identityprovider/templates/launchpad/email/newuser.txt'
--- identityprovider/templates/launchpad/email/newuser.txt 1970-01-01 00:00:00 +0000
+++ identityprovider/templates/launchpad/email/newuser.txt 2010-05-13 15:20:43 +0000
@@ -0,0 +1,14 @@
1{% load i18n %}
2{% blocktrans %}Hello
3
4Thank you for registering with the Launchpad Login Service.
5
6To complete your registration:
7
8 {{ token_url }}
9
10If you don't know what this is about, then someone has probably entered your email address by mistake at the Launchpad Login Service web site. Sorry about that. You don't need to do anything further, just delete this message.
11
12Regards,
13
14The Launchpad Login Service team{% endblocktrans %}
015
=== added file 'identityprovider/templates/launchpad/email/validate-email.txt'
--- identityprovider/templates/launchpad/email/validate-email.txt 1970-01-01 00:00:00 +0000
+++ identityprovider/templates/launchpad/email/validate-email.txt 2010-05-13 15:20:43 +0000
@@ -0,0 +1,18 @@
1{% load i18n %}
2{% blocktrans %}Hello
3
4We received a request from {{ requester }} using email address {{ requester_email }}, trying to validate the email address {{ toaddress }} for use in the Launchpad Login Service.
5
6If you made this request, please click on the link below and complete the process to add {{ toaddress }} to your existing Launchpad Login Service account.
7
8 {{ token_url }}
9
10If you did not make this request, please ignore this message or report it on
11
12 {{ support_form_url }}
13
14as a possible attempt at a security attack on your data.
15
16Thank you,
17
18The Launchpad Login Service team{% endblocktrans %}
019
=== modified file 'identityprovider/templates/launchpad/registration/login.html'
--- identityprovider/templates/launchpad/registration/login.html 2010-04-21 15:29:24 +0000
+++ identityprovider/templates/launchpad/registration/login.html 2010-05-13 15:20:43 +0000
@@ -15,14 +15,13 @@
15 {% if rpconfig %}15 {% if rpconfig %}
16 {% include "widgets/trusted_rp.html" %}16 {% include "widgets/trusted_rp.html" %}
17 {% else %}17 {% else %}
18 <h2 class="main">{% blocktrans %}Log in to {{ sso_brand_name }}{% endblocktrans %}</h2>18 <h2 class="main">{% blocktrans %}Log in to Launchpad Login Service{% endblocktrans %}</h2>
19 {% endif %}19 {% endif %}
2020
21 <div id="auth-text">21 <div id="auth-text">
22 {% if token and rpconfig %}22 {% if token and rpconfig %}
23 <p>23 <p>
24 {% blocktrans with rpconfig.displayname as rpconfigname %}You are here because {{ rpconfigname }} uses24 {% blocktrans with rpconfig.displayname as rpconfigname %}You are here because {{ rpconfigname }} uses the Launchpad Login Service.{% endblocktrans %}
25the {{ sso_brand_name }} service.{% endblocktrans %}
26 </p>25 </p>
27 {% endif %}26 {% endif %}
28 </div>27 </div>
@@ -61,27 +60,19 @@
61 <h2>{% trans "What is Launchpad and a Launchpad Account?" %}</h2>60 <h2>{% trans "What is Launchpad and a Launchpad Account?" %}</h2>
62 61
63 <p>62 <p>
64 {% blocktrans %}Launchpad is the central point where we gather all63 {% blocktrans %}Launchpad is the central point where we gather all sorts of interactions around Ubuntu, Canonical and free software generally. You can use your Launchpad account to report bugs, to find or contribute translations, to find specs, to contribute code.{% endblocktrans %}
65sorts of interactions around Ubuntu, Canonical and free software generally.
66You can use your Launchpad account to report bugs, to find or contribute
67translations, to find specs, to contribute code.{% endblocktrans %}
68 </p>64 </p>
69 </div>65 </div>
70{% endblock %}66{% endblock %}
7167
72{% block rightcol %}68{% block rightcol %}
73 <p>69 <p>
74 {% blocktrans %}This is the Launchpad login service utilizing70 {% blocktrans %}This is the Launchpad login service utilizing <a href="http://openid.net/">OpenID</a> technology. This site allows you to use <a href="https://launchpad.net/people/+me">your Launchpad account</a> to log into OpenID-enabled sites around the Internet.{% endblocktrans %}
75<a href="http://openid.net/">OpenID</a> technology. This site allows you to use71 </p>
76<a href="https://launchpad.net/people/+me">your Launchpad account</a> to log72 <p>
77into OpenID-enabled sites around the Internet.{% endblocktrans %}73 {% blocktrans %}To learn more about using this service, please review the <a href="https://help.launchpad.net/OpenID">instructions</a>.{% endblocktrans %}
78 </p>74 </p>
79 <p>75 <p>
80 {% blocktrans %}To learn more about using this service, please review the76 {% blocktrans %}If you want to change any of your account's details, you can do so by logging in using the form beside.{% endblocktrans %}
81<a href="https://help.launchpad.net/OpenID">instructions</a>.{% endblocktrans %}
82 </p>
83 <p>
84 {% blocktrans %}If you want to change any of your account's details, you
85can do so by logging in using the form beside.{% endblocktrans %}
86 </p>77 </p>
87{% endblock %}78{% endblock %}
8879
=== modified file 'identityprovider/templates/registration/bad_token.html'
--- identityprovider/templates/registration/bad_token.html 2010-04-21 15:29:24 +0000
+++ identityprovider/templates/registration/bad_token.html 2010-05-13 15:20:43 +0000
@@ -9,8 +9,6 @@
9{% block "content" %}9{% block "content" %}
10<h1 class="main">{% trans "Unauthorized token" %}</h1>10<h1 class="main">{% trans "Unauthorized token" %}</h1>
1111
12<p>{% blocktrans %}You are not authorized to use this token. If this URL12<p>{% blocktrans %}You are not authorized to use this token. If this URL was sent to you by email, please make sure you open it in the same browser where you requested it.{% endblocktrans %}</p>
13was sent to you by email, please make sure you open it in the same browser
14where you requested it.{% endblocktrans %}</p>
15{% endblock %}13{% endblock %}
1614
1715
=== modified file 'identityprovider/templates/registration/confirm_new_account.html'
--- identityprovider/templates/registration/confirm_new_account.html 2010-04-21 15:29:24 +0000
+++ identityprovider/templates/registration/confirm_new_account.html 2010-05-13 15:20:43 +0000
@@ -12,7 +12,7 @@
1212
13{% block "content" %}13{% block "content" %}
14<div id="auth">14<div id="auth">
15 <h1 class="main">{% blocktrans %}Complete your {{ sso_brand_name }} registration{% endblocktrans %}</h1>15 <h1 class="main">{{ brand.complete_reg }}</h1>
1616
17 <form id="login-form" class="longfields" action="+newaccount" method="post">17 <form id="login-form" class="longfields" action="+newaccount" method="post">
18 <p class="input-row{% if form.displayname.errors %} haserrors{% endif %}">18 <p class="input-row{% if form.displayname.errors %} haserrors{% endif %}">
@@ -27,8 +27,7 @@
27 <span class="error">{{ form.password.errors|first }}</span>27 <span class="error">{{ form.password.errors|first }}</span>
28 {% else %}28 {% else %}
29 <span id="pwhint">29 <span id="pwhint">
30 {% blocktrans %}Password must be at least 8 characters long,30 {% blocktrans %}Password must be at least 8 characters long, and must contain at least one number and an upper case letter.{% endblocktrans %}
31and must contain at least one number and an upper case letter.{% endblocktrans %}
32 </span>31 </span>
33 {% endif %}32 {% endif %}
34 </p>33 </p>
3534
=== modified file 'identityprovider/templates/registration/email_sent.html'
--- identityprovider/templates/registration/email_sent.html 2010-04-21 15:29:24 +0000
+++ identityprovider/templates/registration/email_sent.html 2010-05-13 15:20:43 +0000
@@ -25,22 +25,14 @@
25</div>25</div>
26<div id="col2">26<div id="col2">
27 <h2 class="main">{% trans "Haven&rsquo;t received it?" %}</h2>27 <h2 class="main">{% trans "Haven&rsquo;t received it?" %}</h2>
28 <p>{% blocktrans %}If you don&rsquo;t receive the message28 <p>{% blocktrans %}If you don&rsquo;t receive the message within a few minutes, it might be because:{% endblocktrans %}</p>
29within a few minutes, it might be because:{% endblocktrans %}</p>29 <p>{% blocktrans %}Your mail provider uses &ldquo;greylisting&rdquo; to reduce spam. If so, you&rsquo;ll need to wait an hour or two for the message to arrive.{% endblocktrans %}</p>
30 <p>{% blocktrans %}Your mail provider uses &ldquo;greylisting&rdquo; to30 <p>{% blocktrans %}Your mail provider mistakenly blocks messages from this site. Try signing up using a service like <a href="http://gmail.com/">Gmail</a> or <a href="http://mail.yahoo.com/">Yahoo Mail</a>. If that works, complain to your usual mail provider.{% endblocktrans %}
31reduce spam. If so, you&rsquo;ll need to wait an hour or two for the
32message to arrive.{% endblocktrans %}</p>
33 <p>{% blocktrans %}Your mail provider mistakenly blocks messages from
34this site. Try signing up using a service like
35<a href="http://gmail.com/">Gmail</a> or
36<a href="http://mail.yahoo.com/">Yahoo Mail</a>.
37If that works, complain to your usual mail provider.{% endblocktrans %}
38 </p>31 </p>
39 {% if email_notreceived_extra %}32 {% if email_notreceived_extra %}
40 <p>{{ email_notreceived_extra|safe }}</p>33 <p>{{ email_notreceived_extra|safe }}</p>
41 {% endif %}34 {% endif %}
42 <p>{% blocktrans %}If neither of those work, the Login Service might be35 <p>{% blocktrans %}If neither of those work, our service might be having a problem.{% endblocktrans %}
43having a problem.{% endblocktrans %}
44 </p>36 </p>
45</div>37</div>
46{% if user.is_authenticated %}</div>{% endif %}38{% if user.is_authenticated %}</div>{% endif %}
4739
=== modified file 'identityprovider/templates/registration/forgot_password.html'
--- identityprovider/templates/registration/forgot_password.html 2010-04-21 15:29:24 +0000
+++ identityprovider/templates/registration/forgot_password.html 2010-05-13 15:20:43 +0000
@@ -8,10 +8,9 @@
88
9{% block "content" %}9{% block "content" %}
10<div id="auth">10<div id="auth">
11 <h1 class="main">{% blocktrans %}Reset your {{ sso_brand_name }} password{% endblocktrans %}</h1>11 <h1 class="main">{{ brand.reset_password }}</h1>
1212
13 <p>{% blocktrans %}Enter your email address, and we will send you13 <p>{% blocktrans %}Enter your email address, and we will send you instructions on how to reset your password.{% endblocktrans %}</p>
14instructions on how to reset your password.{% endblocktrans %}</p>
1514
16 <form action="+forgot_password" method="post">15 <form action="+forgot_password" method="post">
17 <p class="input-row{% if form.email.errors %} haserrors{% endif %}">16 <p class="input-row{% if form.email.errors %} haserrors{% endif %}">
1817
=== modified file 'identityprovider/templates/registration/logout_to_confirm.html'
--- identityprovider/templates/registration/logout_to_confirm.html 2010-05-11 13:09:30 +0000
+++ identityprovider/templates/registration/logout_to_confirm.html 2010-05-13 15:20:43 +0000
@@ -9,7 +9,6 @@
9{% block "content" %}9{% block "content" %}
10 <h1 class="main">{% trans "Can not confirm token while logged in" %}</h1>10 <h1 class="main">{% trans "Can not confirm token while logged in" %}</h1>
1111
12 <p>{% blocktrans %}You can not confirm this token because you are logged in as12 <p>{% blocktrans %}You can not confirm this token because you are logged in as a different user. Please log out and try again.{% endblocktrans %}</p>
13 a different user. Please log out and try again.{% endblocktrans %}</p>
14{% endblock %}13{% endblock %}
1514
1615
=== modified file 'identityprovider/templates/registration/new_account.html'
--- identityprovider/templates/registration/new_account.html 2010-04-21 15:29:24 +0000
+++ identityprovider/templates/registration/new_account.html 2010-05-13 15:20:43 +0000
@@ -12,8 +12,7 @@
12 {{ brand.create_account }}12 {{ brand.create_account }}
13 </h2>13 </h2>
1414
15 <p>{% blocktrans %}Enter your email address, and we will send you15 <p>{% blocktrans %}Enter your email address, and we will send you instructions on how to create your account.{% endblocktrans %}</p>
16instructions on how to create your account.{% endblocktrans %}</p>
1716
18 <form action="+new_account" method="post">17 <form action="+new_account" method="post">
19 <p class="input-row{% if form.email.errors %} haserrors{% endif %}">18 <p class="input-row{% if form.email.errors %} haserrors{% endif %}">
2019
=== modified file 'identityprovider/templates/registration/reset_password.html'
--- identityprovider/templates/registration/reset_password.html 2010-04-21 15:29:24 +0000
+++ identityprovider/templates/registration/reset_password.html 2010-05-13 15:20:43 +0000
@@ -13,7 +13,7 @@
13{% block "content" %}13{% block "content" %}
14 <div id="box">14 <div id="box">
15 <div id="auth">15 <div id="auth">
16 <h2 class="main">{% blocktrans %}Reset your {{ sso_brand_name }} password{% endblocktrans %}</h2>16 <h2 class="main">{{ brand.reset_password }}</h2>
1717
18 <form id="login-form" class="longfields" action="+resetpassword" method="post">18 <form id="login-form" class="longfields" action="+resetpassword" method="post">
19 <p class="input-row{% if form.password.errors or form.non_field_errors %} haserrors{% endif %}">19 <p class="input-row{% if form.password.errors or form.non_field_errors %} haserrors{% endif %}">
@@ -23,8 +23,7 @@
23 <span class="error">{{ form.password.errors|first }}</span>23 <span class="error">{{ form.password.errors|first }}</span>
24 {% else %}24 {% else %}
25 <span id="pwhint">25 <span id="pwhint">
26 {% blocktrans %}Password must be at least 8 characters26 {% blocktrans %}Password must be at least 8 characters long, and must contain at least one number and an upper case letter.{% endblocktrans %}
27long, and must contain at least one number and an upper case letter.{% endblocktrans %}
28 </span>27 </span>
29 {% endif %}28 {% endif %}
30 </p>29 </p>
3130
=== modified file 'identityprovider/templates/ubuntu/base.html'
--- identityprovider/templates/ubuntu/base.html 2010-04-21 15:29:24 +0000
+++ identityprovider/templates/ubuntu/base.html 2010-05-13 15:20:43 +0000
@@ -18,9 +18,9 @@
18 <div id="header">18 <div id="header">
19 <div id="logo">19 <div id="logo">
20 <h1 id="title">20 <h1 id="title">
21 <a href="/">{%if sso_brand_name%}21 <a href="/">
22 {% blocktrans %}{{sso_brand_name}}{%endblocktrans%}22 {% blocktrans %}Ubuntu Single Sign On{% endblocktrans %}
23 {%endif%}</a></h1>23 </a></h1>
24 </div>24 </div>
25 </div>25 </div>
26 <div id="content">26 <div id="content">
@@ -29,12 +29,7 @@
29 {% endif %}29 {% endif %}
30 {% if readonly %}30 {% if readonly %}
31 <span class="warning">31 <span class="warning">
32 {% blocktrans %}32{% blocktrans %}We are currently in read-only mode. That means that at the moment you can't create new accounts, update your personal information, or request password reminders.{% endblocktrans %}
33 We are currently in read-only mode. That means that
34 at the moment you can't create new accounts,
35 update your personal information, or
36 request password reminders.
37 {% endblocktrans %}
38 </ul>33 </ul>
39 </span>34 </span>
40 {% endif %}35 {% endif %}
@@ -51,12 +46,8 @@
51 </div>46 </div>
52 <div id="footer">47 <div id="footer">
53 <p>{% blocktrans %}&copy; 2009-2010 Canonical Ltd.<br />48 <p>{% blocktrans %}&copy; 2009-2010 Canonical Ltd.<br />
54 Ubuntu and Canonical are registered trademarks of Canonical49Ubuntu and Canonical are registered trademarks of Canonical Group Ltd.<br />
55 Group Ltd.<br />Please review our50Please review our <a href="http://ubuntu.com/legal">Terms of Service</a> as well as our <a href="http://ubuntu.com/legal#privacy">Privacy Policy</a>.{% endblocktrans %}</p>
56 <a href="http://ubuntu.com/legal">Terms of Service</a> as well
57 as our
58 <a href="http://ubuntu.com/legal#privacy">Privacy Policy</a>.
59 {% endblocktrans %}</p>
60 </div>51 </div>
61 </div>52 </div>
62 </body>53 </body>
6354
=== renamed directory 'identityprovider/templates/email' => 'identityprovider/templates/ubuntu/email'
=== modified file 'identityprovider/templates/ubuntu/email/email-validation-token.txt'
--- identityprovider/templates/email/email-validation-token.txt 2010-04-21 15:29:24 +0000
+++ identityprovider/templates/ubuntu/email/email-validation-token.txt 2010-05-13 15:20:43 +0000
@@ -1,19 +1,14 @@
1{% load i18n %}1{% load i18n %}
2{% blocktrans %}Hello2{% blocktrans %}Hello
33
4We received a request to validate the email address4We received a request to validate the email address {{ toaddress }} for use in the Ubuntu Single Sign On service.
5{{ toaddress }} for use in the {{ sso_brand_name }} service.
65
7If you made this request, please copy and paste the token6If you made this request, please copy and paste the token below into the desktop application to complete the process to add {{ toaddress }} to your existing Ubuntu Single Sign On service account.
8below into the desktop application to complete the process
9to add {{ toaddress }} to your existing {{ sso_brand_name }}
10service account.
117
12 {{ token }}8 {{ token }}
139
14If you did not make this request, please ignore this message or report10If you did not make this request, please ignore this message or report it as a possible attempt at a security attack on your data.
15it as a possible attempt at a security attack on your data.
1611
17Thank you,12Thank you,
1813
19The {{ sso_brand_name }} service team{% endblocktrans %}14The Ubuntu Single Sign On team{% endblocktrans %}
2015
=== modified file 'identityprovider/templates/ubuntu/email/forgottenpassword.txt'
--- identityprovider/templates/email/forgottenpassword.txt 2010-04-21 15:29:24 +0000
+++ identityprovider/templates/ubuntu/email/forgottenpassword.txt 2010-05-13 15:20:43 +0000
@@ -1,16 +1,14 @@
1{% load i18n %}1{% load i18n %}
2{% blocktrans %}Hello2{% blocktrans %}Hello
33
4You have requested a new password for your {{ sso_brand_name }} account.4You have requested a new password for your Ubuntu Single Sign On account.
55
6To change your password:6To change your password:
77
8 {{ token_url }}8 {{ token_url }}
99
10If you don't know what this is about, then someone else has entered your10If you don't know what this is about, then someone else has entered your email address at the Ubuntu Single Sign On service. Sorry about that. You don't need to do anything further, just delete this message.
11email address at the {{ sso_brand_name }} service. Sorry about that.
12You don't need to do anything further, just delete this message.
1311
14Regards,12Regards,
1513
16The {{ sso_brand_name }} team{% endblocktrans %}14The Ubuntu Single Sign On team{% endblocktrans %}
1715
=== modified file 'identityprovider/templates/ubuntu/email/impersonate-warning.txt'
--- identityprovider/templates/email/impersonate-warning.txt 2010-04-21 15:29:24 +0000
+++ identityprovider/templates/ubuntu/email/impersonate-warning.txt 2010-05-13 15:20:43 +0000
@@ -1,14 +1,12 @@
1{% load i18n %}1{% load i18n %}
2{% blocktrans %}We've received a request to create a new account with your2{% blocktrans %}We've received a request to create a new account with your email address.
3email address.
43
5If this was you, perhaps you've forgotten your password?4If this was you, perhaps you've forgotten your password?
65
7 {{ forgotten_password_url }}6 {{ forgotten_password_url }}
87
9If not, someone may be trying to impersonate you. If you get more requests8If not, someone may be trying to impersonate you. If you get more requests like this, please let us know.
10like this, please let us know.
119
12Regards,10Regards,
1311
14The {{ sso_brand_name }} team{% endblocktrans %}12The Ubuntu Single Sign On team{% endblocktrans %}
1513
=== modified file 'identityprovider/templates/ubuntu/email/newuser.txt'
--- identityprovider/templates/email/newuser.txt 2010-04-21 15:29:24 +0000
+++ identityprovider/templates/ubuntu/email/newuser.txt 2010-05-13 15:20:43 +0000
@@ -1,17 +1,14 @@
1{% load i18n %}1{% load i18n %}
2{% blocktrans %}Hello2{% blocktrans %}Hello
33
4Thank you for registering with the {{ sso_brand_name }} service.4Thank you for registering with the Ubuntu Single Sign On service.
55
6To complete your registration:6To complete your registration:
77
8 {{ token_url }}8 {{ token_url }}
99
10If you don't know what this is about, then someone has probably entered your10If you don't know what this is about, then someone has probably entered your email address by mistake at the Ubuntu Single Sign On service web site. Sorry about that. You don't need to do anything further, just delete this message.
11email address by mistake at the {{ sso_brand_name }} service web site.
12Sorry about that. You don't need to do anything further, just delete this
13message.
1411
15Regards,12Regards,
1613
17The {{ sso_brand_name }} service team{% endblocktrans %}14The Ubuntu Single Sign On team{% endblocktrans %}
1815
=== modified file 'identityprovider/templates/ubuntu/email/validate-email.txt'
--- identityprovider/templates/email/validate-email.txt 2010-04-21 15:29:24 +0000
+++ identityprovider/templates/ubuntu/email/validate-email.txt 2010-05-13 15:20:43 +0000
@@ -1,13 +1,9 @@
1{% load i18n %}1{% load i18n %}
2{% blocktrans %}Hello2{% blocktrans %}Hello
33
4We received a request from {{ requester }} using email address4We received a request from {{ requester }} using email address {{ requester_email }}, trying to validate the email address {{ toaddress }} for use in the Ubuntu Single Sign On service.
5{{ requester_email }}, trying to validate the email address
6{{ toaddress }} for use in the {{ sso_brand_name }} service.
75
8If you made this request, please click on the link below6If you made this request, please click on the link below and complete the process to add {{ toaddress }} to your existing Ubuntu Single Sign On service account.
9and complete the process to add {{ toaddress }}
10to your existing {{ sso_brand_name }} service account.
117
12 {{ token_url }}8 {{ token_url }}
139
@@ -19,4 +15,4 @@
1915
20Thank you,16Thank you,
2117
22The {{ sso_brand_name }} service team{% endblocktrans %}18The Ubuntu Single Sign On team{% endblocktrans %}
2319
=== modified file 'identityprovider/templates/ubuntu/registration/login.html'
--- identityprovider/templates/ubuntu/registration/login.html 2010-04-21 15:29:24 +0000
+++ identityprovider/templates/ubuntu/registration/login.html 2010-05-13 15:20:43 +0000
@@ -15,19 +15,17 @@
15 {% if rpconfig %}15 {% if rpconfig %}
16 {% include "widgets/trusted_rp.html" %}16 {% include "widgets/trusted_rp.html" %}
17 {% else %}17 {% else %}
18 <h2 class="main">{% blocktrans %}Log in to {{ sso_brand_name }}{% endblocktrans %}</h2>18 <h2 class="main">{% blocktrans %}Log in to Ubuntu Single Sign On{% endblocktrans %}</h2>
19 {% endif %}19 {% endif %}
2020
21 <div id="auth-text">21 <div id="auth-text">
22 {% if token and rpconfig %}22 {% if token and rpconfig %}
23 <p>23 <p>
24 {% blocktrans with rpconfig.displayname as rpconfigname %}You are here because {{ rpconfigname }} uses24 {% blocktrans with rpconfig.displayname as rpconfigname %}You are here because {{ rpconfigname }} uses the Ubuntu Single Sign On service.{% endblocktrans %}
25the {{ sso_brand_name }} service.{% endblocktrans %}
26 </p>25 </p>
27 {% endif %}26 {% endif %}
28 <p>27 <p>
29 {% blocktrans %}Please note that if you've registered with Launchpad you28 {% blocktrans %}Please note that if you've registered with Launchpad you can use your existing Launchpad credentials to log in.{% endblocktrans %}
30can use your existing Launchpad credentials to log in.{% endblocktrans %}
31 </p>29 </p>
32 </div>30 </div>
3331
@@ -64,8 +62,7 @@
64{% block rightcol %}62{% block rightcol %}
65 <h2 class="main">{% trans "Are you new?" %}</h2>63 <h2 class="main">{% trans "Are you new?" %}</h2>
66 <p>64 <p>
67 {% blocktrans %}This is a new service to provide a single, central login65 {% blocktrans %}This is a new service to provide a single, central login service for all Ubuntu-related sites.{% endblocktrans %}
68service for all Ubuntu-related sites.{% endblocktrans %}
69 </p>66 </p>
70 <p class="findoutmore">67 <p class="findoutmore">
71 <a href="/+description">{% trans "Find out more" %}</a>68 <a href="/+description">{% trans "Find out more" %}</a>
7269
=== modified file 'identityprovider/templates/widgets/recaptcha.html'
--- identityprovider/templates/widgets/recaptcha.html 2010-04-21 15:29:24 +0000
+++ identityprovider/templates/widgets/recaptcha.html 2010-05-13 15:20:43 +0000
@@ -21,9 +21,7 @@
21<div {% if captcha_error %}class='captchaError'{% endif %}>21<div {% if captcha_error %}class='captchaError'{% endif %}>
22{% ifequal captcha_error "&error=no-challenge" %}22{% ifequal captcha_error "&error=no-challenge" %}
23<p>23<p>
24{% blocktrans %}It appears that our captcha service was unable to load on this24{% blocktrans %}It appears that our captcha service was unable to load on this page. This may be caused by a plugin on your browser. Please correct this and try again. If the problem persists, please contact
25page. This may be caused by a plugin on your browser. Please correct this and
26try again. If the problem persists, please contact
27<a href="https://forms.canonical.com/sso-support/">Ubuntu SSO support</a>{% endblocktrans %}25<a href="https://forms.canonical.com/sso-support/">Ubuntu SSO support</a>{% endblocktrans %}
28</p>26</p>
29{% endifequal %}27{% endifequal %}
3028
=== modified file 'identityprovider/templates/widgets/unknown_rp.html'
--- identityprovider/templates/widgets/unknown_rp.html 2010-04-21 15:29:24 +0000
+++ identityprovider/templates/widgets/unknown_rp.html 2010-05-13 15:20:43 +0000
@@ -9,15 +9,11 @@
9 {% if not sane_trust_root %}9 {% if not sane_trust_root %}
10 <p class="warning message">10 <p class="warning message">
11 <strong>{% trans "Warning:" %}</strong>11 <strong>{% trans "Warning:" %}</strong>
12 {% blocktrans %}<em>{{ trust_root }}</em> does not look like12 {% blocktrans %}<em>{{ trust_root }}</em> does not look like a trustworthy URL.{% endblocktrans %}
13a trustworthy URL.{% endblocktrans %}
14 </p>13 </p>
15 {% endif %}14 {% endif %}
1615
17 <p class="grey">{% blocktrans %}You have used your Single16 <p class="grey">{{ brand.unknown_rp }}</p>
18Sign On ID to access a site which is <em>not</em> recognised by
19{{sso_brand_name}}:{% endblocktrans %}
20 </p>
2117
22 <div>18 <div>
23 <a href="{{ trust_root }}">{{ trust_root }}</a>19 <a href="{{ trust_root }}">{{ trust_root }}</a>
2420
=== modified file 'identityprovider/tests/test_static.py'
--- identityprovider/tests/test_static.py 2010-04-21 15:29:24 +0000
+++ identityprovider/tests/test_static.py 2010-05-13 15:20:43 +0000
@@ -40,13 +40,13 @@
40 req = DummyRequest()40 req = DummyRequest()
41 context = RequestContext(req, {'trust_root': 'foo', })41 context = RequestContext(req, {'trust_root': 'foo', })
42 response = render_to_response('decide.html', context)42 response = render_to_response('decide.html', context)
43 self.assertContains(response, 'recognised by\nUbuntu')43 self.assertContains(response, 'recognised by Ubuntu')
4444
45 self.set_branding('Launchpad')45 self.set_branding('Launchpad')
46 req = DummyRequest()46 req = DummyRequest()
47 context = RequestContext(req, {'trust_root': 'foo', })47 context = RequestContext(req, {'trust_root': 'foo', })
48 response = render_to_response('decide.html', context)48 response = render_to_response('decide.html', context)
49 self.assertContains(response, 'recognised by\nLaunchpad')49 self.assertContains(response, 'recognised by Launchpad')
5050
5151
52class StaticPageTestCase(SQLCachedTestCase):52class StaticPageTestCase(SQLCachedTestCase):
5353
=== modified file 'identityprovider/views/ui.py'
--- identityprovider/views/ui.py 2010-05-12 16:24:02 +0000
+++ identityprovider/views/ui.py 2010-05-13 15:20:43 +0000
@@ -139,10 +139,10 @@
139 replacements = {139 replacements = {
140 'forgotten_password_url':140 'forgotten_password_url':
141 urljoin(settings.SSO_ROOT_URL, '+forgot_password'),141 urljoin(settings.SSO_ROOT_URL, '+forgot_password'),
142 'sso_brand_name': current_brand.name,
143 }142 }
144 message = render_to_string(143 message = render_to_string(
145 'email/impersonate-warning.txt', replacements)144 '%s/email/impersonate-warning.txt' %
145 current_brand.template_dir, replacements)
146 subject = current_brand.name + ": " + _("Warning")146 subject = current_brand.name + ": " + _("Warning")
147 from_address = format_address(147 from_address = format_address(
148 settings.NOREPLY_FROM_ADDRESS, current_brand.name)148 settings.NOREPLY_FROM_ADDRESS, current_brand.name)