Skip to content

Commit

Permalink
feat: add the ability to configure the block as scorable from Studio (#…
Browse files Browse the repository at this point in the history
…21)

* feat: add ability to configure the block as scorable from studio

* test: update current unit test

* chore: update translations

* refactor: address PR review
  • Loading branch information
BryanttV authored Sep 22, 2023
1 parent 6dffdee commit becfb01
Show file tree
Hide file tree
Showing 12 changed files with 217 additions and 122 deletions.
75 changes: 44 additions & 31 deletions mindmap/locale/en/LC_MESSAGES/text.po
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-09-18 11:39-0500\n"
"POT-Creation-Date: 2023-09-21 14:45-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Bryann Valderrama <[email protected]>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand All @@ -22,64 +22,77 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: mindmap.py:41 public/html/mindmap_edit.html:7
#: mindmap.py:38 public/html/mindmap_edit.html:14
msgid "Is scorable?"
msgstr ""

#: mindmap.py:40
msgid ""
"Whether the component is scorable. If is scorable, the student can submit "
"the mind map and receive a score from the instructor. If it is not scorable, "
"the student only can save the mind map. WARNING: Changing from scorable to "
"not scorable, the progress of the students who have already been assigned a "
"grade will not be reset."
msgstr ""

#: mindmap.py:52 public/html/mindmap_edit.html:7
msgid "Display name"
msgstr ""

#: mindmap.py:48
#: mindmap.py:59
msgid ""
"Whether the mind map is static or not. If it is static, the instructor can "
"create a mind map and it will be the same for all students. If it is not "
"static, the students can create their own mind maps."
msgstr ""

#: mindmap.py:52 public/html/mindmap_edit.html:30
#: mindmap.py:63 public/html/mindmap_edit.html:40
msgid "Is a static mindmap?"
msgstr ""

#: mindmap.py:59
#: mindmap.py:70
msgid ""
"The mind map that will be shown to students if the\"Is a static mindmap?\" "
"field is set to \"True\""
msgstr ""

#: mindmap.py:62
#: mindmap.py:73
msgid "Mindmap body"
msgstr ""

#: mindmap.py:82
#: mindmap.py:93
msgid ""
"The body of the mind map. It is a dictionary with the following structure: "
"{'root': {'text': 'Root', 'children': [{'text': 'Child 1', 'children': []}]}}"
msgstr ""

#: mindmap.py:85
#: mindmap.py:96
msgid "Mindmap student body"
msgstr ""

#: mindmap.py:91
#: mindmap.py:102
msgid "Problem Weight"
msgstr ""

#: mindmap.py:93
#: mindmap.py:104
msgid ""
"Defines the number of points each problem is worth. If the value is not set, "
"the problem is worth the sum of the option point values."
msgstr ""

#: mindmap.py:102
#: mindmap.py:113
msgid "Maximum score"
msgstr ""

#: mindmap.py:103
#: mindmap.py:114
msgid "Maximum grade score given to assignment by instructors."
msgstr ""

#: mindmap.py:109
#: mindmap.py:120
msgid "Submitted"
msgstr ""

#: mindmap.py:110
#: mindmap.py:121
msgid "Whether the student has submitted their submission."
msgstr ""

Expand Down Expand Up @@ -132,43 +145,43 @@ msgid "Save assignment"
msgstr ""

#: public/html/mindmap.html:58
#: public/js/src/mindmap.js:159
#: public/js/src/mindmap.js:161
msgid "Submit"
msgstr ""

#: public/html/mindmap.html:62
#: public/html/mindmap.html:60 public/html/mindmap_edit.html:62
msgid "Save"
msgstr ""

#: public/html/mindmap.html:64
msgid "Your score is:"
msgstr ""

#: public/html/mindmap.html:66
#: public/html/mindmap.html:68
msgid "Grade submissions"
msgstr ""

#: public/html/mindmap_edit.html:14
msgid "Weight"
#: public/html/mindmap_edit.html:16 public/html/mindmap_edit.html:42
msgid "True"
msgstr ""

#: public/html/mindmap_edit.html:22
msgid "Points"
#: public/html/mindmap_edit.html:17 public/html/mindmap_edit.html:43
msgid "False"
msgstr ""

#: public/html/mindmap_edit.html:32
msgid "True"
#: public/html/mindmap_edit.html:24
msgid "Weight"
msgstr ""

#: public/html/mindmap_edit.html:33
msgid "False"
#: public/html/mindmap_edit.html:32
msgid "Points"
msgstr ""

#: public/html/mindmap_edit.html:41
#: public/html/mindmap_edit.html:51
msgid "Mind map"
msgstr ""

#: public/html/mindmap_edit.html:52
msgid "Save"
msgstr ""

#: public/html/mindmap_edit.html:55
#: public/html/mindmap_edit.html:65
msgid "Cancel"
msgstr ""

Expand Down
Binary file modified mindmap/locale/es_419/LC_MESSAGES/text.mo
Binary file not shown.
84 changes: 51 additions & 33 deletions mindmap/locale/es_419/LC_MESSAGES/text.po
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-09-18 11:39-0500\n"
"POT-Creation-Date: 2023-09-20 17:42-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Bryann Valderrama <[email protected]>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand All @@ -22,11 +22,29 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: mindmap.py:41 public/html/mindmap_edit.html:7
#: mindmap.py:38 public/html/mindmap_edit.html:14
msgid "Is scorable?"
msgstr "¿Es calificable?"

