Add i18n to date in certificate web

This commit is contained in:
jportela
2017-04-05 15:40:20 +00:00
committed by mrey
parent aafd4d9c61
commit 2646858cad

View File

@@ -98,7 +98,7 @@ def _update_certificate_context(context, user_certificate, platform_name):
# Translators: The format of the date includes the full name of the month
context['certificate_date_issued'] = _('{month} {day}, {year}').format(
month=user_certificate.modified_date.strftime("%B"),
month=_(user_certificate.modified_date.strftime("%B")),
day=user_certificate.modified_date.day,
year=user_certificate.modified_date.year
)