From 01e01555be057033e1791286aa597d12f0a3bf1c Mon Sep 17 00:00:00 2001 From: William Desloge Date: Wed, 16 Apr 2014 12:08:21 +0200 Subject: [PATCH 1/3] Fix missing call to translate in shoppingcart model --- lms/djangoapps/shoppingcart/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lms/djangoapps/shoppingcart/models.py b/lms/djangoapps/shoppingcart/models.py index c74ce8784c..d2e1e082fb 100644 --- a/lms/djangoapps/shoppingcart/models.py +++ b/lms/djangoapps/shoppingcart/models.py @@ -367,7 +367,8 @@ class PaidCourseRegistration(OrderItem): item.mode = course_mode.slug item.qty = 1 item.unit_cost = cost - item.line_desc = u'Registration for Course: {0}'.format(course.display_name_with_default) + item.line_desc = _(u'Registration for Course: {course_name}').format( + course_name=course.display_name_with_default) item.currency = currency order.currency = currency item.report_comments = item.csv_report_comments From 36f762c275c93bef40da0559185823ce7f0cbd4a Mon Sep 17 00:00:00 2001 From: William Desloge Date: Wed, 16 Apr 2014 12:09:05 +0200 Subject: [PATCH 2/3] Fix missing call to translate for shopping cart btn --- lms/templates/navigation.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/templates/navigation.html b/lms/templates/navigation.html index 75aba41d0e..f54a897440 100644 --- a/lms/templates/navigation.html +++ b/lms/templates/navigation.html @@ -81,7 +81,7 @@ site_status_msg = get_site_status_msg(course_id)
  1. - Shopping Cart + ${_("Shopping Cart")}
From 8ef6a41db520ab7e3080cd1d427d59af8eb85fcc Mon Sep 17 00:00:00 2001 From: William Desloge Date: Thu, 17 Apr 2014 17:46:32 +0200 Subject: [PATCH 3/3] Fix missing call to translate in receipt page --- lms/templates/shoppingcart/receipt.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/templates/shoppingcart/receipt.html b/lms/templates/shoppingcart/receipt.html index d8200fe8f8..1fdebeba24 100644 --- a/lms/templates/shoppingcart/receipt.html +++ b/lms/templates/shoppingcart/receipt.html @@ -11,8 +11,8 @@
-

Thank you for your Purchase!

-

Please print this receipt page for your records. You should also have received a receipt in your email.

+

${_("Thank you for your Purchase!")}

+

${_("Please print this receipt page for your records. You should also have received a receipt in your email.")}

% for inst in instructions:

${inst}

% endfor