Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translations update from Hosted Weblate #5613

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
139 changes: 139 additions & 0 deletions content/achievements/ang.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
achievements:
my_class_my_rules:
text: Customize a class
title: My Class, my Rules
hedy-ious:
text: Print 10 times the same string without using a loop
title: Hedy-ious
getting_started_I:
title: Getting Started I
text: Run 5 Hedy programs
getting_started_II:
text: Run 10 Hedy programs
title: Getting Started II
quiz_master:
text: Get the maximum score on a quiz
title: Quiz Master
getting_started_IV:
title: Getting Started IV
text: Run 200 Hedy programs
detention:
title: Detention!
text: Remove a student from a class
ring_the_bell:
text: Finish the teacher tutorial
title: Ring the Bell
programming_panic:
title: Programming Panic
text: Try to run a faulty program 3 times in a row
fresh_look:
title: Fresh Look
text: Change your profile picture
indiana_jones:
title: Indiana Jones
text: Search within the explore page
deadline_daredevil_II:
title: Deadline Daredevil II
text: Submit 3 Hedy programs
hedy_hacking:
text: Create a timeout due to your program running too long
title: Hedy Hacking
hedy_certificate:
title: Hedy Certificate of Completion
text: Hedy Certificate of Completion
adventure_is_worthwhile:
text: Store a program from an adventure
title: Adventure is Worthwhile
hedy_honor:
title: Hedy Honor
text: Run a program that prints the text 'Hedy'
one_to_remember_III:
text: Save 10 Hedy programs
title: One to Remember III
one_for_money:
text: Duplicate a class
title: One for the Money, Two for the Show
did_you_say_please:
text: Create a program with the 'ask' command
title: Did you say please?
lets_focus:
title: Let's Focus
text: Turn on the programmers mode
make_some_noise:
text: Let your program be read aloud
title: Make Some Noise
one_to_remember_IV:
text: Save 25 Hedy programs
title: One to Remember IV
double_check:
text: Get a duplicate program name warning
title: Double-check
deadline_daredevil_I:
text: Submit 1 Hedy program
title: Deadline Daredevil I
one_to_remember_I:
text: Save 1 Hedy program
title: One to Remember I
one_to_remember_V:
text: Save 50 Hedy programs
title: One to Remember V
getting_started_V:
title: Getting Started V
text: Run 500 Hedy programs
deadline_daredevil_III:
title: Deadline Daredevil III
text: Submit 10 Hedy programs
epic_education:
title: Epic Education
text: Join a class
talk-talk-talk:
text: Create a program with a least 5 ask keywords
title: Talk-talk-talk
on_second_thoughts:
text: Rename a class
title: On Second Thoughts
do_you_have_copy:
title: Do you have a copy?
text: Delete a saved program
well_begun_is_half_done:
text: Finish the Hedy tutorial
title: Well begun is half done
trying_is_key:
text: Use all Hedy commands at least once
title: Gotta Use Them All
getting_started_III:
title: Getting Started III
text: Run 50 Hedy programs
watch_out:
text: Create a program that results in a (non-empty) warning
title: Watch out!
one_to_remember_II:
text: Save 5 Hedy programs
title: One to Remember II
end_of_semester:
text: Delete a class
title: End of Semester
ready_set_education:
title: Ready, Set, Education!
text: Create a class
ninja_turtle:
title: Ninja Turtle
text: Create a program with the turtle
sharing_is_caring:
title: Sharing is Caring
text: Share a saved program
programming_protagonist:
text: Run a successful program after an error
title: Programming Protagonist
error_or_empty:
title: Error or empty?
text: Create a program that has no output
go_live:
text: Create a public profile
title: Let's Go Live
full_house:
title: Full House
text: Have a class with more than 20 students
next_question:
title: Next Question...
text: Finish a Hedy quiz
1 change: 1 addition & 0 deletions content/adventures/ang.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
207 changes: 207 additions & 0 deletions content/cheatsheets/ang.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,207 @@
8:
- name: '{print}'
explanation: Print something. Remember to use a quotation mark for literal printing.
demo_code: "{print} '5 times 5 is ' 5 * 5"
- name: '{ask}'
demo_code: "answer = {ask} 'What is 5 plus 5?'\n{if} answer {is} 10\n {print} 'Well done!'\n {print} 'Indeed, the answer was ' answer\n{else}\n {print} 'Oops!'\n {print} 'The answer is 10'"
explanation: Ask for the answer to a sum and check if it is correct. We can now print 2 lines.
- explanation: Repeat multiple lines.
name: '{repeat} with turtle'
demo_code: "{repeat} 4 {times}\n {turn} 90\n {forward} 50"
- name: '{pressed}'
explanation: Check whether a given key on the keyboard is `{pressed}`.
demo_code: "{if} a {is} {pressed}\n {print} 'You pressed A!'\n{else}\n {print} 'You pressed another key!'"
13:
- explanation: Two parts both need to be correct.
demo_code: "answer1 = {ask} 'What is 3+2?'\nanswer2 = {ask} 'What is 2+2?'\n{if} answer1 {is} 5 {and} answer2 {is} 4\n {print} 'Both answers are correct!'\n{else}\n {print} 'At least one answer is wrong!'"
name: '{and}'
- demo_code: "answer1 = {ask} 'What is 3+2?'\nanswer2 = {ask} 'What is 2+2?'\n{if} answer1 {is} 5 {or} answer2 {is} 4\n {print} 'At least one answer is correct!'\n{else}\n {print} 'Both answers are wrong!'"
name: '{or}'
explanation: At least 1 of the two parts need to be correct. If both are correct, it is also fine.
4:
- explanation: Print exactly using quotation marks.
name: '{print}'
demo_code: "{print} 'Hello welcome to Hedy.'"
- demo_code: "name {is} Hedy\n{print} 'my name is ' name"
name: '{is}'
explanation: Give a name to some text and `{print}` without quotation marks.
- explanation: Ask something with `{ask}`.
demo_code: "color {is} {ask} 'What is your favorite color?'\n{print} color ' is your favorite!'"
name: '{ask}'
5:
- explanation: Print exactly using quotation marks.
name: '{print}'
demo_code: "{print} 'Hello welcome to Hedy.'"
- name: '{ask}'
demo_code: "color {is} {ask} 'What is your favorite color?'\n{print} color ' is your favorite!'"
explanation: Ask something with `{ask}`.
- demo_code: "color {is} {ask} 'What is your favorite color?'\n{if} color {is} green {print} 'pretty!' {else} {print} 'meh'"
explanation: Make a choice with `{if}`.
name: '{if}'
- name: '{if} with turtle'
explanation: Make a choice with `{if}`.
demo_code: "answer {is} {ask} 'How far should I walk?'\n{if} answer {is} far {forward} 100 {else} {forward} 5"
- demo_code: "pretty_colors {is} green, yellow\ncolor {is} {ask} 'What is your favorite color?'\n{if} color {in} pretty_colors {print} 'pretty!' {else} {print} 'meh'"
explanation: Check elements with `{in}`.
name: '{in}'
- demo_code: "{if} a {is} {pressed} {print} 'You pressed A!' {else} {print} 'You pressed another key!'"
explanation: Check whether a given key on the keyboard is `{pressed}`.
name: '{pressed}'
2:
- name: '{is}'
demo_code: "name {is} Hedy\n{print} welcome name"
explanation: Give a word a name to use in the program using `{is}`. You can choose the name yourself.
- demo_code: "color {is} {ask} What is your favorite color?\n{print} color is your favorite!"
name: '{ask}'
explanation: Ask something with `{ask}`. Beware! You need to give the answer a name with `{is}`.
- demo_code: "{print} Let me think for one second...\n{sleep}\n{print} Hmm.. I need 3 more seconds...\n{sleep} 3\n{print} Eureka! Ive got it!"
explanation: With `{sleep}`, you can let Hedy pause for a (couple of) second(s).
name: '{sleep}'
- demo_code: "angle {is} 90\n{turn} angle\n{forward} 100"
explanation: Give a number a name using `{is}`. You can choose the name yourself.
name: '{is} with turtle'
18:
- explanation: After `{print}` you need to use parentheses.
demo_code: "{print}('hi!')"
name: '{print}'
- name: '{range}'
explanation: After `{range}` you need to use parentheses.
demo_code: "{for} i {in} {range} (1,10):\n {print}('Hello, times ', i)"
- demo_code: "name = 'Hedy'\n{print}('my name is ', name)"
explanation: With `{print}` you need to use parentheses and commas if you print more items.
name: '{print} with var'
- explanation: Use `{input}` instead of `{ask}` to ask something.
name: ask something with {input}
demo_code: "name = {input}('What is your name?')\n{print}('So your name is ', name)"
14:
- explanation: We use the `<` to check if the first number is smaller than the second number.
demo_code: "age = {ask} 'How old are you?'\n{if} age < 13\n {print} 'You are younger than me!'"
name: Smaller
- demo_code: "age = {ask} 'How old are you?'\n{if} age > 13\n {print} 'You are older than me!'"
name: Bigger
explanation: We use the `>` to check if the first number is bigger than the second number.
- demo_code: "answer = {ask} 'What is 5 * 5?'\n{if} answer == 25\n {print} 'That is correct!'"
name: Equal
explanation: We use the `==` to check if two things are the same.
- explanation: We use the `!=` to check if two things are not the same.
name: Not equal
demo_code: "answer = {ask} 'What is 5 * 5?'\n{if} answer != 25\n {print} 'That is not correct!'"
- demo_code: "age = {ask} 'How old are you?'\n{if} age <= 12\n {print} 'You are younger than me!'"
name: Smaller or equal
explanation: We use the `<=` to check if the first number is smaller than or equal to the second number.
- demo_code: "age = {ask} 'How old are you?'\n{if} age >= 14\n {print} 'You are older than me!'"
explanation: We use the `>=` to check if the first number is bigger than or equal to the second number.
name: Bigger or equal
16:
- name: square brackets
explanation: Lists with square brackets.
demo_code: "fruit = ['apple', 'banana', 'cherry']\n{print} fruit"
- name: Get an item from a list
explanation: To get an item from a list we use [number] so fruit[1] means, get the first fruit from the list!
demo_code: "fruit = ['banana', 'apple', 'cherry']\nfirstfruit = fruit[1]\n{print} firstfruit"
- name: Get a random item from a list
explanation: To get a random item from a list we use [{random}] so fruit[{random}] means, get a random fruit from the list!
demo_code: "fruit = ['banana', 'apple', 'cherry']\nrandom_fruit = fruit[{random}]\n{print} random_fruit"
9:
- name: '{if} with multiple lines'
demo_code: "answer = {ask} 'What is 10 plus 10?'\n{if} answer {is} 20\n {print} 'Well done!!'\n {print} 'The answer is indeed' answer\n{else}\n {print} 'Wrong'\n {print} 'The answer is 20'"
explanation: The answer of a sum of questions with `{ask}` and see if it is correct. Now we print out two lines.
- explanation: Repeat multiple lines.
name: '{repeat} with turtle'
demo_code: "{repeat} 4 {times}\n {turn} 90\n {forward} 50"
12:
- explanation: Decimal numbers.
demo_code: "{print} 'Calculate away!'\n{print} 'Two and a half plus two and a half is...'\n{print} 2.5 + 2.5"
name: float directly
- demo_code: "name = 'Hedy the Robot'\n{print} 'Hello ' name"
explanation: Text with quotation marks after `=`
name: assign text
- explanation: Text with quotation marks after `{if}`.
name: quotes after `{if}` comparison
demo_code: "name = {ask} 'Who are you?'\n{if} name = 'Hedy'\n {print} 'Hi there!'"
- demo_code: "superheroes = 'Iron Man', 'Batman', 'Superman'\n{print} superheroes {at} {random}"
explanation: A list with quotation marks.
name: quotes in list
1:
- demo_code: '{print} Hello welcome to Hedy!'
name: '{print}'
explanation: Print something with `{print}`.
- name: '{ask}'
demo_code: '{ask} What is your favorite color?'
explanation: Ask something with `{ask}`.
- demo_code: "{ask} What is your favorite color?\n{echo} so your favorite color is"
name: '{echo}'
explanation: Repeat something using `{echo}`.
- name: '{print} emojis'
demo_code: '{print} 🙋 🌍 ❗'
explanation: Print an emoji with `{print}`.
- demo_code: '{forward} 100'
explanation: Draw a line with `{forward}`.
name: '{forward}'
- demo_code: "{forward} 25\n{turn} {left}\n{forward} 25\n{turn} {right}"
explanation: Turn the drawing turtle with `{turn}`.
name: '{turn}'
17:
- explanation: '`{elif}`'
demo_code: "a = 2\n{if} a == 1:\n {print} 'a is 1'\n{elif} a == 2:\n {print} 'a is 2'\n{else}:\n {print} 'a is not 1 or 2'"
name: '{elif}'
- name: '{print}'
demo_code: "{for} i {in} {range} 1 {to} 12:\n {print} i\n{print} 'Ready or not, here I come!'"
explanation: When we use a `{for}`, we need to put a `:` behind the `{for}` statement!
- explanation: We need to do the same with all of our `{if}` statements.
name: '{if}'
demo_code: "color = {ask} 'What is your favorite color?'\n{if} color == 'green':\n {print} 'Your favorite color is green'\n{else}:\n {print} 'Your favorite color is not green'"
3:
- name: Choose random
explanation: Choose a random word from a group with `{at}` and `{random}`.
demo_code: "animals {is} dog, cat, kangaroo\n{print} animals {at} {random}"
- demo_code: "animals {is} cow, cat\n{add} dog {to_list} animals"
explanation: '`{add}` an item `{to_list}` a list.'
name: '{add}'
- explanation: '`{remove}` an item `{from}` a list.'
demo_code: "animals {is} cat, dog, cow\n{remove} dog {from} animals"
name: '{remove}'
15:
- demo_code: "answer = 0\n{while} answer != 25\n answer = {ask} 'What is 5 times 5?'\n{print} 'A correct answer has been given'"
explanation: We can use the `{while}` loop with not equal.
name: '{while}'
- name: Smaller {while}
demo_code: "count = 1\n{while} count < 3\n {print} 'We do this ' 3 - count ' more times'\n count = count + 1\n{print} 'We are done'"
explanation: We can also use the `{while}` loop with `<` and `>`.
6:
- demo_code: "{print} '5 times 5 is ' 5 * 5"
explanation: Print exactly using quotation marks.
name: '{print}'
- name: '{ask}'
demo_code: "answer = {ask} 'What is 10 plus 10?'\n{if} answer {is} 20 {print} 'Yes!' {else} {print} 'Oops'"
explanation: Ask for a calculation and check whether it is correct.
- name: '`{ask}` and `{if}` with turtle'
explanation: Ask the user how many angles they want.
demo_code: "angles = {ask} 'How many angles?'\nangle = 360 / angles\n{forward} 50"
7:
- explanation: Print exactly using quotation marks.
name: '{print}'
demo_code: "{print} 'Hello welcome to Hedy.'"
- name: '{ask}'
explanation: Ask something with `{ask}`.
demo_code: "color = {ask} 'What is your favorite color?'\n{print} color ' is your favorite!'"
- explanation: Make a choice with `{if}`.
name: '{if}'
demo_code: "color = {ask} 'What is your favorite color?'\n{if} color {is} green {print} 'pretty!' {else} {print} 'meh'"
- demo_code: '{repeat} 3 {times} {forward} 10'
explanation: Repeat a line of code with `{repeat}`.
name: '{repeat} with turtle'
10:
- name: '{print}'
demo_code: "{print} '5 times 5 is ' 5 * 5"
explanation: Print something. Remember to use a quotation mark for literal printing.
- explanation: Print all things in a list.
name: '{for} with a list'
demo_code: "animals {is} dog, cat, blobfish\n{for} animal {in} animals\n {print} 'I love ' animal"
11:
- demo_code: "{for} counter {in} {range} 1 {to} 5\n {print} counter"
explanation: We can use `{for}` with a `{range}`.
name: '{for} loop'
- name: '{ask}'
demo_code: "answer = {ask} 'What is 5 plus 5?'\n{if} answer {is} 10\n {print} 'Well done!'\n {print} 'Indeed, the answer was ' answer\n{else}\n {print} 'Oops!'\n {print} 'The answer is 10'"
explanation: Ask for the answer to a sum and check if it is correct. We can now print 2 lines.
25 changes: 25 additions & 0 deletions content/client-messages/ang.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
haunted: 🦇, 👻, 🎃
Program_too_long: Your program takes too long to run.
Errors_found: You made a mistake! Don't worry, we still ran the program
turtle: 🐢
ServerError: You wrote a program we weren't expecting. If you want to help, send us an email with the level and your program at [email protected]. In the meantime, try something a little different and take another look at the examples. Thanks!
restaurant: 🍣, 🍕, 🍔
Execute_error: Something went wrong while running the program.
CheckInternet: Check whether your Internet connection is working.
Transpile_success:
- Good job!
- Amazing!
- Well done!
- Excellent!
- You did great!
Program_repair: This could be the correct code, can you fix it?
Other_error: Oops! Maybe we made a little mistake.
Connection_error: We couldn't reach the server.
Transpile_warning: Warning!
Transpile_error: We can't run your program.
songs: 🎵,🎶
Unsaved_Changes: You have an unsaved program. Do you want to leave without saving it?
dice: 🎲
rock: ✂️, 📜, 🗻
Empty_output: This code works but does not print anything. Add a print command to your code or use the turtle to get output.
fortune: 🔮, ✨
1 change: 1 addition & 0 deletions content/pages/ang.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Loading
Loading