Skip to content

Commit

Permalink
Tab names now use localized keywords (NL) (hedyorg#4370)
Browse files Browse the repository at this point in the history
Localize tab names
  • Loading branch information
MarleenGilsing authored Aug 2, 2023
1 parent a058b18 commit cecc64f
Show file tree
Hide file tree
Showing 47 changed files with 660 additions and 660 deletions.
28 changes: 14 additions & 14 deletions content/adventures/ar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -837,7 +837,7 @@ adventures:
description: Try linking a keyboard key to a command!
default_save_name: Pressed
print_command:
name: print
name: "{print}"
levels:
1:
story_text: "## The print command\nYou can print text to the screen using the `{print}` command.\n"
Expand Down Expand Up @@ -875,7 +875,7 @@ adventures:
example_code_2: "```\n{print} Hello!\n{ask} What is your name?\n{echo} hello\n```\n"
example_code_3: "```\n_ How are you doing?\n_\n```\n"
start_code: "{print} Hello!\n{ask} What is your name?\n{echo} hello\n"
name: ask
name: "{ask}"
description: Introduction ask command
default_save_name: ask_command
random_command:
Expand All @@ -892,11 +892,11 @@ adventures:
start_code: "animals {is} dog, cat, kangaroo\n{print} animals {at} {random}\n"
story_text_3: "### Exercise\nTry out the `{at} {random}` command by making your own gameshow (like the ones on tv) where you choose a door or suitcase and it contains a big price!\nCan you do it? We have already put the first lines into the example code.\n"
example_code_3: "```\n{print} The big gameshow!\n{print} There are 3 suitcases in front of you...\nchosen {is} {ask} Which suitcase do you choose?\nprices {is} _\n_\n```\n"
name: random
name: "{random}"
description: introducing at random command
default_save_name: random_command
add_remove_command:
name: add and remove
name: "{add} {to} & {remove} {from}"
description: introducing add to and remove from
default_save_name: add_remove_command
levels:
Expand Down Expand Up @@ -943,7 +943,7 @@ adventures:
start_code: "{repeat} 3 {times}\n food = {ask} 'What do you want?'\n {if} food {is} pizza\n {print} 'nice!'\n {else}\n {print} 'pizza is better'"
story_text: "In this level you can not only use multiple lines with `{if}` and `{repeat}`, but you can also put them together!\nIn the example you see an `{if}` command within a `{repeat}` command. It is also allowed the other way around, and an `{if}` is also allowed in an `{if}` and a `{repeat}` in a `{repeat}`.\nGive it a try!\n"
example_code: "```\n{repeat} 3 {times}\n food = {ask} 'What do you want?'\n {if} food {is} pizza\n {print} 'nice!'\n {else}\n {print} 'pizza is better'\n```\n"
name: Repeat
name: "{repeat}"
description: repeat command
default_save_name: repeat_command
for_command:
Expand All @@ -956,7 +956,7 @@ adventures:
start_code: "animals {is} dog, cat, blobfish\n{for} animal {in} animals\n {print} 'I love ' animal"
story_text: "## For\nIn this level we learn a new code called `{for}`. With `{for}` you can make a list and use all elements.\n`{for}` creates a block, like `{repeat}` and `{if}` so all lines in the block need to start with 4 spaces."
example_code: "```\nanimals {is} dog, cat, blobfish\n{for} animal {in} animals\n {print} 'I love ' animal\n```\n"
name: for
name: "{for}"
description: for command
default_save_name: for
maths:
Expand Down Expand Up @@ -993,7 +993,7 @@ adventures:
example_code: "```\nhouses = Gryffindor, Slytherin, Hufflepuff, Ravenclaw\nsubjects = potions, defence against the dark arts, charms, transfiguration\nfears = Voldemort, spiders, failing your OWL test\nnames = Harry, Ron, Hermione\n_\n_ {print} name ' is placed in ' houses {at} {random}\n_ {print} name ' is great at ' subjects {at} {random}\n_ {print} name 's greatest fear is ' fears {at} {random}\n```\n"
start_code: '# place your code here'
is_command:
name: is
name: "{is}"
description: introducing is command
default_save_name: is_command
levels:
Expand All @@ -1012,7 +1012,7 @@ adventures:
story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n"
example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n"
sleep_command:
name: sleep
name: "{sleep}"
description: introducing sleep command
default_save_name: sleep_command
levels:
Expand All @@ -1021,7 +1021,7 @@ adventures:
example_code: "```\n{print} My favorite colour is...\n{sleep} 2\n{print} green!\n```\n"
start_code: "{print} My favorite colour is...\n{sleep} 2\n{print} green!"
if_command:
name: if else
name: "{if} & {else}"
description: Introducing the if command
default_save_name: if_command
levels:
Expand All @@ -1038,7 +1038,7 @@ adventures:
example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n"
story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n"
in_command:
name: in
name: "{in}"
description: Introducing the in command
default_save_name: in_command
levels:
Expand All @@ -1049,7 +1049,7 @@ adventures:
example_code_2: "```\nanimals is dog, cow, sheep\nanswer is ask 'What is your favorite animal?'\n_ answer _ animals _ 'Mine too!'\n_ _ 'My favorite animals are dogs, cows and sheep'\n```\n"
start_code: "pretty_colors {is} green, yellow\nfavorite_color {is} {ask} 'What is your favorite color?'\n{if} favorite_color {in} pretty_colors {print} 'pretty!'\n{else} {print} 'meh'"
repeat_command_2:
name: Repeat 2
name: "{repeat} 2"
description: repeat command 2
default_save_name: repeat_command_2
levels:
Expand All @@ -1064,7 +1064,7 @@ adventures:
example_code: "```\n_ {print} 'Do you know the muffin man?'\n_ {repeat} 2 {times}\n_ {print} 'The muffin man'\n_ {print} 'Do you know the muffin man, who lives on Drury Lane?'\n```\n"
start_code: "{repeat} 3 {times}\n {print} 'This line will be repeated...'\n {print} 'This one too...'\n{print} 'but this one will not!'"
and_or_command:
name: and or
name: "{and} & {or}"
description: introducing and or
default_save_name: and or
levels:
Expand All @@ -1073,7 +1073,7 @@ adventures:
story_text: "We are now going to learn `{and}` and `{or}`! If you want to check two statements, you don't have to use two `{if}`s but can use `{and}` and `{or}`.\n\nIf you use `{and}`, both statements, left and right of the `{and}` need to be true. We can also use `{or}`. Then only one statement needs to be correct."
example_code: "```\nname = {ask} 'what is your name?'\nage = {ask} 'what is your age?'\n{if} name {is} 'Hedy' {and} age {is} 2\n {print} 'You are the real Hedy!'\n```\n"
while_command:
name: while
name: "{while}"
description: while
default_save_name: while_command
levels:
Expand All @@ -1082,7 +1082,7 @@ adventures:
story_text: "We are going to learn a new loop, the `{while}` loop! We continue the loop as long as the statement is true.\nSo don't forget to change the value in the loop.\n\nIn the example code, we continue until a correct answer has been given.\nIf the correct answer is never given, the loop never ends!"
example_code: "```\nanswer = 0\n{while} answer != 25\n answer = {ask} 'What is 5 times 5?'\n{print} 'A correct answer has been given'\n```\n"
elif_command:
name: elif
name: "{elif}"
description: elif
default_save_name: elif
levels:
Expand Down
28 changes: 14 additions & 14 deletions content/adventures/bg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1651,7 +1651,7 @@ adventures:
start_code: '# place your code here'
example_code: "```\npoints = 0\nletters = a, b, c, d, e\n{repeat} 10 {times}\n letter = _ _ _\n {print} 'Press the letter ' letter\n {if} letter {is} {pressed}\n _\n _\n _\n```\n"
print_command:
name: print
name: "{print}"
description: Introduction print command
default_save_name: print
levels:
Expand All @@ -1675,7 +1675,7 @@ adventures:
example_code_3: "```\n{print}('My name is Hedy!')\nname = {input}('What is your name?')\n{print}('So your name is ', name)\n```\n"
random_command:
default_save_name: random_command
name: random
name: "{random}"
description: introducing at random command
levels:
3:
Expand Down Expand Up @@ -1704,11 +1704,11 @@ adventures:
start_code: "name {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n"
example_code: "```\nname {is} {ask} 'What is your name?'\n{if} name {is} Hedy\n {print} 'Welcome Hedy'\n {print} 'You can play on your computer!'\n```\n"
story_text: "## If... Else...\nYou have learned to repeat a block of lines of code after a `{repeat}` command.\nNow you can also use indentation to make blocks after a {if} or {else} command.\nCheck out the example code.\n\n### Exercise\nAdd an {else} command to the example code. Make a block of line using indentation. You do this by starting each line with 4 spaces.\n"
name: if else
name: "{if} & {else}"
description: Introducing the if command
default_save_name: if_command
in_command:
name: in
name: "{in}"
description: Introducing the in command
default_save_name: in_command
levels:
Expand All @@ -1719,7 +1719,7 @@ adventures:
example_code_2: "```\nanimals is dog, cow, sheep\nanswer is ask 'What is your favorite animal?'\n_ answer _ animals _ 'Mine too!'\n_ _ 'My favorite animals are dogs, cows and sheep'\n```\n"
start_code: "pretty_colors {is} green, yellow\nfavorite_color {is} {ask} 'What is your favorite color?'\n{if} favorite_color {in} pretty_colors {print} 'pretty!'\n{else} {print} 'meh'"
repeat_command_2:
name: Repeat 2
name: "{repeat} 2"
description: repeat command 2
default_save_name: repeat_command_2
levels:
Expand All @@ -1734,7 +1734,7 @@ adventures:
example_code: "```\n_ {print} 'Do you know the muffin man?'\n_ {repeat} 2 {times}\n_ {print} 'The muffin man'\n_ {print} 'Do you know the muffin man, who lives on Drury Lane?'\n```\n"
start_code: "{repeat} 3 {times}\n {print} 'This line will be repeated...'\n {print} 'This one too...'\n{print} 'but this one will not!'"
elif_command:
name: elif
name: "{elif}"
description: elif
default_save_name: elif
levels:
Expand All @@ -1761,7 +1761,7 @@ adventures:
example_code: "```\nhouses = Gryffindor, Slytherin, Hufflepuff, Ravenclaw\nsubjects = potions, defence against the dark arts, charms, transfiguration\nfears = Voldemort, spiders, failing your OWL test\nnames = Harry, Ron, Hermione\n_\n_ {print} name ' is placed in ' houses {at} {random}\n_ {print} name ' is great at ' subjects {at} {random}\n_ {print} name 's greatest fear is ' fears {at} {random}\n```\n"
name: Harry Potter
ask_command:
name: ask
name: "{ask}"
description: Introduction ask command
default_save_name: ask_command
levels:
Expand All @@ -1780,7 +1780,7 @@ adventures:
example_code_2: "```\nfavorite_animals is ask What is your favorite animal?\nprint I like favorite_animals\n```\n"
start_code: "name {is} {ask} What is your name?\n{print} Hello name\nage {is} {ask} How old are you?\n{print} name is age years old."
is_command:
name: is
name: "{is}"
description: introducing is command
default_save_name: is_command
levels:
Expand All @@ -1799,7 +1799,7 @@ adventures:
story_text_3: "You can also compare if something is *not* equal to something else using `!=` like this:\n"
example_code_3: "```\nname = {ask} 'What is your name?'\n{if} name != 'Hedy'\n {print} 'You are not Hedy'\n```\n"
add_remove_command:
name: add and remove
name: "{add} {to} & {remove} {from}"
description: introducing add to and remove from
default_save_name: add_remove_command
levels:
Expand All @@ -1812,7 +1812,7 @@ adventures:
example_code_3: "```\n{print} Mystery milkshake\nflavors {is} strawberry, chocolate, vanilla\nhope {is} {ask} What flavor are you hoping for?\n_\nallergies {is} {ask} Are you allergic to any flavors?\n_\n{print} You get a flavors {at} {random} milkshake\n```\n"
start_code: "animals {is} dog, cat, kangaroo\nlike {is} {ask} What is your favorite animal?\n{add} like {to_list} animals\ndislike {is} {ask} What animal do you not like?\n{remove} dislike {from} animals\n{print} I choose animals {at} {random}"
sleep_command:
name: sleep
name: "{sleep}"
description: introducing sleep command
default_save_name: sleep_command
levels:
Expand Down Expand Up @@ -1842,7 +1842,7 @@ adventures:
example_code_4: "```\nscore = 25\n{print} 'You got ' score\n```\n"
start_code: "name = {ask} 'What is your name?'\n{if} name = 'Hedy the Robot'\n {print} 'Hi there!'"
repeat_command:
name: Repeat
name: "{repeat}"
description: repeat command
default_save_name: repeat_command
levels:
Expand All @@ -1859,7 +1859,7 @@ adventures:
story_text: "In this level you can not only use multiple lines with `{if}` and `{repeat}`, but you can also put them together!\nIn the example you see an `{if}` command within a `{repeat}` command. It is also allowed the other way around, and an `{if}` is also allowed in an `{if}` and a `{repeat}` in a `{repeat}`.\nGive it a try!\n"
example_code: "```\n{repeat} 3 {times}\n food = {ask} 'What do you want?'\n {if} food {is} pizza\n {print} 'nice!'\n {else}\n {print} 'pizza is better'\n```\n"
for_command:
name: for
name: "{for}"
description: for command
default_save_name: for
levels:
Expand Down Expand Up @@ -1887,7 +1887,7 @@ adventures:
story_text: "**Decimal numbers**\nSo far, Hedy did not allow for decimal numbers like 1.5, but now we do allow that. Note that computers use the `.` for decimal numbers."
example_code: "```\n{print} 'Two and a half plus two and a half is...'\n{print} 2.5 + 2.5\n```\n"
and_or_command:
name: and or
name: "{and} & {or}"
description: introducing and or
default_save_name: and or
levels:
Expand All @@ -1896,7 +1896,7 @@ adventures:
story_text: "We are now going to learn `{and}` and `{or}`! If you want to check two statements, you don't have to use two `{if}`s but can use `{and}` and `{or}`.\n\nIf you use `{and}`, both statements, left and right of the `{and}` need to be true. We can also use `{or}`. Then only one statement needs to be correct."
example_code: "```\nname = {ask} 'what is your name?'\nage = {ask} 'what is your age?'\n{if} name {is} 'Hedy' {and} age {is} 2\n {print} 'You are the real Hedy!'\n```\n"
while_command:
name: while
name: "{while}"
description: while
default_save_name: while_command
levels:
Expand Down
Loading

0 comments on commit cecc64f

Please sign in to comment.