Commit d7b63da6 by Adam

Merge pull request #2642 from edx/adam/i18n-self-assessment-3

Adam/i18n self assessment 3
parents 30f5b460 f1984e7a
...@@ -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-18 16:36-0500\n" "POT-Creation-Date: 2014-02-19 15:38-0500\n"
"PO-Revision-Date: 2014-02-18 21:36:33.541469\n" "PO-Revision-Date: 2014-02-19 20:39:50.876422\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"
......
<%! from django.utils.translation import ungettext %>
<div class="rubric"> <div class="rubric">
% for i in range(len(categories)): % for i in range(len(categories)):
<% category = categories[i] %> <% category = categories[i] %>
...@@ -5,6 +6,16 @@ ...@@ -5,6 +6,16 @@
<ul class="rubric-list"> <ul class="rubric-list">
% for j in range(len(category['options'])): % for j in range(len(category['options'])):
<% option = category['options'][j] %> <% option = category['options'][j] %>
<%
points_earned_msg = ungettext(
"{num} point: {explanatory_text}",
"{num} points: {explanatory_text}",
option['points']
).format(
num=option['points'],
explanatory_text=option['text'],
)
%>
%if len(category['options'][j]['grader_types'])>0: %if len(category['options'][j]['grader_types'])>0:
<li class="rubric-list-item"> <li class="rubric-list-item">
%else: %else:
...@@ -19,12 +30,13 @@ ...@@ -19,12 +30,13 @@
%else: %else:
<label class="choicegroup_incorrect wrapper-score-selection"></label> <label class="choicegroup_incorrect wrapper-score-selection"></label>
%endif %endif
<span class="wrappable"> ${option['points']} points : ${option['text']}</span>
<span class="wrappable"> ${points_earned_msg}</span>
</label> </label>
%else: %else:
<label class="rubric-elements-info"> <label class="rubric-elements-info">
<span class="wrapper-score-selection"> </span> <span class="wrapper-score-selection"> </span>
<span class="wrappable"> ${option['points']} points : ${option['text']}</span> <span class="wrappable"> ${points_earned_msg}</span>
</label> </label>
%endif %endif
</div> </div>
......
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