#: mindmap.py:40
msgid ""
"Whether the component is scorable. If is scorable, the student can submit "
"the mind map and receive a score from the instructor. If it is not scorable, "
"the student only can save the mind map. WARNING: Changing from scorable to "
"not scorable, the progress of the students who have already been assigned a "
"grade will not be reset."
msgstr ""
"Si el componente es calificable. Si es calificable, el estudiante puede "
"enviar el mapa mental y recibir una calificación del instructor. Si no es "
"calificable, el estudiante solo puede guardar el mapa mental. ADVERTENCIA: "
"Si cambia de calificable a no calificable, no se restablecerá el progreso "
"de los estudiantes a los que ya se les haya asignado una calificación"

#: mindmap.py:52 public/html/mindmap_edit.html:7
msgid "Display name"
msgstr "Nombre a mostrar"

#: mindmap.py:48
#: mindmap.py:59
msgid ""
"Whether the mind map is static or not. If it is static, the instructor can "
"create a mind map and it will be the same for all students. If it is not "
Expand All @@ -36,39 +54,39 @@ msgstr ""
"crear un mapa mental y será el mismo para todos los estudiantes. Si no es "
"estático, los estudiantes pueden crear sus propios mapas mentales."

#: mindmap.py:52 public/html/mindmap_edit.html:30
#: mindmap.py:63 public/html/mindmap_edit.html:40
msgid "Is a static mindmap?"
msgstr "¿Es un mapa mental estático?"

#: mindmap.py:59
#: mindmap.py:70
msgid ""
"The mind map that will be shown to students if the\"Is a static mindmap?\" "
"field is set to \"True\""
msgstr ""
"El mapa mental que se mostrará a los estudiantes si el campo \"¿Es un mapa "
"mental estático?\" está establecido en \"Verdadero\""

#: mindmap.py:62
#: mindmap.py:73
msgid "Mindmap body"
msgstr "Contenido del mapa mental"

#: mindmap.py:82
#: mindmap.py:93
msgid ""
"The body of the mind map. It is a dictionary with the following structure: "
"{'root': {'text': 'Root', 'children': [{'text': 'Child 1', 'children': []}]}}"
msgstr ""
"El contenido del mapa mental. Es un diccionario con la siguiente estructura: "
"{'root': {'text': 'Root', 'children': [{'text': 'Child 1', 'children': []}]}}"

#: mindmap.py:85
#: mindmap.py:96
msgid "Mindmap student body"
msgstr "Contenido del mapa mental del estudiante"

#: mindmap.py:91
#: mindmap.py:102
msgid "Problem Weight"
msgstr "Peso del problema"

#: mindmap.py:93
#: mindmap.py:104
msgid ""
"Defines the number of points each problem is worth. If the value is not set, "
"the problem is worth the sum of the option point values."
Expand All @@ -77,19 +95,19 @@ msgstr ""
"establecido, el problema vale la suma de los valores de puntos de las "
"opciones."

#: mindmap.py:102
#: mindmap.py:113
msgid "Maximum score"
msgstr "Puntaje máximo"

#: mindmap.py:103
#: mindmap.py:114
msgid "Maximum grade score given to assignment by instructors."
msgstr "Puntaje máximo de calificación otorgado a la tarea por los instructores."

#: mindmap.py:109
#: mindmap.py:120
msgid "Submitted"
msgstr "Enviado"

#: mindmap.py:110
#: mindmap.py:121
msgid "Whether the student has submitted their submission."
msgstr "Si el estudiante ha realizado su envío."

Expand Down Expand Up @@ -142,43 +160,43 @@ msgid "Save assignment"
msgstr "Guardar asignación"

#: public/html/mindmap.html:58
#: public/js/src/mindmap.js:159
#: public/js/src/mindmap.js:161
msgid "Submit"
msgstr "Enviar"

#: public/html/mindmap.html:62
#: public/html/mindmap.html:60 public/html/mindmap_edit.html:62
msgid "Save"
msgstr "Guardar"

#: public/html/mindmap.html:64
msgid "Your score is:"
msgstr "Tu puntaje es:"

#: public/html/mindmap.html:66
#: public/html/mindmap.html:68
msgid "Grade submissions"
msgstr "Calificar envíos"

#: public/html/mindmap_edit.html:14
msgid "Weight"
msgstr "Peso"

#: public/html/mindmap_edit.html:22
msgid "Points"
msgstr "Puntos"

#: public/html/mindmap_edit.html:32
#: public/html/mindmap_edit.html:16 public/html/mindmap_edit.html:42
msgid "True"
msgstr "Verdadero"

#: public/html/mindmap_edit.html:33
#: public/html/mindmap_edit.html:17 public/html/mindmap_edit.html:43
msgid "False"
msgstr "Falso"

#: public/html/mindmap_edit.html:41
#: public/html/mindmap_edit.html:24
msgid "Weight"
msgstr "Peso"

#: public/html/mindmap_edit.html:32
msgid "Points"
msgstr "Puntos"

#: public/html/mindmap_edit.html:51
msgid "Mind map"
msgstr "Mapa mental"

#: public/html/mindmap_edit.html:52
msgid "Save"
msgstr "Guardar"

#: public/html/mindmap_edit.html:55
#: public/html/mindmap_edit.html:65
msgid "Cancel"
msgstr "Cancelar"

Expand Down
Binary file modified mindmap/locale/es_ES/LC_MESSAGES/text.mo
Binary file not shown.
Loading

0 comments on commit becfb01

Please sign in to comment.