Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update date to English and default printing to A3 #552

Merged
merged 1 commit into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lms/djangoapps/certificates/views/webview.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def _update_certificate_context(context, course, course_overview, user_certifica
else:
date = display_date_for_certificate(course, user_certificate)
# Translators: The format of the date includes the full name of the month
date = strftime_localized(date, "%B %-d, %Y")
date = date.strftime("%B %-d, %Y")
context['certificate_date_issued'] = date
# SDAIA: Adding Date in Arabic
context['arabic_certificate_date_issued'] = convert_date_to_arabic(date)
Expand Down
6 changes: 4 additions & 2 deletions lms/templates/certificates/_accomplishment-rendering.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SDAIA Academy - Certificate of completion</title>
<style>
@page {
size: A2;
@media print {
@page {
size: A3 landscape;
}
}
</style>
</head>
Expand Down
Loading