diff --git a/web/main.py b/web/main.py index 3e2216a..dc9a5c6 100755 --- a/web/main.py +++ b/web/main.py @@ -1,3 +1,5 @@ +import translations + from pixi_interface import PIXIInterface from word_presentation import AssignmentModel @@ -8,7 +10,9 @@ async def load_data(): import transcrypt_csv - data = await asyncMakeRequest("resources/stimuli.csv") + data = await asyncMakeRequest( + f"resources/{translations.Default.stimuli_file}" + ) return transcrypt_csv.parse_csv(data.strip()) diff --git a/web/resources/stimuli_en.csv b/web/resources/stimuli_en.csv new file mode 100755 index 0000000..0a12ef5 --- /dev/null +++ b/web/resources/stimuli_en.csv @@ -0,0 +1,81 @@ +word,translation,image +daina,song,room1.jpg +kede,chair,room1.jpg +langas,window,room1.jpg +nafta,oil,room1.jpg +pupa,bean,room1.jpg +sausainis,cookie,room1.jpg +tvartas,barn,room2.jpg +ziedas,ring,room2.jpg +augalas,plant,room2.jpg +duona,bread,room2.jpg +krautuve,store,room2.jpg +miestas,city,room2.jpg +palepstis,broom,room3.jpg +pyragas,cake,room3.jpg +sokis,dance,room3.jpg +upe,river,room3.jpg +akis,eye,room3.jpg +gele,flower,room3.jpg +kreida,chalk,room4.jpg +menulis,moon,room4.jpg +pastatas,building,room4.jpg +pinigine,wallet,room4.jpg +smegenys,brain,room4.jpg +urvas,cave,room4.jpg +arbata,tea,room5.jpg +durys,door,room5.jpg +kardas,sword,room5.jpg +mesa,meat,room5.jpg +palaidine,shirt,room5.jpg +raktas,key,room5.jpg +stalas,table,room6.jpg +vanduo,water,room6.jpg +adata,needle,room6.jpg +kablelis,hook,room6.jpg +kunigas,priest,room6.jpg +medis,tree,room6.jpg +pienas,milk,room7.jpg +rusys,basement,room7.jpg +sesuo,sister,room7.jpg +vaistas,drug,room7.jpg +auksas,gold,room7.jpg +kumpis,ham,room7.jpg +laidas,wire,room8.jpg +obuolys,apple,room8.jpg +riteris,knight,room8.jpg +sakute,fork,room8.jpg +tiltas,bridge,room8.jpg +zirkles,scissors,room8.jpg +batas,shoe,room9.jpg +karalius,king,room9.jpg +lova,bed,room9.jpg +mokykla,school,room9.jpg +purvas,dirt,room9.jpg +sketis,umbrella,room9.jpg +tinklas,net,room10.jpg +vinis,nail,room10.jpg +bulve,potato,room10.jpg +knyga,book,room10.jpg +ledas,ice,room10.jpg +mygtukas,button,room10.jpg +paukstis,bird,room1.jpg +salmas,helmet,room1.jpg +turgus,market,room2.jpg +vejas,wind,room2.jpg +burna,mouth,room3.jpg +kraujas,blood,room3.jpg +laiptelis,stair,room4.jpg +namas,house,room4.jpg +plyta,stone,room5.jpg +stogas,roof,room5.jpg +traukinys,train,room6.jpg +zole,grass,room6.jpg +bugnas,drum,room7.jpg +koja,leg,room7.jpg +lietus,rain,room8.jpg +puodelis,cup,room8.jpg +plaukas,hair,room9.jpg +smaragdas,emerald,room9.jpg +tvora,fence,room10.jpg +zuvis,fish,room10.jpg diff --git a/web/resources/stimuli.csv b/web/resources/stimuli_nl.csv similarity index 100% rename from web/resources/stimuli.csv rename to web/resources/stimuli_nl.csv diff --git a/web/translations.py b/web/translations.py index 571e689..a42a5da 100644 --- a/web/translations.py +++ b/web/translations.py @@ -1,4 +1,6 @@ class NL: + stimuli_file = "stimuli_nl.csv" + instruction_strings = """ In het komende uur ga je Litouwse woorden leren. Probeer deze woorden zo goed mogelijk te onthouden, zodat je ze volgende week op een toets naar het Nederlands kunt vertalen! @@ -59,6 +61,8 @@ class NL: class EN(NL): + stimuli_file = "stimuli_en.csv" + instruction_strings = """ In the coming hour you will learn Lithuanian words. Try to remember these words as good as possible such that you can translate them next week to English! @@ -82,6 +86,31 @@ class EN(NL): Press [Enter] to start the task! Good luck! +""".strip() + + image_learn_instruction = "Make an image of the word and press [Enter]" + + score_pattern = "Score: {score}" + + recap_pre_instructions = """ +You already practiced quite a lot of words! Let’s see how well you can remember them! + +[Enter] +--------------- +First, please think of the background images in which you pictured the different words. Do you remember all the rooms that you have seen so far? + +[Enter] +""".strip() + + recap_during_instructions = """ +Now please think of the words that you pictured in this location and their translations. Then press [Enter] to see if you remembered them all. +--------------- +These are the words: +{words} +""".strip() + + recap_post_instructions = """ +Well done! Now you can continue practicing the words! [Enter] """.strip() start_video_button = "Start instructions video"