Skip to content

Commit 46d58e5

Browse files
author
Eric Fischer
authored
Merge pull request openedx#1021 from edx/efischer/pi-131
s/question/prompt in user-facing strings
2 parents e52ad40 + 079ff4f commit 46d58e5

12 files changed

+17
-17
lines changed

openassessment/templates/openassessmentblock/leaderboard/oa_leaderboard_show.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h4 class="step__title">
2121
</div>
2222
{% endwith %}
2323
<div class="leaderboard__answer">
24-
{% trans "Your peer's response to the question above" as translated_label %}
24+
{% trans "Your peer's response to the prompt above" as translated_label %}
2525
{% include "openassessmentblock/oa_submission_answer.html" with answer=topscore.submission.answer answer_text_label=translated_label %}
2626
{% 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 %}
2727
</div>

openassessment/templates/openassessmentblock/message/oa_message_open.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
<p>
66
{% if approaching %}
77
{% blocktrans with start_tag='<strong>'|safe end_tag="</strong>"|safe %}
8-
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.
8+
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.
99
{% endblocktrans %}
1010
{% else %}
1111
{% blocktrans with start_tag="<strong>"|safe end_tag="</strong>"|safe %}
12-
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.
12+
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.
1313
{% endblocktrans %}
1414
{% endif %}
1515
</p>

openassessment/templates/openassessmentblock/oa_base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h3 class="openassessment__title problem__header">{% trans title %}</h3>
1212
{% block message %}
1313
<div class="openassessment__message message">
1414
<div class="message__content">
15-
<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>
15+
<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>
1616
</div>
1717
</div>
1818
{% endblock %}

openassessment/templates/openassessmentblock/peer/oa_peer_assessment.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ <h4 class="step__title">
6565
<article class="peer-assessment peer-assessment--001">
6666
<div class="peer-assessment__display">
6767

68-
{% trans "Your peer's response to the question above" as translated_label %}
68+
{% trans "Your peer's response to the prompt above" as translated_label %}
6969
{% include "openassessmentblock/oa_submission_answer.html" with answer=peer_submission.answer answer_text_label=translated_label %}
7070

7171
{% trans "Associated Files" as translated_header %}

openassessment/templates/openassessmentblock/peer/oa_peer_turbo_mode.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ <h5 class="message__title">{% trans "Status" %}</h5>
4848
<li class="list--peer-assessments__item">
4949
<article class="peer-assessment peer-assessment--001">
5050
<div class="peer-assessment__display">
51-
{% trans "Your peer's response to the question above" as translated_label %}
51+
{% trans "Your peer's response to the prompt above" as translated_label %}
5252
{% include "openassessmentblock/oa_submission_answer.html" with answer=peer_submission.answer answer_text_label=translated_label %}
5353

5454
{% trans "Associated Files" as translated_header %}

