Commit 079ff4fc by Eric Fischer

s/question/prompt in user-facing strings

parent e52ad403
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</div> </div>
{% endwith %} {% endwith %}
<div class="leaderboard__answer"> <div class="leaderboard__answer">
{% trans "Your peer's response to the question above" as translated_label %} {% trans "Your peer's response to the prompt above" as translated_label %}
{% include "openassessmentblock/oa_submission_answer.html" with answer=topscore.submission.answer answer_text_label=translated_label %} {% include "openassessmentblock/oa_submission_answer.html" with answer=topscore.submission.answer answer_text_label=translated_label %}
{% include "openassessmentblock/oa_uploaded_file.html" with file_upload_type=file_upload_type file_urls=topscore.files class_prefix="submission__answer" including_template="leaderboard_show" xblock_id=xblock_id %} {% include "openassessmentblock/oa_uploaded_file.html" with file_upload_type=file_upload_type file_urls=topscore.files class_prefix="submission__answer" including_template="leaderboard_show" xblock_id=xblock_id %}
</div> </div>
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
<p> <p>
{% if approaching %} {% if approaching %}
{% blocktrans with start_tag='<strong>'|safe end_tag="</strong>"|safe %} {% blocktrans with start_tag='<strong>'|safe end_tag="</strong>"|safe %}
Assignment submissions will close soon. To receive a grade, first provide a response to the question, then complete the steps below the {{ start_tag }}Your Response{{ end_tag }} field. Assignment submissions will close soon. To receive a grade, first provide a response to the prompt, then complete the steps below the {{ start_tag }}Your Response{{ end_tag }} field.
{% endblocktrans %} {% endblocktrans %}
{% else %} {% else %}
{% blocktrans with start_tag="<strong>"|safe end_tag="</strong>"|safe %} {% blocktrans with start_tag="<strong>"|safe end_tag="</strong>"|safe %}
This assignment has several steps. In the first step, you'll provide a response to the question. The other steps appear below the {{ start_tag }}Your Response{{ end_tag }} field. This assignment has several steps. In the first step, you'll provide a response to the prompt. The other steps appear below the {{ start_tag }}Your Response{{ end_tag }} field.
{% endblocktrans %} {% endblocktrans %}
{% endif %} {% endif %}
</p> </p>
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
{% block message %} {% block message %}
<div class="openassessment__message message"> <div class="openassessment__message message">
<div class="message__content"> <div class="message__content">
<p>{% trans "This assignment has several steps. In the first step, you'll provide a response to the question. The other steps appear below the Your Response field." %}</p> <p>{% trans "This assignment has several steps. In the first step, you'll provide a response to the prompt. The other steps appear below the Your Response field." %}</p>
</div> </div>
</div> </div>
{% endblock %} {% endblock %}
......
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<article class="peer-assessment peer-assessment--001"> <article class="peer-assessment peer-assessment--001">
<div class="peer-assessment__display"> <div class="peer-assessment__display">
{% trans "Your peer's response to the question above" as translated_label %} {% trans "Your peer's response to the prompt above" as translated_label %}
{% include "openassessmentblock/oa_submission_answer.html" with answer=peer_submission.answer answer_text_label=translated_label %} {% include "openassessmentblock/oa_submission_answer.html" with answer=peer_submission.answer answer_text_label=translated_label %}
{% trans "Associated Files" as translated_header %} {% trans "Associated Files" as translated_header %}
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<li class="list--peer-assessments__item"> <li class="list--peer-assessments__item">
<article class="peer-assessment peer-assessment--001"> <article class="peer-assessment peer-assessment--001">
<div class="peer-assessment__display"> <div class="peer-assessment__display">
{% trans "Your peer's response to the question above" as translated_label %} {% trans "Your peer's response to the prompt above" as translated_label %}
{% include "openassessmentblock/oa_submission_answer.html" with answer=peer_submission.answer answer_text_label=translated_label %} {% include "openassessmentblock/oa_submission_answer.html" with answer=peer_submission.answer answer_text_label=translated_label %}
{% trans "Associated Files" as translated_header %} {% trans "Associated Files" as translated_header %}
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
<div class="wrapper--step__content"> <div class="wrapper--step__content">
<div class="step__instruction"> <div class="step__instruction">
<p> <p>
{% trans "Enter your response to the question." %} {% trans "Enter your response to the prompt." %}
{% if submission_due %} {% if submission_due %}
{% trans "You can save your progress and return to complete your response at any time before the due date" %} {% trans "You can save your progress and return to complete your response at any time before the due date" %}
(<span class="step__deadline"> (<span class="step__deadline">
...@@ -89,7 +89,7 @@ ...@@ -89,7 +89,7 @@
class="submission__answer__part__text__value" class="submission__answer__part__text__value"
aria-labelledby="submission__answer__part__text__title__{{ forloop.counter }}__{{ xblock_id }}" aria-labelledby="submission__answer__part__text__title__{{ forloop.counter }}__{{ xblock_id }}"
aria-describedby="submission__answer__tip__{{ xblock_id }}" aria-describedby="submission__answer__tip__{{ xblock_id }}"
placeholder="{% trans "Enter your response to the question above." %}" placeholder="{% trans "Enter your response to the prompt above." %}"
maxlength="100000" maxlength="100000"
>{{ part.text }}</textarea> >{{ part.text }}</textarea>
</div> </div>
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</h4> </h4>
</header> </header>
{% trans "The learner's response to the question above" as translated_label %} {% trans "The learner's response to the prompt above" as translated_label %}
{% include "openassessmentblock/oa_submission_answer.html" with answer=submission.answer answer_text_label=translated_label %} {% include "openassessmentblock/oa_submission_answer.html" with answer=submission.answer answer_text_label=translated_label %}
{% trans "Associated Files" as translated_header %} {% trans "Associated Files" as translated_header %}
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</h3> </h3>
</header> </header>
{% trans "The learner's response to the question above" as translated_label %} {% trans "The learner's response to the prompt above" as translated_label %}
{% include "openassessmentblock/oa_submission_answer.html" with answer=submission.answer answer_text_label=translated_label %} {% include "openassessmentblock/oa_submission_answer.html" with answer=submission.answer answer_text_label=translated_label %}
{% trans "Associated Files" as translated_header %} {% trans "Associated Files" as translated_header %}
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
</p> </p>
{% else %} {% else %}
<div class="wrapper--content"> <div class="wrapper--content">
{% trans "The learner's response to the question above" as translated_label %} {% trans "The learner's response to the prompt above" as translated_label %}
{% include "openassessmentblock/oa_submission_answer.html" with answer=submission.answer answer_text_label=translated_label %} {% include "openassessmentblock/oa_submission_answer.html" with answer=submission.answer answer_text_label=translated_label %}
{% trans "Associated Files" as translated_header %} {% trans "Associated Files" as translated_header %}
......
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
<div class="step__content"> <div class="step__content">
<article class="student-training__display"> <article class="student-training__display">
{% trans "The response to the question above:" as translated_label %} {% trans "The response to the prompt above:" as translated_label %}
{% include "openassessmentblock/oa_submission_answer.html" with answer=training_essay.answer answer_text_label=translated_label %} {% include "openassessmentblock/oa_submission_answer.html" with answer=training_essay.answer answer_text_label=translated_label %}
</article> </article>
......
...@@ -146,7 +146,7 @@ class TestOpenAssessment(XBlockHandlerTestCase): ...@@ -146,7 +146,7 @@ class TestOpenAssessment(XBlockHandlerTestCase):
# Verify that prompts intentionally left empty don't create DOM elements # Verify that prompts intentionally left empty don't create DOM elements
xblock_fragment = self.runtime.render(xblock, "student_view") xblock_fragment = self.runtime.render(xblock, "student_view")
body_html = xblock_fragment.body_html() body_html = xblock_fragment.body_html()
present_prompt_text = "you'll provide a response to the question" present_prompt_text = "you'll provide a response to the prompt"
missing_article = u'<article class="submission__answer__part__prompt' missing_article = u'<article class="submission__answer__part__prompt'
self.assertIn(present_prompt_text, body_html) self.assertIn(present_prompt_text, body_html)
self.assertNotIn(missing_article, body_html) self.assertNotIn(missing_article, body_html)
......
...@@ -25,7 +25,7 @@ from .base import XBlockHandlerTestCase, scenario ...@@ -25,7 +25,7 @@ from .base import XBlockHandlerTestCase, scenario
class SubmissionTest(XBlockHandlerTestCase): class SubmissionTest(XBlockHandlerTestCase):
SUBMISSION = json.dumps({ SUBMISSION = json.dumps({
"submission": ["This is my answer to the first question!", "This is my answer to the second question!"] "submission": ["This is my answer to the first prompt!", "This is my answer to the second prompt!"]
}) })
@scenario('data/basic_scenario.xml', user_id='Bob') @scenario('data/basic_scenario.xml', user_id='Bob')
...@@ -37,8 +37,8 @@ class SubmissionTest(XBlockHandlerTestCase): ...@@ -37,8 +37,8 @@ class SubmissionTest(XBlockHandlerTestCase):
def test_submit_answer_too_long(self, xblock): def test_submit_answer_too_long(self, xblock):
# Maximum answer length is 100K, once the answer has been JSON-encoded # Maximum answer length is 100K, once the answer has been JSON-encoded
long_submission = json.dumps({ long_submission = json.dumps({
"submission": ["This is my answer to the first question!" * 100000, "submission": ["This is my answer to the first prompt!" * 100000,
"This is my answer to the second question!"] "This is my answer to the second prompt!"]
}) })
resp = self.request(xblock, 'submit', long_submission, response_format='json') resp = self.request(xblock, 'submit', long_submission, response_format='json')
self.assertFalse(resp[0]) self.assertFalse(resp[0])
...@@ -576,7 +576,7 @@ class SubmissionRenderTest(XBlockHandlerTestCase): ...@@ -576,7 +576,7 @@ class SubmissionRenderTest(XBlockHandlerTestCase):
def test_integration(self, xblock): def test_integration(self, xblock):
# Expect that the response step is open and displays the deadline # Expect that the response step is open and displays the deadline
resp = self.request(xblock, 'render_submission', json.dumps(dict())) resp = self.request(xblock, 'render_submission', json.dumps(dict()))
self.assertIn('Enter your response to the question', resp) self.assertIn('Enter your response to the prompt', resp)
self.assertIn('2999-05-06T00:00:00+00:00', resp) self.assertIn('2999-05-06T00:00:00+00:00', resp)
# Create a submission for the user # Create a submission for the user
......
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