Skip to content

Commit

Permalink
Change consent video based on language (#1342)
Browse files Browse the repository at this point in the history
* internationalisation and Japanese translations

* change consent video based on language

* resized ja consent video
  • Loading branch information
rhodricusack authored Apr 11, 2024
1 parent b54ffa2 commit 189356c
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 10 deletions.
1 change: 1 addition & 0 deletions locale/ja/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -3739,6 +3739,7 @@ msgid "Find a developmental lab near you"
msgstr ""
"この情報は英語圏の方のみ対象となります Find a developmental lab near you"


#: web/templates/web/scientists.html:10
msgid "Meet the Children Helping Science team"
msgstr "Children Helping Scienceチームの紹介"
Expand Down
Binary file added web/static/videos/consent_ja.mp4
Binary file not shown.
18 changes: 9 additions & 9 deletions web/templates/web/faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,15 @@ <h2 class="accordion-header" id="heading-9">
<p>Some studies ask you (the parent or guardian) to sign an online form after either reading about what the study involves or talking with a researcher. Other studies, especially ones that happen on our own Children Helping Science platform, ask that you read aloud (or sign in ASL) a statement of consent which is recorded using your webcam. This statement holds the same weight as a signed form, but should be less hassle for you. It also lets us verify that you understand written English and that you understand you're being videotaped.</p>
<p>Researchers watch these consent videos on a special page of the researcher interface, and record for each one whether the video shows informed consent. They cannot view other video or download data from a session unless they have confirmed that you consented to participate! If they see a consent video that does NOT clearly demonstrate informed consent--for instance, there was a technical problem and there's no audio--they may contact you to check, depending on your email settings.</p>
{% endblocktranslate %}
<div class="d-flex justify-content-center">
<video controls preload="metadata">
<source src="{% static 'videos/consent.mp4' %}" type="video/mp4" />
<track label="English"
kind="captions"
srclang="en"
src="{% static 'videos/english/consent.vtt' %}" />
</video>
</div>
<div class="d-flex justify-content-center">
<video controls preload="metadata">
<source src="{% static video_consent_mp4 %}" type="video/mp4" />
<track label="{{ captions_label }}"
kind="captions"
srclang="en"
src="{% static captions_src %}" />
</video>
</div>
</div>
</div>
</div>
Expand Down
6 changes: 5 additions & 1 deletion web/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@
name="experiment-assets-proxy",
),
path("", TemplateView.as_view(template_name="web/home.html"), name="home"),
path("faq/", TemplateView.as_view(template_name="web/faq.html"), name="faq"),
path(
"faq/",
views.FaqView.as_view(),
name="faq",
),
path(
"privacy/",
TemplateView.as_view(template_name="web/privacy.html"),
Expand Down
16 changes: 16 additions & 0 deletions web/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -841,3 +841,19 @@ def get_context_data(self, **kwargs):
]

return context

class FaqView(generic.TemplateView):
template_name = "web/faq.html"

def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
if get_language() == 'ja':
context["video_consent_mp4"] = 'videos/consent_ja.mp4'
context["captions_label"] = ''
context["captions_src"] = ''
else:
context["video_consent_mp4"] = 'videos/consent.mp4'
context["captions_label"] = 'English'
context["captions_src"] = 'videos/english/consent.vtt'

return context

0 comments on commit 189356c

Please sign in to comment.