From 2d1247be497fd37129fa29aa84a8dbea09dea6c3 Mon Sep 17 00:00:00 2001 From: zubair-arbi Date: Fri, 9 Oct 2015 12:53:44 +0500 Subject: [PATCH] minor changes in credit eligibility notification ECOM-2450 --- .../credit_notifications/credit_eligibility_email.html | 8 ++++++-- .../credit_notifications/credit_eligibility_email.txt | 7 +++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/lms/templates/credit_notifications/credit_eligibility_email.html b/lms/templates/credit_notifications/credit_eligibility_email.html index df7ea282b8..b587b76499 100644 --- a/lms/templates/credit_notifications/credit_eligibility_email.html +++ b/lms/templates/credit_notifications/credit_eligibility_email.html @@ -26,7 +26,11 @@

- ${_(u"Hi {name},").format(name=full_name)} + % if full_name is not UNDEFINED and full_name is not None: + ${_(u"Hi {name},").format(name=full_name)} + % else: + ${_(u"Hi,")} + % endif

@@ -44,7 +48,7 @@

- ${_(u'To get course credit, simply go to your {link_start}{platform_name} dashboard{link_end} and click the Get Credit button. No application, transcript, or grade report is required.').format( + ${_(u'To get course credit, simply go to your {link_start}{platform_name} dashboard{link_end} and click the Get Credit button. After you receive your credit, you will also have an official academic transcript at the institution that granted the credit.').format( link_start=u''.format( dashboard_url=dashboard_link ), diff --git a/lms/templates/credit_notifications/credit_eligibility_email.txt b/lms/templates/credit_notifications/credit_eligibility_email.txt index 572188e4cc..c0e6284497 100644 --- a/lms/templates/credit_notifications/credit_eligibility_email.txt +++ b/lms/templates/credit_notifications/credit_eligibility_email.txt @@ -1,5 +1,9 @@ <%! from django.utils.translation import ugettext as _ %> +% if full_name is not UNDEFINED and full_name is not None: ${_(u"Hi {name},").format(name=full_name)} +% else: +${_(u"Hi,")} +% endif ${_(u"Congratulations! You are eligible to receive course credit for successfully completing your edX course!")} @@ -9,8 +13,7 @@ ${dashboard_link} ${_(u"Course credit can help you get a jump start on your university degree, finish a degree already started, or fulfill requirements at a different academic institution.")} -${_(u'To get course credit, simply go to your edX dashboard and click the "Get Credit" button. No application, transcript, or grade report is required.')} +${_(u'To get course credit, simply go to your edX dashboard and click the "Get Credit" button. After you receive your credit, you will also have an official academic transcript at the institution that granted the credit.')} ${_(u"We hope you enjoyed the course, and we hope to see you in future edX courses!")} - ${_(u"The edX team")}