Skip to content

Commit

Permalink
Full english version
Browse files Browse the repository at this point in the history
  • Loading branch information
MrApplejuice committed Sep 22, 2023
1 parent af3a6b3 commit 545536e
Show file tree
Hide file tree
Showing 4 changed files with 115 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/main.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import translations

from pixi_interface import PIXIInterface
from word_presentation import AssignmentModel

Expand All @@ -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())


Expand Down
81 changes: 81 additions & 0 deletions web/resources/stimuli_en.csv
Original file line number Diff line number Diff line change
@@ -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
File renamed without changes.
29 changes: 29 additions & 0 deletions web/translations.py
Original file line number Diff line number Diff line change
@@ -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!
Expand Down Expand Up @@ -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!
Expand All @@ -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"
Expand Down

0 comments on commit 545536e

Please sign in to comment.