openassessment/templates/openassessmentblock/response/oa_response.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h4 class="step__title">
4646
<div class="wrapper--step__content">
4747
<div class="step__instruction">
4848
<p>
49-
{% trans "Enter your response to the question." %}
49+
{% trans "Enter your response to the prompt." %}
5050
{% if submission_due %}
5151
{% trans "You can save your progress and return to complete your response at any time before the due date" %}
5252
(<span class="step__deadline">
@@ -89,7 +89,7 @@ <h5 class="submission__answer__part__text__title">{% trans "The prompt for this
8989
class="submission__answer__part__text__value"
9090
aria-labelledby="submission__answer__part__text__title__{{ forloop.counter }}__{{ xblock_id }}"
9191
aria-describedby="submission__answer__tip__{{ xblock_id }}"
92-
placeholder="{% trans "Enter your response to the question above." %}"
92+
placeholder="{% trans "Enter your response to the prompt above." %}"
9393
maxlength="100000"
9494
>{{ part.text }}</textarea>
9595
</div>

openassessment/templates/openassessmentblock/staff_area/oa_staff_grade_learners_assessment.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h4 class="staff-assessment__display__title">
2222
</h4>
2323
</header>
2424

25-
{% trans "The learner's response to the question above" as translated_label %}
25+
{% trans "The learner's response to the prompt above" as translated_label %}
2626
{% include "openassessmentblock/oa_submission_answer.html" with answer=submission.answer answer_text_label=translated_label %}
2727

2828
{% trans "Associated Files" as translated_header %}

openassessment/templates/openassessmentblock/staff_area/oa_staff_override_assessment.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h3 class="staff-assessment__display__title">
2121
</h3>
2222
</header>
2323

24-
{% trans "The learner's response to the question above" as translated_label %}
24+
{% trans "The learner's response to the prompt above" as translated_label %}
2525
{% include "openassessmentblock/oa_submission_answer.html" with answer=submission.answer answer_text_label=translated_label %}
2626

2727
{% trans "Associated Files" as translated_header %}

openassessment/templates/openassessmentblock/staff_area/oa_student_info.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ <h2 class="staff-info__title ui-staff__subtitle">
4343
</p>
4444
{% else %}
4545
<div class="wrapper--content">
46-
{% trans "The learner's response to the question above" as translated_label %}
46+
{% trans "The learner's response to the prompt above" as translated_label %}
4747
{% include "openassessmentblock/oa_submission_answer.html" with answer=submission.answer answer_text_label=translated_label %}
4848

4949
{% trans "Associated Files" as translated_header %}

openassessment/templates/openassessmentblock/student_training/student_training.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ <h5 class="message__title">{% trans "Learning to Assess Responses" %}</h5>
7272
<div class="step__content">
7373
<article class="student-training__display">
7474

75-
{% trans "The response to the question above:" as translated_label %}
75+
{% trans "The response to the prompt above:" as translated_label %}
7676
{% include "openassessmentblock/oa_submission_answer.html" with answer=training_essay.answer answer_text_label=translated_label %}
7777

7878
</article>

openassessment/xblock/test/test_openassessment.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def test_prompt_intentionally_empty(self, xblock):
146146
# Verify that prompts intentionally left empty don't create DOM elements
147147
xblock_fragment = self.runtime.render(xblock, "student_view")
148148
body_html = xblock_fragment.body_html()
149-
present_prompt_text = "you'll provide a response to the question"
149+
present_prompt_text = "you'll provide a response to the prompt"
150150
missing_article = u'<article class="submission__answer__part__prompt'
151151
self.assertIn(present_prompt_text, body_html)
152152
self.assertNotIn(missing_article, body_html)

openassessment/xblock/test/test_submission.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
class SubmissionTest(XBlockHandlerTestCase):
2727
SUBMISSION = json.dumps({
28-
"submission": ["This is my answer to the first question!", "This is my answer to the second question!"]
28+
"submission": ["This is my answer to the first prompt!", "This is my answer to the second prompt!"]
2929
})
3030

3131
@scenario('data/basic_scenario.xml', user_id='Bob')
@@ -37,8 +37,8 @@ def test_submit_submission(self, xblock):
3737
def test_submit_answer_too_long(self, xblock):
3838
# Maximum answer length is 100K, once the answer has been JSON-encoded
3939
long_submission = json.dumps({
40-
"submission": ["This is my answer to the first question!" * 100000,
41-
"This is my answer to the second question!"]
40+
"submission": ["This is my answer to the first prompt!" * 100000,
41+
"This is my answer to the second prompt!"]
4242
})
4343
resp = self.request(xblock, 'submit', long_submission, response_format='json')
4444
self.assertFalse(resp[0])
@@ -576,7 +576,7 @@ def test_closed_graded(self, xblock):
576576
def test_integration(self, xblock):
577577
# Expect that the response step is open and displays the deadline
578578
resp = self.request(xblock, 'render_submission', json.dumps(dict()))
579-
self.assertIn('Enter your response to the question', resp)
579+
self.assertIn('Enter your response to the prompt', resp)
580580
self.assertIn('2999-05-06T00:00:00+00:00', resp)
581581

582582
# Create a submission for the user

0 commit comments

Comments
 (0)