Skip to content

Commit

Permalink
Merge branch 'main' into fix/add-german-translation-for-start-buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
boryanagoncharenko authored Feb 10, 2025
2 parents f47c50a + e2a3dc1 commit f7f5e7f
Show file tree
Hide file tree
Showing 18 changed files with 2,277 additions and 54 deletions.
1 change: 1 addition & 0 deletions content/adventures/be.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
60 changes: 30 additions & 30 deletions content/adventures/cs.yaml

Large diffs are not rendered by default.

15 changes: 12 additions & 3 deletions content/adventures/de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1309,9 +1309,18 @@ adventures:
Deshalb multiplizieren wir mit dem Stern (auf der Tastatur über dem Plus): `5 * 5`. Lies das als "5 mal 5", dann kannst du dich am einfachsten daran erinnern.
example_code: |
```
{print} '5 plus 5 macht ' 5 + 5
{print} '5 minus 5 macht ' 5 - 5
{print} '5 mal 5 macht ' 5 * 5
essen_preis {is} 0
getränk_preis {is} 0
gesamt_preis {is} 0
{print} 'Willkommen bei McHedy'
bestellung {is} {ask} 'Was möchtest du essen?'
{if} bestellung {is} Hamburger essen_preis {is} 5
{if} bestellung {is} Pommes essen_preis {is} 2
getränk {is} {ask} 'Was möchtest du trinken?'
{if} getränk {is} Wasser getränk_preis {is} 0
{else} getränk_preis {is} 3
gesamt_preis {is} essen_preis + getränk_preis
{print} 'Das macht zusammen ' gesamt_preis ' Euro, bitte'
```
7:
story_text: |
Expand Down
1 change: 1 addition & 0 deletions content/client-messages/be.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
5 changes: 3 additions & 2 deletions content/client-messages/it.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
CheckInternet: Dai un'occhiata se la tua connessione Internet funziona correttamente.
CheckInternet: Controlla se la connessione a Internet funzioni correttamente.
Connection_error: Non siamo riuscito a contattare il server.
Empty_output: Questo codice funziona ma non stampa nulla. Aggiungi un comando print al tuo codice o usa la tartaruga per ottenere l'output.
Errors_found: Hai fatto un errore! Non preoccuparti, abbiamo comunque eseguito il programma
Execute_error: Qualcosa è andato storto nell'esecuzione del tuo codice.
Execute_error: Qualcosa è andato storto.
Other_error: Ops! Forse abbiamo fatto un errore.
Program_repair: Questo potrebbe essere il codice corretto, puoi risolverlo?
Program_too_long: Il tuo programma impiega troppo tempo per essere eseguito.
Expand All @@ -22,3 +22,4 @@ restaurant: Ristorante
rock: Roccia
songs: Suono
turtle: Tartaruga
ServerError: Puoi aiutarci inviandoci un'email con il livello e il tuo programma a [email protected]. Nel frattempo, prova qualcosa di diverso. Grazie!
1 change: 1 addition & 0 deletions content/keywords/be.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
13 changes: 13 additions & 0 deletions content/keywords/it.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,16 @@ to_list: a
'True': Vero
with: con
play: esegui
quote: "'"
d9: '9'
d2: '2'
d3: '3'
d4: '4'
d5: '5'
d6: '6'
d7: '7'
d8: '8'
d0: '0'
d1: '1'
def: def
define: definire
1 change: 1 addition & 0 deletions content/pages/be.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions content/slides/be.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions content/workbooks/be.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
54 changes: 54 additions & 0 deletions grammars/keywords-be.lark
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
_DEFINE: ("define" | "define") _SPACE?
_CALL: ("call" | "call") _SPACE?
_WITH: ("with" | "with") _SPACE?
_DEF: ("def" | "def") _SPACE?
_RETURN: ("return" | "return") _SPACE?
_PRINT: ("print" | "print") _SPACE?
_PLAY: ("play" | "play") _SPACE
_ASK: ("ask" | "ask")
_ECHO: ("echo" | "echo") _SPACE?
_FORWARD: ("forward" | "forward") _SPACE?
_TURN: ("turn" | "turn") _SPACE?
left: ("left" | "left") _SPACE?
right: ("right" | "right") _SPACE?
black: ("black" | "black") _SPACE?
blue: ("blue" | "blue") _SPACE?
brown: ("brown" | "brown") _SPACE?
gray: ("gray" | "gray") _SPACE?
green: ("green" | "green") _SPACE?
orange: ("orange" | "orange") _SPACE?
pink: ("pink" | "pink") _SPACE?
purple: ("purple" | "purple") _SPACE?
red: ("red" | "red") _SPACE?
white: ("white" | "white") _SPACE?
yellow: ("yellow" | "yellow") _SPACE?
_IS: _SPACE ("is" | "is") _SPACE
_STANDALONE_IS: ("is" | "is")
_SLEEP: ("sleep" | "sleep") _SPACE?
_ADD_LIST: ("add" | "add") _SPACE
_TO_LIST: _SPACE? ("to" | "to")
_REMOVE: ("remove" | "remove") _SPACE
_FROM: _SPACE? ("from" | "from")
_AT: _SPACE ("at" | "at") _SPACE
random: ("random" | "random") _SPACE?
_IN: _SPACE ("in" | "in") _SPACE
_NOT_IN: _SPACE ("not in" | "not in") _SPACE
_IF: ("if" | "if") _SPACE
_ELSE: "else" | "else"
_AND: _SPACE? ("and" | "and") _SPACE
_REPEAT: ("repeat" | "repeat") _SPACE
_TIMES: _SPACE ("times" | "times")
_FOR: ("for" | "for") _SPACE
_RANGE: ("range" | "range") _SPACE?
_TO: _SPACE ("to" | "to") _SPACE
_STEP: "step" | "step"
_ELIF: _SPACE? ("elif" | "elif") _SPACE
_INPUT: ("input" | "input")
_OR: _SPACE? ("or" | "or") _SPACE
_WHILE: ("while" | "while") _SPACE
_LENGTH: "length" | "length"
_COLOR : ("color" | "color") _SPACE?
_PRESSED: ("pressed" | "pressed") _SPACE?
clear: ("clear" | "clear") _SPACE?
TRUE: ("true" | "True" | "true" | "True") _SPACE?
FALSE: ("false" | "False" | "false" | "False") _SPACE?
2 changes: 1 addition & 1 deletion grammars/keywords-it.lark
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
_DEFINE: ("define" | "define") _SPACE?
_DEFINE: ("definire" | "define") _SPACE?
_CALL: ("chiama" | "call") _SPACE?
_WITH: ("con" | "with") _SPACE?
_DEF: ("def" | "def") _SPACE?
Expand Down
61 changes: 60 additions & 1 deletion highlighting/highlighting-trad.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,65 @@
"yellow": "ـ*اـ*صـ*فـ*رـ*|yellow",
"DIGIT": "0٠1١2٢3٣4٤5٥6٦7٧8٨9٩"
},
"be": {
"False": "False",
"True": "True",
"add": "add",
"and": "and",
"ask": "ask",
"at": "at",
"black": "black",
"blue": "blue",
"brown": "brown",
"call": "call",
"clear": "clear",
"color": "color",
"comma": ",",
"def": "def",
"define": "define",
"echo": "echo",
"elif": "elif",
"else": "else",
"false": "false",
"for": "for",
"forward": "forward",
"from": "from",
"gray": "gray",
"green": "green",
"if": "if",
"in": "in",
"input": "input",
"is": "is",
"left": "left",
"length": "length",
"not_in": "not in",
"or": "or",
"orange": "orange",
"pink": "pink",
"play": "play",
"pressed": "pressed",
"print": "print",
"purple": "purple",
"random": "random",
"range": "range",
"red": "red",
"remove": "remove",
"repeat": "repeat",
"return": "return",
"right": "right",
"sleep": "sleep",
"step": "step",
"times": "times",
"to": "to",
"to_list": "to",
"true": "true",
"turn": "turn",
"while": "while",
"white": "white",
"with": "with",
"yellow": "yellow",
"DIGIT": "0123456789"
},
"bg": {
"False": "Невярно|False",
"True": "Вярно|True",
Expand Down Expand Up @@ -1548,7 +1607,7 @@
"color": "colore|color",
"comma": ",",
"def": "def",
"define": "define",
"define": "definire|define",
"echo": "eco|echo",
"elif": "altrimenti se|elif",
"else": "altrimenti|else",
Expand Down
Loading

0 comments on commit f7f5e7f

Please sign in to comment.