Closed Bug 839157 Opened 11 years ago Closed 11 years ago

update email templates and rendering for l10n

Categories

(support.mozilla.org :: General, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED
2013Q1

People

(Reporter: willkg, Assigned: willkg)

References

Details

(Whiteboard: u=dev c=general p=2 s=2013.5)

In bug #827649, I updated the email templates for the users and questions apps so that they can be localized.

The list of email templates that have yet to be updated are these:

./kbforums/templates/kbforums/email/new_post.ltxt
./kbforums/templates/kbforums/email/new_thread.ltxt
./forums/templates/forums/email/new_post.ltxt
./forums/templates/forums/email/new_thread.ltxt
./messages/templates/messages/email/private_message.ltxt
./wiki/templates/wiki/email/ready_for_review.ltxt
./wiki/templates/wiki/email/approved.ltxt
./wiki/templates/wiki/email/reviewed.ltxt
./wiki/templates/wiki/email/ready_for_l10n.ltxt
./wiki/templates/wiki/email/reviewed_contributors.ltxt
./wiki/templates/wiki/email/edited.ltxt
./announcements/templates/announcements/email/announcement.ltxt

For each of these, the following needs to happen:

1. convert the template from Django to Jinja2
2. fix the code that renders the template to use the functions in sumo.email_utils rather than Django template renderer
3. test vigorously!


Take a look at the rendering code for email templates in the users and questions apps for examples.
Priority: -- → P3
Whiteboard: u=dev c=general p= s=2013.4
Target Milestone: --- → 2013Q1
This is at least 3 points of work.

For each template we have to find the place in the code that renders it (and the email subject!), then fiddle with the code so the subject and body are rendered with the right locale, then change the template to be a Jinja2 template, then figure out how to trigger the condition that sends the email so we can test that it works correctly.
Whiteboard: u=dev c=general p= s=2013.4 → u=dev c=general p=3 s=2013.4
Priority: P3 → P2
Taking this one. I'll flip between this and Input for the next week.
Assignee: nobody → willkg
Reducing the scope of this bug to just the following templates:

./kbforums/templates/kbforums/email/new_post.ltxt
./kbforums/templates/kbforums/email/new_thread.ltxt
./forums/templates/forums/email/new_post.ltxt
./forums/templates/forums/email/new_thread.ltxt
./messages/templates/messages/email/private_message.ltxt
./announcements/templates/announcements/email/announcement.ltxt

Bug #846386 covers the wiki ones.

Bumping this one out of the 2013.4 sprint and into 2013.5.
Whiteboard: u=dev c=general p=3 s=2013.4 → u=dev c=general p=3 s=2013.5
Deployed to prod now!
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
This ended up being 2 points. I was able to reuse a bunch of code I wrote previously, the kbforums and forums templates were identical, and I didn't bump into anything unexpected.
Whiteboard: u=dev c=general p=3 s=2013.5 → u=dev c=general p=2 s=2013.5
You need to log in before you can comment on or make changes to this bug.