Merge lp:~canonical-isd-hackers/canonical-identity-provider/fix-translatable-strings into lp:canonical-identity-provider/release
- fix-translatable-strings
- Merge into trunk
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 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Łukasz Czyżykowski (community) | Approve | ||
Review via email: mp+25237@code.launchpad.net |
Commit message
Description of the change
This branch hopes to make translators's life easier.
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'identityprovider/branding.py' |
2 | --- identityprovider/branding.py 2010-05-12 17:15:50 +0000 |
3 | +++ identityprovider/branding.py 2010-05-13 15:20:43 +0000 |
4 | @@ -15,6 +15,16 @@ |
5 | server_info = _('This is the Launchpad login service, built on OpenID. ' |
6 | 'The service enables you to use your Launchpad account ' |
7 | 'to log into OpenID-enabled sites around the Internet.') |
8 | + unknown_rp = _('You have used your Single Sign On ID to access a site ' |
9 | + 'which is <em>not</em> recognised by Launchpad Login ' |
10 | + 'Service:') |
11 | + complete_reg = _('Complete your Launchpad Login Service registration') |
12 | + reset_password = _('Reset your Launchpad Login Service password') |
13 | + not_found_error = _('There\'s no page with this address in the Launchpad ' |
14 | + 'Login Service. Check that you entered the address ' |
15 | + 'correctly and try again.') |
16 | + oops_error = _('Sorry, something just went wrong in Launchpad Login ' |
17 | + 'Service.') |
18 | |
19 | |
20 | class Ubuntu(object): |
21 | @@ -27,5 +37,15 @@ |
22 | server_info = _('This is the Ubuntu SSO service, built on OpenID. The ' |
23 | 'service enables you to use your Ubuntu SSO account to ' |
24 | 'log into various sites run by Canonical and Ubuntu.') |
25 | + unknown_rp = _('You have used your Single Sign On ID to access a site ' |
26 | + 'which is <em>not</em> recognised by Ubuntu Single Sign ' |
27 | + 'On:') |
28 | + complete_reg = _('Complete your Ubuntu Single Sign On registration') |
29 | + reset_password = _('Reset your Ubuntu Single Sign On password') |
30 | + not_found_error = _('There\'s no page with this address in the Ubuntu ' |
31 | + 'Single Sign On service. Check that you entered the ' |
32 | + 'address correctly and try again.') |
33 | + oops_error = _('Sorry, something just went wrong in Ubuntu Single Sign ' |
34 | + 'On.') |
35 | |
36 | current_brand = globals()[settings.BRAND]() |
37 | |
38 | === modified file 'identityprovider/context_processors.py' |
39 | --- identityprovider/context_processors.py 2010-04-21 15:29:24 +0000 |
40 | +++ identityprovider/context_processors.py 2010-05-13 15:20:43 +0000 |
41 | @@ -22,6 +22,5 @@ |
42 | def branding(request): |
43 | return { |
44 | 'template_dir': current_brand.template_dir, |
45 | - 'sso_brand_name': u'%s' % current_brand.name, |
46 | 'brand': current_brand, |
47 | } |
48 | |
49 | === modified file 'identityprovider/models/authtoken.py' |
50 | --- identityprovider/models/authtoken.py 2010-04-21 15:29:24 +0000 |
51 | +++ identityprovider/models/authtoken.py 2010-05-13 15:20:43 +0000 |
52 | @@ -78,9 +78,9 @@ |
53 | 'toaddress': self.email, |
54 | 'token_url': self.get_absolute_url(), |
55 | 'support_form_url': settings.SUPPORT_FORM_URL, |
56 | - 'sso_brand_name': unicode(current_brand.name), |
57 | } |
58 | - message = render_to_string('email/validate-email.txt', replacements) |
59 | + message = render_to_string('%s/email/validate-email.txt' % |
60 | + current_brand.template_dir, replacements) |
61 | subject = u'%s' % current_brand.name + ": Validate your email address" |
62 | self._send_email(u"%s Email Validator" % current_brand.name, subject, |
63 | message) |
64 | @@ -89,10 +89,9 @@ |
65 | replacements = { |
66 | 'token': self.token, |
67 | 'toaddress': self.email, |
68 | - 'sso_brand_name': unicode(current_brand.name), |
69 | } |
70 | - message = render_to_string('email/email-validation-token.txt', |
71 | - replacements) |
72 | + message = render_to_string('%s/email/email-validation-token.txt' % |
73 | + current_brand.template_dir, replacements) |
74 | subject = u"%s: Validate your email address" % current_brand.name |
75 | self._send_email(u"%s Email Validator" % current_brand.name, subject, |
76 | message) |
77 | @@ -100,20 +99,20 @@ |
78 | def sendPasswordResetEmail(self): |
79 | replacements = { |
80 | 'token_url': self.get_absolute_url(), |
81 | - 'sso_brand_name': unicode(current_brand.name) |
82 | } |
83 | from_name = unicode(current_brand.name) |
84 | - message = render_to_string('email/forgottenpassword.txt', replacements) |
85 | + message = render_to_string('%s/email/forgottenpassword.txt' % |
86 | + current_brand.template_dir, replacements) |
87 | subject = u"%s: Forgotten Password" % current_brand.name |
88 | self._send_email(from_name, subject, message) |
89 | |
90 | def sendNewUserEmail(self): |
91 | replacements = { |
92 | 'token_url': self.get_absolute_url(), |
93 | - 'sso_brand_name': unicode(current_brand.name) |
94 | } |
95 | from_name = unicode(current_brand.name) |
96 | - message = render_to_string('email/newuser.txt', replacements) |
97 | + message = render_to_string('%s/email/newuser.txt' % |
98 | + current_brand.template_dir, replacements) |
99 | subject = u"%s: Finish your registration" % current_brand.name |
100 | self._send_email(from_name, subject, message) |
101 | |
102 | |
103 | === modified file 'identityprovider/templates/404.html' |
104 | --- identityprovider/templates/404.html 2010-04-21 15:29:24 +0000 |
105 | +++ identityprovider/templates/404.html 2010-05-13 15:20:43 +0000 |
106 | @@ -12,11 +12,7 @@ |
107 | <div id="box"> |
108 | <h1 class="main">Lost something?</h1> |
109 | <div> |
110 | - <p>{% blocktrans %}There's no page with this address in the |
111 | -{{ sso_brand_name }} service. |
112 | - |
113 | -Check that you entered the address correctly and try again.{% endblocktrans %} |
114 | - </p> |
115 | + <p>{{ brand.not_found }}</p> |
116 | <p> |
117 | {% blocktrans %}(Error <abbr>ID</abbr>: {{oopsid}}){% endblocktrans %} |
118 | </p> |
119 | |
120 | === modified file 'identityprovider/templates/500.html' |
121 | --- identityprovider/templates/500.html 2010-04-21 15:29:24 +0000 |
122 | +++ identityprovider/templates/500.html 2010-05-13 15:20:43 +0000 |
123 | @@ -13,7 +13,7 @@ |
124 | <h1 class="main">Oops!</h1> |
125 | <div> |
126 | <p> |
127 | - {% blocktrans %}Sorry, something just went wrong in {{ sso_brand_name }}.{% endblocktrans %} |
128 | + {{ brand.oops_error }} |
129 | </p> |
130 | <p> |
131 | {% blocktrans %}We’ve recorded what happened, |
132 | |
133 | === modified file 'identityprovider/templates/account/confirm_new_email.html' |
134 | --- identityprovider/templates/account/confirm_new_email.html 2010-04-21 15:29:24 +0000 |
135 | +++ identityprovider/templates/account/confirm_new_email.html 2010-05-13 15:20:43 +0000 |
136 | @@ -11,8 +11,7 @@ |
137 | <h2 class="main">{% blocktrans %}Validate {{ email }}?{% endblocktrans %}</h2> |
138 | |
139 | <div class="info"> |
140 | - <p>{% blocktrans %}Are you sure you want to confirm and validate this |
141 | - email address? {% endblocktrans %}</p> |
142 | + <p>{% blocktrans %}Are you sure you want to confirm and validate this email address?{% endblocktrans %}</p> |
143 | </div> |
144 | |
145 | <div class="actions"> |
146 | |
147 | === modified file 'identityprovider/templates/account/delete_email.html' |
148 | --- identityprovider/templates/account/delete_email.html 2010-04-21 15:29:24 +0000 |
149 | +++ identityprovider/templates/account/delete_email.html 2010-05-13 15:20:43 +0000 |
150 | @@ -13,8 +13,7 @@ |
151 | <h2 class="main">{% blocktrans %}Remove {{ email }}?{% endblocktrans %}</h2> |
152 | |
153 | <div class="info"> |
154 | - <p>{% blocktrans %}Are you sure you want to remove this unverified email |
155 | -address?{% endblocktrans %}</p> |
156 | + <p>{% blocktrans %}Are you sure you want to remove this unverified email address?{% endblocktrans %}</p> |
157 | </div> |
158 | |
159 | <div class="actions"> |
160 | |
161 | === modified file 'identityprovider/templates/account/edit.html' |
162 | --- identityprovider/templates/account/edit.html 2010-04-21 15:29:24 +0000 |
163 | +++ identityprovider/templates/account/edit.html 2010-05-13 15:20:43 +0000 |
164 | @@ -69,8 +69,7 @@ |
165 | <label class="formLabel tooltip" |
166 | for="id_preferred_email">{% trans "Preferred email" %} |
167 | <span class="description tooltip">? <span class="tooltip-content"> |
168 | - {% blocktrans %}This email address is passed on to other |
169 | -sites when requested as part of the login process.{% endblocktrans %} |
170 | + {% blocktrans %}This email address is passed on to other sites when requested as part of the login process.{% endblocktrans %} |
171 | </span> |
172 | <span class="tooltip-tail"> </span></span></label> |
173 | {{ form.preferred_email }} |
174 | @@ -122,8 +121,7 @@ |
175 | {% endif %} |
176 | {% if not form.newpassword.errors %} |
177 | <div id="pwhint"> |
178 | - {% blocktrans %}Password must be at least 8 characters long, |
179 | -and must contain at least one number and an upper case letter.{% endblocktrans %} |
180 | + {% blocktrans %}Password must be at least 8 characters long, and must contain at least one number and an upper case letter.{% endblocktrans %} |
181 | </div> |
182 | {% endif %} |
183 | {% if form.non_field_errors %} |
184 | |
185 | === modified file 'identityprovider/templates/account/new_email.html' |
186 | --- identityprovider/templates/account/new_email.html 2010-04-21 15:29:24 +0000 |
187 | +++ identityprovider/templates/account/new_email.html 2010-05-13 15:20:43 +0000 |
188 | @@ -10,8 +10,7 @@ |
189 | <div id="auth"> |
190 | <h2 class="main">{% trans "Add an email address to your account" %}</h2> |
191 | |
192 | - <p>{% blocktrans %}Enter your email address, and we will send you |
193 | -instructions on how to confirm your account.{% endblocktrans %}</p> |
194 | + <p>{% blocktrans %}Enter your email address, and we will send you instructions on how to confirm your account.{% endblocktrans %}</p> |
195 | |
196 | <form action="+new-email" method="post"> |
197 | <p class="input-row{% if form.newemail.errors %} haserrors{% endif %}"> |
198 | |
199 | === modified file 'identityprovider/templates/admin/readonly_confirm.html' |
200 | --- identityprovider/templates/admin/readonly_confirm.html 2010-04-21 15:29:24 +0000 |
201 | +++ identityprovider/templates/admin/readonly_confirm.html 2010-05-13 15:20:43 +0000 |
202 | @@ -23,16 +23,14 @@ |
203 | {% blocktrans %}You're not operating on all appservers{% endblocktrans %} |
204 | </p> |
205 | <p> |
206 | - {% blocktrans %}Changing readonly mode on a single application server can |
207 | -lead to inconsistent states and unexpected behaviour.{% endblocktrans %} |
208 | + {% blocktrans %}Changing readonly mode on a single application server can lead to inconsistent states and unexpected behaviour.{% endblocktrans %} |
209 | </p> |
210 | </div> |
211 | {% else %} |
212 | {% ifequal action "clear" %} |
213 | <div class="system-message"> |
214 | <p class="system-message-title"> |
215 | - {% blocktrans %}Make sure the master database connection is enabled on all |
216 | -app servers <b>before</b> leaving readonly mode!{% endblocktrans %} |
217 | + {% blocktrans %}Make sure the master database connection is enabled on all app servers <b>before</b> leaving readonly mode!{% endblocktrans %} |
218 | </p> |
219 | </div> |
220 | {% endifequal %} |
221 | @@ -45,29 +43,23 @@ |
222 | <b>{{ appserver }}</b>.{% endblocktrans %} |
223 | {% else %} |
224 | {% blocktrans %}You are about to enable readonly mode globally.{% endblocktrans %}</p><p> |
225 | - {% blocktrans %}All appservers will be passed to read-only mode if |
226 | -you confirm.{% endblocktrans %} |
227 | + {% blocktrans %}All appservers will be passed to read-only mode if you confirm.{% endblocktrans %} |
228 | {% endif %} |
229 | {% else %} |
230 | {% ifequal action "clear" %} |
231 | {% if appserver %} |
232 | - {% blocktrans %}You are about to clear readonly mode on appserver |
233 | -<b>{{ appserver }}</b>.{% endblocktrans %}</p><p> |
234 | - {% blocktrans %}If you confirm, <b>{{ appserver }}</b> will attempt |
235 | -to resume normal operation with its master database connection.{% endblocktrans %}</p> |
236 | + {% blocktrans %}You are about to clear readonly mode on appserver <b>{{ appserver }}</b>.{% endblocktrans %}</p><p> |
237 | + {% blocktrans %}If you confirm, <b>{{ appserver }}</b> will attempt to resume normal operation with its master database connection.{% endblocktrans %}</p> |
238 | {% else %} |
239 | {% blocktrans %}You are about to clear readonly mode globally.{% endblocktrans %}</p><p> |
240 | - {% blocktrans %}If you confirm, all appservers will attempt to |
241 | -resume normal operation.{% endblocktrans %} |
242 | + {% blocktrans %}If you confirm, all appservers will attempt to resume normal operation.{% endblocktrans %} |
243 | {% endif %} |
244 | {% else %} |
245 | {% ifequal action "enable" %} |
246 | - {% blocktrans %}You are about to enable the <b>{{ conn }}</b> database connection on appserver |
247 | -<b>{{ appserver }}</b>.{% endblocktrans %} |
248 | + {% blocktrans %}You are about to enable the <b>{{ conn }}</b> database connection on appserver <b>{{ appserver }}</b>.{% endblocktrans %} |
249 | {% else %} |
250 | {% ifequal action "disable" %} |
251 | - {% blocktrans %}You are about to disable the <b>{{ conn }}</b> database connection on appserver |
252 | -<b>{{ appserver }}</b>.{% endblocktrans %} |
253 | + {% blocktrans %}You are about to disable the <b>{{ conn }}</b> database connection on appserver <b>{{ appserver }}</b>.{% endblocktrans %} |
254 | {% endifequal %} |
255 | {% endifequal %} |
256 | {% endifequal %} |
257 | |
258 | === modified file 'identityprovider/templates/launchpad/base.html' |
259 | --- identityprovider/templates/launchpad/base.html 2010-04-21 15:29:24 +0000 |
260 | +++ identityprovider/templates/launchpad/base.html 2010-05-13 15:20:43 +0000 |
261 | @@ -27,9 +27,7 @@ |
262 | <div id="maincontent"> |
263 | {% if readonly %} |
264 | <div class="message"> |
265 | - {% blocktrans %}We are currently in read-only mode. That |
266 | -means that at the moment you can't create new accounts, update your personal |
267 | -information, or request password reminders.{% endblocktrans %} |
268 | + {% 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 %} |
269 | </ul> |
270 | </div> |
271 | {% endif %} |
272 | |
273 | === added directory 'identityprovider/templates/launchpad/email' |
274 | === added file 'identityprovider/templates/launchpad/email/email-validation-token.txt' |
275 | --- identityprovider/templates/launchpad/email/email-validation-token.txt 1970-01-01 00:00:00 +0000 |
276 | +++ identityprovider/templates/launchpad/email/email-validation-token.txt 2010-05-13 15:20:43 +0000 |
277 | @@ -0,0 +1,14 @@ |
278 | +{% load i18n %} |
279 | +{% blocktrans %}Hello |
280 | + |
281 | +We received a request to validate the email address {{ toaddress }} for use in the Launchpad Login Service. |
282 | + |
283 | +If 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. |
284 | + |
285 | + {{ token }} |
286 | + |
287 | +If you did not make this request, please ignore this message or report it as a possible attempt at a security attack on your data. |
288 | + |
289 | +Thank you, |
290 | + |
291 | +The Launchpad Login Service team{% endblocktrans %} |
292 | |
293 | === added file 'identityprovider/templates/launchpad/email/forgottenpassword.txt' |
294 | --- identityprovider/templates/launchpad/email/forgottenpassword.txt 1970-01-01 00:00:00 +0000 |
295 | +++ identityprovider/templates/launchpad/email/forgottenpassword.txt 2010-05-13 15:20:43 +0000 |
296 | @@ -0,0 +1,14 @@ |
297 | +{% load i18n %} |
298 | +{% blocktrans %}Hello |
299 | + |
300 | +You have requested a new password for your Launchpad Login Service account. |
301 | + |
302 | +To change your password: |
303 | + |
304 | + {{ token_url }} |
305 | + |
306 | +If 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. |
307 | + |
308 | +Regards, |
309 | + |
310 | +The Launchpad Login Service team{% endblocktrans %} |
311 | |
312 | === added file 'identityprovider/templates/launchpad/email/impersonate-warning.txt' |
313 | --- identityprovider/templates/launchpad/email/impersonate-warning.txt 1970-01-01 00:00:00 +0000 |
314 | +++ identityprovider/templates/launchpad/email/impersonate-warning.txt 2010-05-13 15:20:43 +0000 |
315 | @@ -0,0 +1,12 @@ |
316 | +{% load i18n %} |
317 | +{% blocktrans %}We've received a request to create a new account with your email address. |
318 | + |
319 | +If this was you, perhaps you've forgotten your password? |
320 | + |
321 | + {{ forgotten_password_url }} |
322 | + |
323 | +If not, someone may be trying to impersonate you. If you get more requests like this, please let us know. |
324 | + |
325 | +Regards, |
326 | + |
327 | +The Launchpad Login Service team{% endblocktrans %} |
328 | |
329 | === added file 'identityprovider/templates/launchpad/email/newuser.txt' |
330 | --- identityprovider/templates/launchpad/email/newuser.txt 1970-01-01 00:00:00 +0000 |
331 | +++ identityprovider/templates/launchpad/email/newuser.txt 2010-05-13 15:20:43 +0000 |
332 | @@ -0,0 +1,14 @@ |
333 | +{% load i18n %} |
334 | +{% blocktrans %}Hello |
335 | + |
336 | +Thank you for registering with the Launchpad Login Service. |
337 | + |
338 | +To complete your registration: |
339 | + |
340 | + {{ token_url }} |
341 | + |
342 | +If 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. |
343 | + |
344 | +Regards, |
345 | + |
346 | +The Launchpad Login Service team{% endblocktrans %} |
347 | |
348 | === added file 'identityprovider/templates/launchpad/email/validate-email.txt' |
349 | --- identityprovider/templates/launchpad/email/validate-email.txt 1970-01-01 00:00:00 +0000 |
350 | +++ identityprovider/templates/launchpad/email/validate-email.txt 2010-05-13 15:20:43 +0000 |
351 | @@ -0,0 +1,18 @@ |
352 | +{% load i18n %} |
353 | +{% blocktrans %}Hello |
354 | + |
355 | +We received a request from {{ requester }} using email address {{ requester_email }}, trying to validate the email address {{ toaddress }} for use in the Launchpad Login Service. |
356 | + |
357 | +If you made this request, please click on the link below and complete the process to add {{ toaddress }} to your existing Launchpad Login Service account. |
358 | + |
359 | + {{ token_url }} |
360 | + |
361 | +If you did not make this request, please ignore this message or report it on |
362 | + |
363 | + {{ support_form_url }} |
364 | + |
365 | +as a possible attempt at a security attack on your data. |
366 | + |
367 | +Thank you, |
368 | + |
369 | +The Launchpad Login Service team{% endblocktrans %} |
370 | |
371 | === modified file 'identityprovider/templates/launchpad/registration/login.html' |
372 | --- identityprovider/templates/launchpad/registration/login.html 2010-04-21 15:29:24 +0000 |
373 | +++ identityprovider/templates/launchpad/registration/login.html 2010-05-13 15:20:43 +0000 |
374 | @@ -15,14 +15,13 @@ |
375 | {% if rpconfig %} |
376 | {% include "widgets/trusted_rp.html" %} |
377 | {% else %} |
378 | - <h2 class="main">{% blocktrans %}Log in to {{ sso_brand_name }}{% endblocktrans %}</h2> |
379 | + <h2 class="main">{% blocktrans %}Log in to Launchpad Login Service{% endblocktrans %}</h2> |
380 | {% endif %} |
381 | |
382 | <div id="auth-text"> |
383 | {% if token and rpconfig %} |
384 | <p> |
385 | - {% blocktrans with rpconfig.displayname as rpconfigname %}You are here because {{ rpconfigname }} uses |
386 | -the {{ sso_brand_name }} service.{% endblocktrans %} |
387 | + {% blocktrans with rpconfig.displayname as rpconfigname %}You are here because {{ rpconfigname }} uses the Launchpad Login Service.{% endblocktrans %} |
388 | </p> |
389 | {% endif %} |
390 | </div> |
391 | @@ -61,27 +60,19 @@ |
392 | <h2>{% trans "What is Launchpad and a Launchpad Account?" %}</h2> |
393 | |
394 | <p> |
395 | - {% blocktrans %}Launchpad is the central point where we gather all |
396 | -sorts of interactions around Ubuntu, Canonical and free software generally. |
397 | -You can use your Launchpad account to report bugs, to find or contribute |
398 | -translations, to find specs, to contribute code.{% endblocktrans %} |
399 | + {% 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 %} |
400 | </p> |
401 | </div> |
402 | {% endblock %} |
403 | |
404 | {% block rightcol %} |
405 | <p> |
406 | - {% blocktrans %}This is the Launchpad login service utilizing |
407 | -<a href="http://openid.net/">OpenID</a> technology. This site allows you to use |
408 | -<a href="https://launchpad.net/people/+me">your Launchpad account</a> to log |
409 | -into OpenID-enabled sites around the Internet.{% endblocktrans %} |
410 | - </p> |
411 | - <p> |
412 | - {% blocktrans %}To learn more about using this service, please review the |
413 | -<a href="https://help.launchpad.net/OpenID">instructions</a>.{% endblocktrans %} |
414 | - </p> |
415 | - <p> |
416 | - {% blocktrans %}If you want to change any of your account's details, you |
417 | -can do so by logging in using the form beside.{% endblocktrans %} |
418 | + {% 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 %} |
419 | + </p> |
420 | + <p> |
421 | + {% blocktrans %}To learn more about using this service, please review the <a href="https://help.launchpad.net/OpenID">instructions</a>.{% endblocktrans %} |
422 | + </p> |
423 | + <p> |
424 | + {% blocktrans %}If you want to change any of your account's details, you can do so by logging in using the form beside.{% endblocktrans %} |
425 | </p> |
426 | {% endblock %} |
427 | |
428 | === modified file 'identityprovider/templates/registration/bad_token.html' |
429 | --- identityprovider/templates/registration/bad_token.html 2010-04-21 15:29:24 +0000 |
430 | +++ identityprovider/templates/registration/bad_token.html 2010-05-13 15:20:43 +0000 |
431 | @@ -9,8 +9,6 @@ |
432 | {% block "content" %} |
433 | <h1 class="main">{% trans "Unauthorized token" %}</h1> |
434 | |
435 | -<p>{% blocktrans %}You are not authorized to use this token. If this URL |
436 | -was sent to you by email, please make sure you open it in the same browser |
437 | -where you requested it.{% endblocktrans %}</p> |
438 | +<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> |
439 | {% endblock %} |
440 | |
441 | |
442 | === modified file 'identityprovider/templates/registration/confirm_new_account.html' |
443 | --- identityprovider/templates/registration/confirm_new_account.html 2010-04-21 15:29:24 +0000 |
444 | +++ identityprovider/templates/registration/confirm_new_account.html 2010-05-13 15:20:43 +0000 |
445 | @@ -12,7 +12,7 @@ |
446 | |
447 | {% block "content" %} |
448 | <div id="auth"> |
449 | - <h1 class="main">{% blocktrans %}Complete your {{ sso_brand_name }} registration{% endblocktrans %}</h1> |
450 | + <h1 class="main">{{ brand.complete_reg }}</h1> |
451 | |
452 | <form id="login-form" class="longfields" action="+newaccount" method="post"> |
453 | <p class="input-row{% if form.displayname.errors %} haserrors{% endif %}"> |
454 | @@ -27,8 +27,7 @@ |
455 | <span class="error">{{ form.password.errors|first }}</span> |
456 | {% else %} |
457 | <span id="pwhint"> |
458 | - {% blocktrans %}Password must be at least 8 characters long, |
459 | -and must contain at least one number and an upper case letter.{% endblocktrans %} |
460 | + {% blocktrans %}Password must be at least 8 characters long, and must contain at least one number and an upper case letter.{% endblocktrans %} |
461 | </span> |
462 | {% endif %} |
463 | </p> |
464 | |
465 | === modified file 'identityprovider/templates/registration/email_sent.html' |
466 | --- identityprovider/templates/registration/email_sent.html 2010-04-21 15:29:24 +0000 |
467 | +++ identityprovider/templates/registration/email_sent.html 2010-05-13 15:20:43 +0000 |
468 | @@ -25,22 +25,14 @@ |
469 | </div> |
470 | <div id="col2"> |
471 | <h2 class="main">{% trans "Haven’t received it?" %}</h2> |
472 | - <p>{% blocktrans %}If you don’t receive the message |
473 | -within a few minutes, it might be because:{% endblocktrans %}</p> |
474 | - <p>{% blocktrans %}Your mail provider uses “greylisting” to |
475 | -reduce spam. If so, you’ll need to wait an hour or two for the |
476 | -message to arrive.{% endblocktrans %}</p> |
477 | - <p>{% blocktrans %}Your mail provider mistakenly blocks messages from |
478 | -this site. Try signing up using a service like |
479 | -<a href="http://gmail.com/">Gmail</a> or |
480 | -<a href="http://mail.yahoo.com/">Yahoo Mail</a>. |
481 | -If that works, complain to your usual mail provider.{% endblocktrans %} |
482 | + <p>{% blocktrans %}If you don’t receive the message within a few minutes, it might be because:{% endblocktrans %}</p> |
483 | + <p>{% blocktrans %}Your mail provider uses “greylisting” to reduce spam. If so, you’ll need to wait an hour or two for the message to arrive.{% endblocktrans %}</p> |
484 | + <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 %} |
485 | </p> |
486 | {% if email_notreceived_extra %} |
487 | <p>{{ email_notreceived_extra|safe }}</p> |
488 | {% endif %} |
489 | - <p>{% blocktrans %}If neither of those work, the Login Service might be |
490 | -having a problem.{% endblocktrans %} |
491 | + <p>{% blocktrans %}If neither of those work, our service might be having a problem.{% endblocktrans %} |
492 | </p> |
493 | </div> |
494 | {% if user.is_authenticated %}</div>{% endif %} |
495 | |
496 | === modified file 'identityprovider/templates/registration/forgot_password.html' |
497 | --- identityprovider/templates/registration/forgot_password.html 2010-04-21 15:29:24 +0000 |
498 | +++ identityprovider/templates/registration/forgot_password.html 2010-05-13 15:20:43 +0000 |
499 | @@ -8,10 +8,9 @@ |
500 | |
501 | {% block "content" %} |
502 | <div id="auth"> |
503 | - <h1 class="main">{% blocktrans %}Reset your {{ sso_brand_name }} password{% endblocktrans %}</h1> |
504 | + <h1 class="main">{{ brand.reset_password }}</h1> |
505 | |
506 | - <p>{% blocktrans %}Enter your email address, and we will send you |
507 | -instructions on how to reset your password.{% endblocktrans %}</p> |
508 | + <p>{% blocktrans %}Enter your email address, and we will send you instructions on how to reset your password.{% endblocktrans %}</p> |
509 | |
510 | <form action="+forgot_password" method="post"> |
511 | <p class="input-row{% if form.email.errors %} haserrors{% endif %}"> |
512 | |
513 | === modified file 'identityprovider/templates/registration/logout_to_confirm.html' |
514 | --- identityprovider/templates/registration/logout_to_confirm.html 2010-05-11 13:09:30 +0000 |
515 | +++ identityprovider/templates/registration/logout_to_confirm.html 2010-05-13 15:20:43 +0000 |
516 | @@ -9,7 +9,6 @@ |
517 | {% block "content" %} |
518 | <h1 class="main">{% trans "Can not confirm token while logged in" %}</h1> |
519 | |
520 | - <p>{% blocktrans %}You can not confirm this token because you are logged in as |
521 | - a different user. Please log out and try again.{% endblocktrans %}</p> |
522 | + <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> |
523 | {% endblock %} |
524 | |
525 | |
526 | === modified file 'identityprovider/templates/registration/new_account.html' |
527 | --- identityprovider/templates/registration/new_account.html 2010-04-21 15:29:24 +0000 |
528 | +++ identityprovider/templates/registration/new_account.html 2010-05-13 15:20:43 +0000 |
529 | @@ -12,8 +12,7 @@ |
530 | {{ brand.create_account }} |
531 | </h2> |
532 | |
533 | - <p>{% blocktrans %}Enter your email address, and we will send you |
534 | -instructions on how to create your account.{% endblocktrans %}</p> |
535 | + <p>{% blocktrans %}Enter your email address, and we will send you instructions on how to create your account.{% endblocktrans %}</p> |
536 | |
537 | <form action="+new_account" method="post"> |
538 | <p class="input-row{% if form.email.errors %} haserrors{% endif %}"> |
539 | |
540 | === modified file 'identityprovider/templates/registration/reset_password.html' |
541 | --- identityprovider/templates/registration/reset_password.html 2010-04-21 15:29:24 +0000 |
542 | +++ identityprovider/templates/registration/reset_password.html 2010-05-13 15:20:43 +0000 |
543 | @@ -13,7 +13,7 @@ |
544 | {% block "content" %} |
545 | <div id="box"> |
546 | <div id="auth"> |
547 | - <h2 class="main">{% blocktrans %}Reset your {{ sso_brand_name }} password{% endblocktrans %}</h2> |
548 | + <h2 class="main">{{ brand.reset_password }}</h2> |
549 | |
550 | <form id="login-form" class="longfields" action="+resetpassword" method="post"> |
551 | <p class="input-row{% if form.password.errors or form.non_field_errors %} haserrors{% endif %}"> |
552 | @@ -23,8 +23,7 @@ |
553 | <span class="error">{{ form.password.errors|first }}</span> |
554 | {% else %} |
555 | <span id="pwhint"> |
556 | - {% blocktrans %}Password must be at least 8 characters |
557 | -long, and must contain at least one number and an upper case letter.{% endblocktrans %} |
558 | + {% blocktrans %}Password must be at least 8 characters long, and must contain at least one number and an upper case letter.{% endblocktrans %} |
559 | </span> |
560 | {% endif %} |
561 | </p> |
562 | |
563 | === modified file 'identityprovider/templates/ubuntu/base.html' |
564 | --- identityprovider/templates/ubuntu/base.html 2010-04-21 15:29:24 +0000 |
565 | +++ identityprovider/templates/ubuntu/base.html 2010-05-13 15:20:43 +0000 |
566 | @@ -18,9 +18,9 @@ |
567 | <div id="header"> |
568 | <div id="logo"> |
569 | <h1 id="title"> |
570 | - <a href="/">{%if sso_brand_name%} |
571 | - {% blocktrans %}{{sso_brand_name}}{%endblocktrans%} |
572 | - {%endif%}</a></h1> |
573 | + <a href="/"> |
574 | + {% blocktrans %}Ubuntu Single Sign On{% endblocktrans %} |
575 | + </a></h1> |
576 | </div> |
577 | </div> |
578 | <div id="content"> |
579 | @@ -29,12 +29,7 @@ |
580 | {% endif %} |
581 | {% if readonly %} |
582 | <span class="warning"> |
583 | - {% blocktrans %} |
584 | - We are currently in read-only mode. That means that |
585 | - at the moment you can't create new accounts, |
586 | - update your personal information, or |
587 | - request password reminders. |
588 | - {% endblocktrans %} |
589 | +{% 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 %} |
590 | </ul> |
591 | </span> |
592 | {% endif %} |
593 | @@ -51,12 +46,8 @@ |
594 | </div> |
595 | <div id="footer"> |
596 | <p>{% blocktrans %}© 2009-2010 Canonical Ltd.<br /> |
597 | - Ubuntu and Canonical are registered trademarks of Canonical |
598 | - Group Ltd.<br />Please review our |
599 | - <a href="http://ubuntu.com/legal">Terms of Service</a> as well |
600 | - as our |
601 | - <a href="http://ubuntu.com/legal#privacy">Privacy Policy</a>. |
602 | - {% endblocktrans %}</p> |
603 | +Ubuntu and Canonical are registered trademarks of Canonical Group Ltd.<br /> |
604 | +Please 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> |
605 | </div> |
606 | </div> |
607 | </body> |
608 | |
609 | === renamed directory 'identityprovider/templates/email' => 'identityprovider/templates/ubuntu/email' |
610 | === modified file 'identityprovider/templates/ubuntu/email/email-validation-token.txt' |
611 | --- identityprovider/templates/email/email-validation-token.txt 2010-04-21 15:29:24 +0000 |
612 | +++ identityprovider/templates/ubuntu/email/email-validation-token.txt 2010-05-13 15:20:43 +0000 |
613 | @@ -1,19 +1,14 @@ |
614 | {% load i18n %} |
615 | {% blocktrans %}Hello |
616 | |
617 | -We received a request to validate the email address |
618 | -{{ toaddress }} for use in the {{ sso_brand_name }} service. |
619 | +We received a request to validate the email address {{ toaddress }} for use in the Ubuntu Single Sign On service. |
620 | |
621 | -If you made this request, please copy and paste the token |
622 | -below into the desktop application to complete the process |
623 | -to add {{ toaddress }} to your existing {{ sso_brand_name }} |
624 | -service account. |
625 | +If 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. |
626 | |
627 | {{ token }} |
628 | |
629 | -If you did not make this request, please ignore this message or report |
630 | -it as a possible attempt at a security attack on your data. |
631 | +If you did not make this request, please ignore this message or report it as a possible attempt at a security attack on your data. |
632 | |
633 | Thank you, |
634 | |
635 | -The {{ sso_brand_name }} service team{% endblocktrans %} |
636 | +The Ubuntu Single Sign On team{% endblocktrans %} |
637 | |
638 | === modified file 'identityprovider/templates/ubuntu/email/forgottenpassword.txt' |
639 | --- identityprovider/templates/email/forgottenpassword.txt 2010-04-21 15:29:24 +0000 |
640 | +++ identityprovider/templates/ubuntu/email/forgottenpassword.txt 2010-05-13 15:20:43 +0000 |
641 | @@ -1,16 +1,14 @@ |
642 | {% load i18n %} |
643 | {% blocktrans %}Hello |
644 | |
645 | -You have requested a new password for your {{ sso_brand_name }} account. |
646 | +You have requested a new password for your Ubuntu Single Sign On account. |
647 | |
648 | To change your password: |
649 | |
650 | {{ token_url }} |
651 | |
652 | -If you don't know what this is about, then someone else has entered your |
653 | -email address at the {{ sso_brand_name }} service. Sorry about that. |
654 | -You don't need to do anything further, just delete this message. |
655 | +If 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. |
656 | |
657 | Regards, |
658 | |
659 | -The {{ sso_brand_name }} team{% endblocktrans %} |
660 | +The Ubuntu Single Sign On team{% endblocktrans %} |
661 | |
662 | === modified file 'identityprovider/templates/ubuntu/email/impersonate-warning.txt' |
663 | --- identityprovider/templates/email/impersonate-warning.txt 2010-04-21 15:29:24 +0000 |
664 | +++ identityprovider/templates/ubuntu/email/impersonate-warning.txt 2010-05-13 15:20:43 +0000 |
665 | @@ -1,14 +1,12 @@ |
666 | {% load i18n %} |
667 | -{% blocktrans %}We've received a request to create a new account with your |
668 | -email address. |
669 | +{% blocktrans %}We've received a request to create a new account with your email address. |
670 | |
671 | If this was you, perhaps you've forgotten your password? |
672 | |
673 | {{ forgotten_password_url }} |
674 | |
675 | -If not, someone may be trying to impersonate you. If you get more requests |
676 | -like this, please let us know. |
677 | +If not, someone may be trying to impersonate you. If you get more requests like this, please let us know. |
678 | |
679 | Regards, |
680 | |
681 | -The {{ sso_brand_name }} team{% endblocktrans %} |
682 | +The Ubuntu Single Sign On team{% endblocktrans %} |
683 | |
684 | === modified file 'identityprovider/templates/ubuntu/email/newuser.txt' |
685 | --- identityprovider/templates/email/newuser.txt 2010-04-21 15:29:24 +0000 |
686 | +++ identityprovider/templates/ubuntu/email/newuser.txt 2010-05-13 15:20:43 +0000 |
687 | @@ -1,17 +1,14 @@ |
688 | {% load i18n %} |
689 | {% blocktrans %}Hello |
690 | |
691 | -Thank you for registering with the {{ sso_brand_name }} service. |
692 | +Thank you for registering with the Ubuntu Single Sign On service. |
693 | |
694 | To complete your registration: |
695 | |
696 | {{ token_url }} |
697 | |
698 | -If you don't know what this is about, then someone has probably entered your |
699 | -email address by mistake at the {{ sso_brand_name }} service web site. |
700 | -Sorry about that. You don't need to do anything further, just delete this |
701 | -message. |
702 | +If 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. |
703 | |
704 | Regards, |
705 | |
706 | -The {{ sso_brand_name }} service team{% endblocktrans %} |
707 | +The Ubuntu Single Sign On team{% endblocktrans %} |
708 | |
709 | === modified file 'identityprovider/templates/ubuntu/email/validate-email.txt' |
710 | --- identityprovider/templates/email/validate-email.txt 2010-04-21 15:29:24 +0000 |
711 | +++ identityprovider/templates/ubuntu/email/validate-email.txt 2010-05-13 15:20:43 +0000 |
712 | @@ -1,13 +1,9 @@ |
713 | {% load i18n %} |
714 | {% blocktrans %}Hello |
715 | |
716 | -We received a request from {{ requester }} using email address |
717 | -{{ requester_email }}, trying to validate the email address |
718 | -{{ toaddress }} for use in the {{ sso_brand_name }} service. |
719 | +We 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. |
720 | |
721 | -If you made this request, please click on the link below |
722 | -and complete the process to add {{ toaddress }} |
723 | -to your existing {{ sso_brand_name }} service account. |
724 | +If 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. |
725 | |
726 | {{ token_url }} |
727 | |
728 | @@ -19,4 +15,4 @@ |
729 | |
730 | Thank you, |
731 | |
732 | -The {{ sso_brand_name }} service team{% endblocktrans %} |
733 | +The Ubuntu Single Sign On team{% endblocktrans %} |
734 | |
735 | === modified file 'identityprovider/templates/ubuntu/registration/login.html' |
736 | --- identityprovider/templates/ubuntu/registration/login.html 2010-04-21 15:29:24 +0000 |
737 | +++ identityprovider/templates/ubuntu/registration/login.html 2010-05-13 15:20:43 +0000 |
738 | @@ -15,19 +15,17 @@ |
739 | {% if rpconfig %} |
740 | {% include "widgets/trusted_rp.html" %} |
741 | {% else %} |
742 | - <h2 class="main">{% blocktrans %}Log in to {{ sso_brand_name }}{% endblocktrans %}</h2> |
743 | + <h2 class="main">{% blocktrans %}Log in to Ubuntu Single Sign On{% endblocktrans %}</h2> |
744 | {% endif %} |
745 | |
746 | <div id="auth-text"> |
747 | {% if token and rpconfig %} |
748 | <p> |
749 | - {% blocktrans with rpconfig.displayname as rpconfigname %}You are here because {{ rpconfigname }} uses |
750 | -the {{ sso_brand_name }} service.{% endblocktrans %} |
751 | + {% blocktrans with rpconfig.displayname as rpconfigname %}You are here because {{ rpconfigname }} uses the Ubuntu Single Sign On service.{% endblocktrans %} |
752 | </p> |
753 | {% endif %} |
754 | <p> |
755 | - {% blocktrans %}Please note that if you've registered with Launchpad you |
756 | -can use your existing Launchpad credentials to log in.{% endblocktrans %} |
757 | + {% blocktrans %}Please note that if you've registered with Launchpad you can use your existing Launchpad credentials to log in.{% endblocktrans %} |
758 | </p> |
759 | </div> |
760 | |
761 | @@ -64,8 +62,7 @@ |
762 | {% block rightcol %} |
763 | <h2 class="main">{% trans "Are you new?" %}</h2> |
764 | <p> |
765 | - {% blocktrans %}This is a new service to provide a single, central login |
766 | -service for all Ubuntu-related sites.{% endblocktrans %} |
767 | + {% blocktrans %}This is a new service to provide a single, central login service for all Ubuntu-related sites.{% endblocktrans %} |
768 | </p> |
769 | <p class="findoutmore"> |
770 | <a href="/+description">{% trans "Find out more" %}</a> |
771 | |
772 | === modified file 'identityprovider/templates/widgets/recaptcha.html' |
773 | --- identityprovider/templates/widgets/recaptcha.html 2010-04-21 15:29:24 +0000 |
774 | +++ identityprovider/templates/widgets/recaptcha.html 2010-05-13 15:20:43 +0000 |
775 | @@ -21,9 +21,7 @@ |
776 | <div {% if captcha_error %}class='captchaError'{% endif %}> |
777 | {% ifequal captcha_error "&error=no-challenge" %} |
778 | <p> |
779 | -{% blocktrans %}It appears that our captcha service was unable to load on this |
780 | -page. This may be caused by a plugin on your browser. Please correct this and |
781 | -try again. If the problem persists, please contact |
782 | +{% 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 |
783 | <a href="https://forms.canonical.com/sso-support/">Ubuntu SSO support</a>{% endblocktrans %} |
784 | </p> |
785 | {% endifequal %} |
786 | |
787 | === modified file 'identityprovider/templates/widgets/unknown_rp.html' |
788 | --- identityprovider/templates/widgets/unknown_rp.html 2010-04-21 15:29:24 +0000 |
789 | +++ identityprovider/templates/widgets/unknown_rp.html 2010-05-13 15:20:43 +0000 |
790 | @@ -9,15 +9,11 @@ |
791 | {% if not sane_trust_root %} |
792 | <p class="warning message"> |
793 | <strong>{% trans "Warning:" %}</strong> |
794 | - {% blocktrans %}<em>{{ trust_root }}</em> does not look like |
795 | -a trustworthy URL.{% endblocktrans %} |
796 | + {% blocktrans %}<em>{{ trust_root }}</em> does not look like a trustworthy URL.{% endblocktrans %} |
797 | </p> |
798 | {% endif %} |
799 | |
800 | - <p class="grey">{% blocktrans %}You have used your Single |
801 | -Sign On ID to access a site which is <em>not</em> recognised by |
802 | -{{sso_brand_name}}:{% endblocktrans %} |
803 | - </p> |
804 | + <p class="grey">{{ brand.unknown_rp }}</p> |
805 | |
806 | <div> |
807 | <a href="{{ trust_root }}">{{ trust_root }}</a> |
808 | |
809 | === modified file 'identityprovider/tests/test_static.py' |
810 | --- identityprovider/tests/test_static.py 2010-04-21 15:29:24 +0000 |
811 | +++ identityprovider/tests/test_static.py 2010-05-13 15:20:43 +0000 |
812 | @@ -40,13 +40,13 @@ |
813 | req = DummyRequest() |
814 | context = RequestContext(req, {'trust_root': 'foo', }) |
815 | response = render_to_response('decide.html', context) |
816 | - self.assertContains(response, 'recognised by\nUbuntu') |
817 | + self.assertContains(response, 'recognised by Ubuntu') |
818 | |
819 | self.set_branding('Launchpad') |
820 | req = DummyRequest() |
821 | context = RequestContext(req, {'trust_root': 'foo', }) |
822 | response = render_to_response('decide.html', context) |
823 | - self.assertContains(response, 'recognised by\nLaunchpad') |
824 | + self.assertContains(response, 'recognised by Launchpad') |
825 | |
826 | |
827 | class StaticPageTestCase(SQLCachedTestCase): |
828 | |
829 | === modified file 'identityprovider/views/ui.py' |
830 | --- identityprovider/views/ui.py 2010-05-12 16:24:02 +0000 |
831 | +++ identityprovider/views/ui.py 2010-05-13 15:20:43 +0000 |
832 | @@ -139,10 +139,10 @@ |
833 | replacements = { |
834 | 'forgotten_password_url': |
835 | urljoin(settings.SSO_ROOT_URL, '+forgot_password'), |
836 | - 'sso_brand_name': current_brand.name, |
837 | } |
838 | message = render_to_string( |
839 | - 'email/impersonate-warning.txt', replacements) |
840 | + '%s/email/impersonate-warning.txt' % |
841 | + current_brand.template_dir, replacements) |
842 | subject = current_brand.name + ": " + _("Warning") |
843 | from_address = format_address( |
844 | settings.NOREPLY_FROM_ADDRESS, current_brand.name) |
Looks good.