Skip to content

Commit

Permalink
optimized the language of the consent form prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
trbKnl committed Mar 29, 2024
1 parent f920477 commit 75127c0
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions src/framework/processing/py/port/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,33 @@ def generate_file_prompt(platform, extensions) -> props.PropsUIPromptFileInput:

def generate_consent_prompt(df: pd.DataFrame) -> props.PropsUIPromptConsentForm:
table_title = props.Translatable({
"en": "Zip file contents",
"nl": "Inhoud zip bestand"
"en": "The contents of your zipfile contents",
"nl": "De inhoud van uw zip bestand"
})

description = props.Translatable({
"en": "Below you will find meta data about the contents of the zip file you submitted. Please review the data carefully and remove any information you do not wish to share. If you would like to share this data, click on the 'Yes, share for research' button at the bottom of this page. By sharing this data, you contribute to research <insert short explanation about your research here>.",
"nl": "Hieronder ziet u gegevens over de zip die u heeft ingediend. Bekijk de gegevens zorgvuldig, en verwijder de gegevens die u niet wilt delen. Als u deze gegevens wilt delen, klik dan op de knop 'Ja, deel voor onderzoek' onderaan deze pagina. Door deze gegevens te delen draagt u bij aan onderzoek over <korte zin over het onderzoek>."
})

donate_question = props.Translatable({
"en": "Do you want to share this data for research?",
"nl": "Wilt u deze gegevens delen voor onderzoek?"
})

donate_button = props.Translatable({
"en": "Yes, share for research",
"nl": "Ja, deel voor onderzoek"
})

table = props.PropsUIPromptConsentFormTable("zip_contents", table_title, df)
return props.PropsUIPromptConsentForm([table], [])
return props.PropsUIPromptConsentForm(
[table],
[],
description = description,
donate_question = donate_question,
donate_button = donate_button
)


def donate(key, json_string):
Expand Down

0 comments on commit 75127c0

Please sign in to comment.