Commit a8c60259 by Giulio Gratta

Merge pull request #2551 from edx/giulio/custom_cert_names

Variable-ize "Certificate of Achievement" text
parents 8ff3b4e5 35112e9e
...@@ -354,6 +354,18 @@ class CourseFields(object): ...@@ -354,6 +354,18 @@ class CourseFields(object):
# Ensure that courses imported from XML keep their image # Ensure that courses imported from XML keep their image
default="images_course_image.jpg" default="images_course_image.jpg"
) )
## Course level Certificate Name overrides.
cert_name_short = String(
help="Sitewide name of completion statements given to students (short).",
scope=Scope.settings,
default=""
)
cert_name_long = String(
help="Sitewide name of completion statements given to students (long).",
scope=Scope.settings,
default=""
)
# An extra property is used rather than the wiki_slug/number because # An extra property is used rather than the wiki_slug/number because
# there are courses that change the number for different runs. This allows # there are courses that change the number for different runs. This allows
......
...@@ -37,7 +37,7 @@ msgid "" ...@@ -37,7 +37,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PROJECT VERSION\n" "Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2014-02-25 10:18-0500\n" "POT-Creation-Date: 2014-02-25 10:11-0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
...@@ -4250,22 +4250,27 @@ msgstr "" ...@@ -4250,22 +4250,27 @@ msgstr ""
msgid "Change your name" msgid "Change your name"
msgstr "Çhängé ýöür nämé Ⱡ'σ#" msgstr "Çhängé ýöür nämé Ⱡ'σ#"
#. Translators: note that {platform} {cert_name_short} will look something
#. like: "edX certificate". Please do not change the order of these
#. placeholders.
#: lms/templates/dashboard.html #: lms/templates/dashboard.html
#: lms/templates/verify_student/_modal_editname.html
msgid "" msgid ""
"To uphold the credibility of {platform} certificates, all name changes will " "To uphold the credibility of your {platform} {cert_name_short}, all name "
"be logged and recorded." "changes will be logged and recorded."
msgstr "" msgstr ""
"Tö üphöld thé çrédïßïlïtý öf {platform} çértïfïçätés, äll nämé çhängés wïll " "Tö üphöld thé çrédïßïlïtý öf ýöür {platform} {cert_name_short}, äll nämé "
"ßé löggéd änd réçördéd. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт,#" "çhängés wïll ßé löggéd änd réçördéd. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт#"
#. Translators: note that {platform} {cert_name_short} will look something
#. like: "edX certificate". Please do not change the order of these
#. placeholders.
#: lms/templates/dashboard.html #: lms/templates/dashboard.html
msgid "" msgid ""
"Enter your desired full name, as it will appear on the {platform} " "Enter your desired full name, as it will appear on your {platform} "
"certificates:" "{cert_name_short}:"
msgstr "" msgstr ""
"Éntér ýöür désïréd füll nämé, äs ït wïll äppéär ön thé {platform} " "Éntér ýöür désïréd füll nämé, äs ït wïll äppéär ön ýöür {platform} "
"çértïfïçätés: Ⱡ'σяєм ιρѕυм ∂σłσя ѕι#" "{cert_name_short}: Ⱡ'σяєм ιρѕυм ∂σłσя #"
#: lms/templates/dashboard.html #: lms/templates/dashboard.html
#: lms/templates/verify_student/_modal_editname.html #: lms/templates/verify_student/_modal_editname.html
...@@ -6699,45 +6704,45 @@ msgid "Your final grade:" ...@@ -6699,45 +6704,45 @@ msgid "Your final grade:"
msgstr "Ýöür fïnäl grädé: Ⱡ'σ#" msgstr "Ýöür fïnäl grädé: Ⱡ'σ#"
#: lms/templates/dashboard/_dashboard_certificate_information.html #: lms/templates/dashboard/_dashboard_certificate_information.html
msgid "Grade required for a certificate:" msgid "Grade required for a {cert_name_short}:"
msgstr "Grädé réqüïréd för ä çértïfïçäté: Ⱡ'σяєм ι#" msgstr "Grädé réqüïréd för ä {cert_name_short}: Ⱡ'σяєм#"
#: lms/templates/dashboard/_dashboard_certificate_information.html
msgid ""
"Your verified {cert_name_long} is being held pending confirmation that the "
"issuance of your {cert_name_short} is in compliance with strict U.S. "
"embargoes on Iran, Cuba, Syria and Sudan. If you think our system has "
"mistakenly identified you as being connected with one of those countries, "
"please let us know by contacting {email}. If you would like a refund on your"
" {cert_name_long}, please contact our billing address {billing_email}"
msgstr ""
"Ýöür vérïfïéd {cert_name_long} ïs ßéïng héld péndïng çönfïrmätïön thät thé "
"ïssüänçé öf ýöür {cert_name_short} ïs ïn çömplïänçé wïth strïçt Û.S. "
"émßärgöés ön Ìrän, Çüßä, Sýrïä änd Südän. Ìf ýöü thïnk öür sýstém häs "
"mïstäkénlý ïdéntïfïéd ýöü äs ßéïng çönnéçtéd wïth öné öf thösé çöüntrïés, "
"pléäsé lét üs knöw ßý çöntäçtïng {email}. Ìf ýöü wöüld lïké ä réfünd ön ýöür"
" {cert_name_long}, pléäsé çöntäçt öür ßïllïng äddréss {billing_email} Ⱡ'σяєм"
" ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢тєтυя α∂ιριѕι¢ιηg єłιт, ѕє∂ ∂σ єιυѕмσ∂ тємρσя "
"ιη¢ι∂ι∂υηт υт łαвσяє єт ∂σłσяє мαgηα αłιq#"
#: lms/templates/dashboard/_dashboard_certificate_information.html #: lms/templates/dashboard/_dashboard_certificate_information.html
msgid "" msgid ""
"Your verified certificate is being held pending confirmation that the " "Your {cert_name_long} is being held pending confirmation that the issuance "
"issuance of your certificate is in compliance with strict U.S. embargoes on " "of your {cert_name_short} is in compliance with strict U.S. embargoes on "
"Iran, Cuba, Syria and Sudan. If you think our system has mistakenly " "Iran, Cuba, Syria and Sudan. If you think our system has mistakenly "
"identified you as being connected with one of those countries, please let us" "identified you as being connected with one of those countries, please let us"
" know by contacting {email}. If you would like a refund on your certificate," " know by contacting {email}."
" please contact our billing address {billing_email}"
msgstr "" msgstr ""
"Ýöür vérïfïéd çértïfïçäté ïs ßéïng héld péndïng çönfïrmätïön thät thé " "Ýöür {cert_name_long} ïs ßéïng héld péndïng çönfïrmätïön thät thé ïssüänçé "
"ïssüänçé öf ýöür çértïfïçäté ïs ïn çömplïänçé wïth strïçt Û.S. émßärgöés ön " "öf ýöür {cert_name_short} ïs ïn çömplïänçé wïth strïçt Û.S. émßärgöés ön "
"Ìrän, Çüßä, Sýrïä änd Südän. Ìf ýöü thïnk öür sýstém häs mïstäkénlý " "Ìrän, Çüßä, Sýrïä änd Südän. Ìf ýöü thïnk öür sýstém häs mïstäkénlý "
"ïdéntïfïéd ýöü äs ßéïng çönnéçtéd wïth öné öf thösé çöüntrïés, pléäsé lét üs" "ïdéntïfïéd ýöü äs ßéïng çönnéçtéd wïth öné öf thösé çöüntrïés, pléäsé lét üs"
" knöw ßý çöntäçtïng {email}. Ìf ýöü wöüld lïké ä réfünd ön ýöür çértïfïçäté," " knöw ßý çöntäçtïng {email}. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢тєтυя "
" pléäsé çöntäçt öür ßïllïng äddréss {billing_email} Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт " "α∂ιριѕι¢ιηg єłιт, ѕє∂ ∂σ єιυѕмσ∂ тємρσя ιη¢ι∂ι∂υηт υ#"
"αмєт, ¢σηѕє¢тєтυя α∂ιριѕι¢ιηg єłιт, ѕє∂ ∂σ єιυѕмσ∂ тємρσя ιη¢ι∂ι∂υηт υт "
"łαвσяє єт ∂σłσяє мαgηα αłιqυα. υт є#"
#: lms/templates/dashboard/_dashboard_certificate_information.html
msgid ""
"Your certificate is being held pending confirmation that the issuance of "
"your certificate is in compliance with strict U.S. embargoes on Iran, Cuba, "
"Syria and Sudan. If you think our system has mistakenly identified you as "
"being connected with one of those countries, please let us know by "
"contacting {email}."
msgstr ""
"Ýöür çértïfïçäté ïs ßéïng héld péndïng çönfïrmätïön thät thé ïssüänçé öf "
"ýöür çértïfïçäté ïs ïn çömplïänçé wïth strïçt Û.S. émßärgöés ön Ìrän, Çüßä, "
"Sýrïä änd Südän. Ìf ýöü thïnk öür sýstém häs mïstäkénlý ïdéntïfïéd ýöü äs "
"ßéïng çönnéçtéd wïth öné öf thösé çöüntrïés, pléäsé lét üs knöw ßý "
"çöntäçtïng {email}. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢тєтυя α∂ιριѕι¢ιηg "
"єłιт, ѕє∂ ∂σ єιυѕмσ∂ тємρσя ιη¢ι∂ι∂υηт υт łαв#"
#: lms/templates/dashboard/_dashboard_certificate_information.html #: lms/templates/dashboard/_dashboard_certificate_information.html
msgid "Your Certificate is Generating" msgid "Your {cert_name_short} is Generating"
msgstr "Ýöür Çértïfïçäté ïs Générätïng Ⱡ'σяєм #" msgstr "Ýöür {cert_name_short} ïs Générätïng Ⱡ'σяє#"
#: lms/templates/dashboard/_dashboard_certificate_information.html #: lms/templates/dashboard/_dashboard_certificate_information.html
#: lms/templates/dashboard/_dashboard_certificate_information.html #: lms/templates/dashboard/_dashboard_certificate_information.html
...@@ -6746,32 +6751,31 @@ msgstr "Thïs lïnk wïll öpén/döwnlöäd ä PDF döçümént Ⱡ'σяєм ι ...@@ -6746,32 +6751,31 @@ msgstr "Thïs lïnk wïll öpén/döwnlöäd ä PDF döçümént Ⱡ'σяєм ι
#: lms/templates/dashboard/_dashboard_certificate_information.html #: lms/templates/dashboard/_dashboard_certificate_information.html
#: lms/templates/dashboard/_dashboard_certificate_information.html #: lms/templates/dashboard/_dashboard_certificate_information.html
msgid "Download Your Certificate (PDF)" msgid "Download Your {cert_name_short} (PDF)"
msgstr "Döwnlöäd Ýöür Çértïfïçäté (PDF) Ⱡ'σяєм ι#" msgstr "Döwnlöäd Ýöür {cert_name_short} (PDF) Ⱡ'σяє#"
#: lms/templates/dashboard/_dashboard_certificate_information.html #: lms/templates/dashboard/_dashboard_certificate_information.html
msgid "" msgid ""
"Since we did not have a valid set of verification photos from you when " "Since we did not have a valid set of verification photos from you when your "
"certificates were generated, we could not grant you a verified certificate. " "{cert_name_long} was generated, we could not grant you a verified "
"An honor code certificate has been granted instead." "{cert_name_short}. An honor code {cert_name_short} has been granted instead."
msgstr "" msgstr ""
"Sïnçé wé dïd nöt hävé ä välïd sét öf vérïfïçätïön phötös fröm ýöü whén " "Sïnçé wé dïd nöt hävé ä välïd sét öf vérïfïçätïön phötös fröm ýöü whén ýöür "
"çértïfïçätés wéré générätéd, wé çöüld nöt gränt ýöü ä vérïfïéd çértïfïçäté. " "{cert_name_long} wäs générätéd, wé çöüld nöt gränt ýöü ä vérïfïéd "
"Àn hönör çödé çértïfïçäté häs ßéén gräntéd ïnstéäd. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт " "{cert_name_short}. Àn hönör çödé {cert_name_short} häs ßéén gräntéd ïnstéäd."
"αмєт, ¢σηѕє¢тєтυя α∂ιριѕι¢ιηg єłιт, ѕє∂ #" " Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢тєтυя α∂ιριѕι¢ιηg єłι#"
#: lms/templates/dashboard/_dashboard_certificate_information.html #: lms/templates/dashboard/_dashboard_certificate_information.html
msgid "" msgid ""
"This link will open/download a PDF document of your verified certificate." "This link will open/download a PDF document of your verified "
"{cert_name_long}."
msgstr "" msgstr ""
"Thïs lïnk wïll öpén/döwnlöäd ä PDF döçümént öf ýöür vérïfïéd çértïfïçäté. " "Thïs lïnk wïll öpén/döwnlöäd ä PDF döçümént öf ýöür vérïfïéd "
"Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт#" "{cert_name_long}. Ⱡ'σяєм ιρѕυм ∂σłσя #"
#: lms/templates/dashboard/_dashboard_certificate_information.html #: lms/templates/dashboard/_dashboard_certificate_information.html
msgid "Download Your ID Verified Certificate of Achievement (PDF)" msgid "Download Your ID Verified {cert_name_short} (PDF)"
msgstr "" msgstr "Döwnlöäd Ýöür ÌD Vérïfïéd {cert_name_short} (PDF) Ⱡ'σяєм ιρ#"
"Döwnlöäd Ýöür ÌD Vérïfïéd Çértïfïçäté öf Àçhïévémént (PDF) Ⱡ'σяєм ιρѕυм "
"∂σłσ#"
#: lms/templates/dashboard/_dashboard_certificate_information.html #: lms/templates/dashboard/_dashboard_certificate_information.html
msgid "Complete our course feedback survey" msgid "Complete our course feedback survey"
...@@ -6824,14 +6828,16 @@ msgstr "Täké thïs çöürsé äs än ÌD-vérïfïéd stüdént. Ⱡ'σяєм ...@@ -6824,14 +6828,16 @@ msgstr "Täké thïs çöürsé äs än ÌD-vérïfïéd stüdént. Ⱡ'σяєм
#: lms/templates/dashboard/_dashboard_course_listing.html #: lms/templates/dashboard/_dashboard_course_listing.html
msgid "" msgid ""
"You can still sign up for an ID verified certificate for this course. If you" "You can still sign up for an ID verified {cert_name_long} for this course. "
" plan to complete the whole course, it is a great way to recognize your " "If you plan to complete the whole course, it is a great way to recognize "
"achievement. {a_start}Learn more about verified certificates{a_end}." "your achievement. {link_start}Learn more about the verified "
"{cert_name_long}{link_end}."
msgstr "" msgstr ""
"Ýöü çän stïll sïgn üp för än ÌD vérïfïéd çértïfïçäté för thïs çöürsé. Ìf ýöü" "Ýöü çän stïll sïgn üp för än ÌD vérïfïéd {cert_name_long} för thïs çöürsé. "
" plän tö çömplété thé whölé çöürsé, ït ïs ä gréät wäý tö réçögnïzé ýöür " "Ìf ýöü plän tö çömplété thé whölé çöürsé, ït ïs ä gréät wäý tö réçögnïzé "
"äçhïévémént. {a_start}Léärn möré äßöüt vérïfïéd çértïfïçätés{a_end}. Ⱡ'σяєм " "ýöür äçhïévémént. {link_start}Léärn möré äßöüt thé vérïfïéd "
"ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢тєтυя α∂ιριѕι¢ιηg єłιт, ѕє∂ ∂σ#" "{cert_name_long}{link_end}. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢тєтυя "
"α∂ιριѕι¢ιηg єłιт, ѕє#"
#: lms/templates/dashboard/_dashboard_course_listing.html #: lms/templates/dashboard/_dashboard_course_listing.html
msgid "Upgrade to Verified Track" msgid "Upgrade to Verified Track"
...@@ -6845,6 +6851,21 @@ msgstr "Vïéw Àrçhïvéd Çöürsé Ⱡ'σя#" ...@@ -6845,6 +6851,21 @@ msgstr "Vïéw Àrçhïvéd Çöürsé Ⱡ'σя#"
msgid "View Course" msgid "View Course"
msgstr "Vïéw Çöürsé Ⱡ#" msgstr "Vïéw Çöürsé Ⱡ#"
#. Translators: The course's name will be added to the end of this sentence.
#: lms/templates/dashboard/_dashboard_course_listing.html
msgid "Are you sure you want to unregister from"
msgstr "Àré ýöü süré ýöü wänt tö ünrégïstér fröm Ⱡ'σяєм ιρѕυ#"
#. Translators: The course's name will be added to the end of this sentence.
#: lms/templates/dashboard/_dashboard_course_listing.html
#: lms/templates/dashboard/_dashboard_course_listing.html
msgid ""
"Are you sure you want to unregister from the verified {cert_name_long} track"
" of"
msgstr ""
"Àré ýöü süré ýöü wänt tö ünrégïstér fröm thé vérïfïéd {cert_name_long} träçk"
" öf Ⱡ'σяєм ιρѕυм ∂σłσя #"
#: lms/templates/dashboard/_dashboard_course_listing.html #: lms/templates/dashboard/_dashboard_course_listing.html
msgid "Email Settings" msgid "Email Settings"
msgstr "Émäïl Séttïngs Ⱡ'#" msgstr "Émäïl Séttïngs Ⱡ'#"
...@@ -8758,6 +8779,14 @@ msgstr "" ...@@ -8758,6 +8779,14 @@ msgstr ""
"Thé föllöwïng érrör öççürréd whïlé édïtïng ýöür nämé: Ⱡ'σяєм ιρѕυм ∂σ#" "Thé föllöwïng érrör öççürréd whïlé édïtïng ýöür nämé: Ⱡ'σяєм ιρѕυм ∂σ#"
#: lms/templates/verify_student/_modal_editname.html #: lms/templates/verify_student/_modal_editname.html
msgid ""
"To uphold the credibility of {platform} certificates, all name changes will "
"be logged and recorded."
msgstr ""
"Tö üphöld thé çrédïßïlïtý öf {platform} çértïfïçätés, äll nämé çhängés wïll "
"ßé löggéd änd réçördéd. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт,#"
#: lms/templates/verify_student/_modal_editname.html
msgid "Change my name" msgid "Change my name"
msgstr "Çhängé mý nämé Ⱡ'#" msgstr "Çhängé mý nämé Ⱡ'#"
......
...@@ -7,8 +7,8 @@ msgid "" ...@@ -7,8 +7,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 0.1a\n" "Project-Id-Version: 0.1a\n"
"Report-Msgid-Bugs-To: openedx-translation@googlegroups.com\n" "Report-Msgid-Bugs-To: openedx-translation@googlegroups.com\n"
"POT-Creation-Date: 2014-02-25 10:17-0500\n" "POT-Creation-Date: 2014-02-25 10:10-0800\n"
"PO-Revision-Date: 2014-02-25 15:18:19.594059\n" "PO-Revision-Date: 2014-02-25 18:11:53.548896\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: openedx-translation <openedx-translation@googlegroups.com>\n" "Language-Team: openedx-translation <openedx-translation@googlegroups.com>\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
......
...@@ -1252,6 +1252,10 @@ REGISTRATION_EXTRA_FIELDS = { ...@@ -1252,6 +1252,10 @@ REGISTRATION_EXTRA_FIELDS = {
'country': 'hidden', 'country': 'hidden',
} }
########################## CERTIFICATE NAME ########################
CERT_NAME_SHORT = "Certificate"
CERT_NAME_LONG = "Certificate of Achievement"
###################### Grade Downloads ###################### ###################### Grade Downloads ######################
GRADES_DOWNLOAD_ROUTING_KEY = HIGH_MEM_QUEUE GRADES_DOWNLOAD_ROUTING_KEY = HIGH_MEM_QUEUE
......
...@@ -5,6 +5,12 @@ ...@@ -5,6 +5,12 @@
from django.core.urlresolvers import reverse from django.core.urlresolvers import reverse
import waffle import waffle
%> %>
<%
cert_name_short = settings.CERT_NAME_SHORT
cert_name_long = settings.CERT_NAME_LONG
%>
<%inherit file="main.html" /> <%inherit file="main.html" />
<%namespace name='static' file='static_content.html'/> <%namespace name='static' file='static_content.html'/>
...@@ -403,11 +409,13 @@ ...@@ -403,11 +409,13 @@
<div id="change_name_body"> <div id="change_name_body">
<form id="change_name_form"> <form id="change_name_form">
<div id="change_name_error" class="modal-form-error"> </div> <div id="change_name_error" class="modal-form-error"> </div>
<p>${_("To uphold the credibility of {platform} certificates, all name changes will be logged and recorded.").format(platform=settings.PLATFORM_NAME)}</p> ## Translators: note that {platform} {cert_name_short} will look something like: "edX certificate". Please do not change the order of these placeholders.
<p>${_("To uphold the credibility of your {platform} {cert_name_short}, all name changes will be logged and recorded.").format(platform=settings.PLATFORM_NAME, cert_name_short=cert_name_short)}</p>
<br/> <br/>
<fieldset> <fieldset>
<div class="input-group"> <div class="input-group">
<label>${_("Enter your desired full name, as it will appear on the {platform} certificates:").format(platform=settings.PLATFORM_NAME)}</label> ## Translators: note that {platform} {cert_name_short} will look something like: "edX certificate". Please do not change the order of these placeholders.
<label>${_("Enter your desired full name, as it will appear on your {platform} {cert_name_short}:").format(platform=settings.PLATFORM_NAME, cert_name_short=cert_name_short)}</label>
<input id="new_name_field" value="" type="text" /> <input id="new_name_field" value="" type="text" />
<label>${_("Reason for name change:")}</label> <label>${_("Reason for name change:")}</label>
<textarea id="name_rationale_field" value=""></textarea> <textarea id="name_rationale_field" value=""></textarea>
......
...@@ -3,6 +3,16 @@ ...@@ -3,6 +3,16 @@
<%! from django.utils.translation import ugettext as _ %> <%! from django.utils.translation import ugettext as _ %>
<% <%
cert_name_short = course.cert_name_short
if cert_name_short == "":
cert_name_short = settings.CERT_NAME_SHORT
cert_name_long = course.cert_name_long
if cert_name_long == "":
cert_name_long = settings.CERT_NAME_LONG
%>
<%
if cert_status['status'] == 'generating': if cert_status['status'] == 'generating':
status_css_class = 'course-status-certrendering' status_css_class = 'course-status-certrendering'
elif cert_status['status'] == 'ready': elif cert_status['status'] == 'ready':
...@@ -20,15 +30,15 @@ else: ...@@ -20,15 +30,15 @@ else:
<p class="message-copy">${_("Your final grade:")} <p class="message-copy">${_("Your final grade:")}
<span class="grade-value">${"{0:.0f}%".format(float(cert_status['grade'])*100)}</span>. <span class="grade-value">${"{0:.0f}%".format(float(cert_status['grade'])*100)}</span>.
% if cert_status['status'] == 'notpassing' and enrollment.mode != 'audit': % if cert_status['status'] == 'notpassing' and enrollment.mode != 'audit':
${_("Grade required for a certificate:")} <span class="grade-value"> ${_("Grade required for a {cert_name_short}:").format(cert_name_short=cert_name_short)} <span class="grade-value">
${"{0:.0f}%".format(float(course.lowest_passing_grade)*100)}</span>. ${"{0:.0f}%".format(float(course.lowest_passing_grade)*100)}</span>.
% elif cert_status['status'] == 'restricted' and enrollment.mode == 'verified': % elif cert_status['status'] == 'restricted' and enrollment.mode == 'verified':
<p class="message-copy"> <p class="message-copy">
${_("Your verified certificate is being held pending confirmation that the issuance of your certificate is in compliance with strict U.S. embargoes on Iran, Cuba, Syria and Sudan. If you think our system has mistakenly identified you as being connected with one of those countries, please let us know by contacting {email}. If you would like a refund on your certificate, please contact our billing address {billing_email}").format(email='<a class="contact-link" href="mailto:{email}">{email}</a>.'.format(email=settings.CONTACT_EMAIL), billing_email='<a class="contact-link" href="mailto:{email}">{email}</a>'.format(email=settings.PAYMENT_SUPPORT_EMAIL))} ${_("Your verified {cert_name_long} is being held pending confirmation that the issuance of your {cert_name_short} is in compliance with strict U.S. embargoes on Iran, Cuba, Syria and Sudan. If you think our system has mistakenly identified you as being connected with one of those countries, please let us know by contacting {email}. If you would like a refund on your {cert_name_long}, please contact our billing address {billing_email}").format(email='<a class="contact-link" href="mailto:{email}">{email}</a>.'.format(email=settings.CONTACT_EMAIL), billing_email='<a class="contact-link" href="mailto:{email}">{email}</a>'.format(email=settings.PAYMENT_SUPPORT_EMAIL), cert_name_short=cert_name_short, cert_name_long=cert_name_long)}
</p> </p>
% elif cert_status['status'] == 'restricted': % elif cert_status['status'] == 'restricted':
<p class="message-copy"> <p class="message-copy">
${_("Your certificate is being held pending confirmation that the issuance of your certificate is in compliance with strict U.S. embargoes on Iran, Cuba, Syria and Sudan. If you think our system has mistakenly identified you as being connected with one of those countries, please let us know by contacting {email}.").format(email='<a class="contact-link" href="mailto:{email}">{email}</a>.'.format(email=settings.CONTACT_EMAIL))} ${_("Your {cert_name_long} is being held pending confirmation that the issuance of your {cert_name_short} is in compliance with strict U.S. embargoes on Iran, Cuba, Syria and Sudan. If you think our system has mistakenly identified you as being connected with one of those countries, please let us know by contacting {email}.").format(email='<a class="contact-link" href="mailto:{email}">{email}</a>.'.format(email=settings.CONTACT_EMAIL), cert_name_short=cert_name_short, cert_name_long=cert_name_long)}
</p> </p>
% endif % endif
</p> </p>
...@@ -38,23 +48,23 @@ else: ...@@ -38,23 +48,23 @@ else:
<ul class="actions"> <ul class="actions">
% if cert_status['show_disabled_download_button']: % if cert_status['show_disabled_download_button']:
<li class="action"><span class="disabled"> <li class="action"><span class="disabled">
${_("Your Certificate is Generating")}</span></li> ${_("Your {cert_name_short} is Generating").format(cert_name_short=cert_name_short)}</span></li>
% elif cert_status['show_download_url'] and enrollment.mode == 'honor': % elif cert_status['show_download_url'] and enrollment.mode == 'honor':
<li class="action action-certificate"> <li class="action action-certificate">
<a class="btn" href="${cert_status['download_url']}" <a class="btn" href="${cert_status['download_url']}"
title="${_('This link will open/download a PDF document')}"> title="${_('This link will open/download a PDF document')}">
${_("Download Your Certificate (PDF)")}</a></li> ${_("Download Your {cert_name_short} (PDF)").format(cert_name_short=cert_name_short,)}</a></li>
% elif cert_status['show_download_url'] and enrollment.mode == 'verified' and cert_status['mode'] == 'honor': % elif cert_status['show_download_url'] and enrollment.mode == 'verified' and cert_status['mode'] == 'honor':
<li class="action"> <li class="action">
<p>${_('Since we did not have a valid set of verification photos from you when certificates were generated, we could not grant you a verified certificate. An honor code certificate has been granted instead.')}</p> <p>${_('Since we did not have a valid set of verification photos from you when your {cert_name_long} was generated, we could not grant you a verified {cert_name_short}. An honor code {cert_name_short} has been granted instead.').format(cert_name_short=cert_name_short, cert_name_long=cert_name_long)}</p>
<a class="btn" href="${cert_status['download_url']}" <a class="btn" href="${cert_status['download_url']}"
title="${_('This link will open/download a PDF document')}"> title="${_('This link will open/download a PDF document')}">
${_("Download Your Certificate (PDF)")}</a></li> ${_("Download Your {cert_name_short} (PDF)").format(cert_name_short=cert_name_short)}</a></li>
% elif cert_status['show_download_url'] and enrollment.mode == 'verified': % elif cert_status['show_download_url'] and enrollment.mode == 'verified':
<li class="action"> <li class="action">
<a class="btn" href="${cert_status['download_url']}" <a class="btn" href="${cert_status['download_url']}"
title="${_('This link will open/download a PDF document of your verified certificate.')}"> title="${_('This link will open/download a PDF document of your verified {cert_name_long}.').format(cert_name_long=cert_name_long)}">
${_("Download Your ID Verified Certificate of Achievement (PDF)")}</a></li> ${_("Download Your ID Verified {cert_name_short} (PDF)").format(cert_name_short=cert_name_short)}</a></li>
% endif % endif
% if cert_status['show_survey_button']: % if cert_status['show_survey_button']:
......
...@@ -7,6 +7,16 @@ ...@@ -7,6 +7,16 @@
import waffle import waffle
%> %>
<%
cert_name_short = course.cert_name_short
if cert_name_short == "":
cert_name_short = settings.CERT_NAME_SHORT
cert_name_long = course.cert_name_long
if cert_name_long == "":
cert_name_long = settings.CERT_NAME_LONG
%>
<%namespace name='static' file='../static_content.html'/> <%namespace name='static' file='../static_content.html'/>
<li class="course-item"> <li class="course-item">
...@@ -79,7 +89,7 @@ ...@@ -79,7 +89,7 @@
</div> </div>
<div class="wrapper-extended"> <div class="wrapper-extended">
<p class="message-copy">${_("You can still sign up for an ID verified certificate for this course. If you plan to complete the whole course, it is a great way to recognize your achievement. {a_start}Learn more about verified certificates{a_end}.").format(a_start='<a href="{}">'.format(marketing_link('WHAT_IS_VERIFIED_CERT')), a_end="</a>")}</p> <p class="message-copy">${_("You can still sign up for an ID verified {cert_name_long} for this course. If you plan to complete the whole course, it is a great way to recognize your achievement. {link_start}Learn more about the verified {cert_name_long}{link_end}.").format(link_start='<a href="{}">'.format(marketing_link('WHAT_IS_VERIFIED_CERT')), link_end="</a>", cert_name_long=cert_name_long)}</p>
<ul class="actions message-actions"> <ul class="actions message-actions">
<li class="action-item"> <li class="action-item">
...@@ -104,11 +114,22 @@ ...@@ -104,11 +114,22 @@
% endif % endif
% if enrollment.mode != "verified": % if enrollment.mode != "verified":
<a href="#unenroll-modal" class="unenroll" rel="leanModal" data-course-id="${course.id}" data-course-number="${course.number}" onclick="document.getElementById('track-info').innerHTML='Are you sure you want to unregister from'; document.getElementById('refund-info').innerHTML=''">${_('Unregister')}</a> ## Translators: The course's name will be added to the end of this sentence.
<a href="#unenroll-modal" class="unenroll" rel="leanModal" data-course-id="${course.id}" data-course-number="${course.number}" onclick="document.getElementById('track-info').innerHTML='${_("Are you sure you want to unregister from")}'; document.getElementById('refund-info').innerHTML=''">
${_('Unregister')}
</a>
% elif show_refund_option: % elif show_refund_option:
<a href="#unenroll-modal" class="unenroll" rel="leanModal" data-course-id="${course.id}" data-course-number="${course.number}" onclick="document.getElementById('track-info').innerHTML='Are you sure you want to unregister from the verified certificate track of'; document.getElementById('refund-info').innerHTML=gettext('You will be refunded the amount you paid.')">${_('Unregister')}</a> ## Translators: The course's name will be added to the end of this sentence.
<a href="#unenroll-modal" class="unenroll" rel="leanModal" data-course-id="${course.id}" data-course-number="${course.number}" onclick="document.getElementById('track-info').innerHTML='${_("Are you sure you want to unregister from the verified {cert_name_long} track of").format(cert_name_long=cert_name_long)}';
document.getElementById('refund-info').innerHTML=gettext('You will be refunded the amount you paid.')">
${_('Unregister')}
</a>
% else: % else:
<a href="#unenroll-modal" class="unenroll" rel="leanModal" data-course-id="${course.id}" data-course-number="${course.number}" onclick="document.getElementById('track-info').innerHTML='Are you sure you want to unregister from the verified certificate track of'; document.getElementById('refund-info').innerHTML=gettext('The refund deadline for this course has passed, so you will not receive a refund.')">${_('Unregister')}</a> ## Translators: The course's name will be added to the end of this sentence.
<a href="#unenroll-modal" class="unenroll" rel="leanModal" data-course-id="${course.id}" data-course-number="${course.number}" onclick="document.getElementById('track-info').innerHTML='${_("Are you sure you want to unregister from the verified {cert_name_long} track of").format(cert_name_long=cert_name_long)}';
document.getElementById('refund-info').innerHTML=gettext('The refund deadline for this course has passed, so you will not receive a refund.')">
${_('Unregister')}
</a>
% endif % endif
% if show_email_settings: % if show_email_settings:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment