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 #5206

Merged
merged 9 commits into from
Mar 6, 2024
4 changes: 3 additions & 1 deletion content/adventures/bg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,6 @@ adventures:
{ask} what would you like to drink?
{echo} So you want
```
story_text_2: '**Внимание!** Запитването с командата `ask` се променя в това ниво, така че отговорът се записва в име, например.'
3:
story_text: |
Във второ ниво ще можеш да съставиш списък с думи и програмата сама ще може да изпечата произволна дума от твоя списък.
Expand Down Expand Up @@ -4200,6 +4199,9 @@ adventures:
{forward} 100
{turn} {left}
```
story_text_2: |
### Exercise
This is the start of a little staircase. Can you make it have 5 steps?
example_code_2: |
```
{forward} 20
Expand Down
8 changes: 4 additions & 4 deletions content/adventures/cs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1349,10 +1349,10 @@ adventures:
story_text: Už i naše seznamy mají vlastní závorky! Budeme je psát do hranatých závorek a jejich jednotlivé položky do jednoduchých uvozovek ('), které už známe.
example_code: |4

```
ovoce = ['jablko', 'banán', 'třešně']
print ovoce
```
```
ovoce = ['jablko', 'banán', 'třešně']
print ovoce
```
17:
story_text: |-
Nyní trochu změníme odsazení. Pokaždé, když potřebujeme odsazení, je třeba zapsat znak `:` na řádku před tímto odsazením.
Expand Down
66 changes: 33 additions & 33 deletions content/adventures/pt_BR.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -382,13 +382,13 @@ adventures:
{print} 'VINTE-E-UM'
cartas = [2, 3, 4, 5, 6, 7, 8, 9, 10, 'Valete', 'Dama','Rei', 'Ás']
pontos = 0
dealer_pontos = 0
oponente_pontos = 0
carta_1 = cartas[{random}]
carta_2 = cartas[{random}]
carta_3 = cartas [{random}]
dealer_carta_1 = cartas[{random}]
dealer_carta_2 = cartas[{random}]
dealer_carta_3 = cartas[{random}]
oponente_carta_1 = cartas[{random}]
oponente_carta_2 = cartas[{random}]
oponente_carta_3 = cartas[{random}]
# Pontos para a carta 1
{if} carta_1 == 'Valete' {or} carta_1 == 'Dama' {or} carta_1 == 'Rei':
pontos = pontos + 10
Expand All @@ -403,28 +403,28 @@ adventures:
pontos = pontos + 11
{else}:
pontos = pontos + carta_2
# Pontos para a carta 1 do dealer
{if} dealer_carta_1 == 'Valete' {or} dealer_carta_1 == 'Dama' {or} dealer_carta_1 == 'Rei':
dealer_pontos = dealer_pontos + 10
{elif} dealer_carta_1 == 'Ás':
dealer_pontos = dealer_pontos + 11
# Pontos para a carta 1 do oponente
{if} oponente_carta_1 == 'Valete' {or} oponente_carta_1 == 'Dama' {or} oponente_carta_1 == 'Rei':
oponente_pontos = oponente_pontos + 10
{elif} oponente_carta_1 == 'Ás':
oponente_pontos = oponente_pontos + 11
{else}:
dealer_pontos = dealer_pontos + dealer_carta_1
# Pontos para a carta 2 do dealer
{if} dealer_carta_2 == 'Valete' {or} dealer_carta_2 == 'Dama' {or} dealer_carta_2 == 'Rei':
dealer_pontos = dealer_pontos + 10
{elif} dealer_carta_2 == 'Ás':
dealer_pontos = dealer_pontos + 11
oponente_pontos = oponente_pontos + oponente_carta_1
# Pontos para a carta 2 do oponente
{if} oponente_carta_2 == 'Valete' {or} oponente_carta_2 == 'Dama' {or} oponente_carta_2 == 'Rei':
oponente_pontos = oponente_pontos + 10
{elif} oponente_carta_2 == 'Ás':
oponente_pontos = oponente_pontos + 11
{else}:
dealer_pontos = dealer_pontos + dealer_carta_2
oponente_pontos = oponente_pontos + oponente_carta_2
# Dois Ases
{if} carta_1 == 'Ás' {and} carta_2 == 'Ás':
pontos = 12
{if} dealer_carta_1 == 'Ás' {and} dealer_carta_2 == 'Ás':
dealer_pontos = 12
{if} oponente_carta_1 == 'Ás' {and} oponente_carta_2 == 'Ás':
oponente_pontos = 12
# Placar
{print} 'Você tem um(a) ' carta_1 ' e um(a) ' carta_2 ' (' pontos ' pontos)'
{print} 'O dealer tem um(a) ' dealer_carta_1 ' e um(a) ' dealer_carta_2 ' (' dealer_pontos ' pontos)'
{print} 'Você tem um ' carta_1 ' e um ' carta_2 ' (' pontos ' pontos)'
{print} 'O oponente tem um ' oponente_carta_1 ' e um ' oponente_carta_2 ' (' oponente_pontos ' pontos)'
# Carta extra para o jogador
hit = {ask} 'Você quer uma carta extra?'
{if} hit == 'sim':
Expand All @@ -441,25 +441,25 @@ adventures:
{else}:
{print} 'Sem cartas extra'
# Vencedor
{if} pontos > 21 {or} dealer_pontos > pontos {or} dealer_pontos == 21:
{if} pontos > 21 {or} oponente_pontos > pontos {or} oponente_pontos == 21:
{print} 'Você perdeu'
{elif} dealer_pontos < 17:
{print} 'O dealer compra uma carta extra. E ela é... ' dealer_carta_3
{if} dealer_carta_3 == 'Valete' {or} dealer_carta_3 == 'Dama' {or} dealer_carta_3 == 'Rei':
dealer_pontos = dealer_pontos + 10
{elif} dealer_carta_3 == 'Ás':
{if} dealer_pontos < 11:
dealer_pontos = dealer_pontos + 11
{elif} oponente_pontos < 17:
{print} 'O oponente compra uma carta extra. E ela é... ' oponente_carta_3
{if} oponente_carta_3 == 'Valete' {or} oponente_carta_3 == 'Dama' {or} oponente_carta_3 == 'Rei':
oponente_pontos = oponente_pontos + 10
{elif} oponente_carta_3 == 'Ás':
{if} oponente_pontos < 11:
oponente_pontos = oponente_pontos + 11
{else}:
dealer_pontos = dealer_pontos + 1
oponente_pontos = oponente_pontos + 1
{else}:
dealer_pontos = dealer_pontos + dealer_carta_3
{print} 'O dealer tem ' dealer_pontos ' pontos agora'
{if} dealer_pontos < 21 {and} dealer_pontos > pontos:
oponente_pontos = oponente_pontos + oponente_carta_3
{print} 'O oponente tem ' oponente_pontos ' pontos agora'
{if} oponente_pontos < 21 {and} oponente_pontos > pontos:
{print} 'Você perdeu'
{else}:
{print} 'Você ganhou'
{elif} pontos > dealer_pontos {and} pontos < 21:
{elif} pontos > oponente_pontos {and} pontos < 21:
{print} 'Você ganhou!'
```
calculator:
Expand Down
31 changes: 15 additions & 16 deletions content/adventures/pt_PT.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1109,8 +1109,13 @@ adventures:
description: Explicação do nível
levels:
1:
story_text: "No nível 1 pode usar os comandos `{print}`, `{ask}` e `{echo}`. \nEscreve o teu código no painel de programação. Ou pressiona o botão verde no bloco do código exemplo, e o código será digitado para ti! \nExperimenta o código com o botão verde 'Executar código', por baixo do\
\ painel de programação. \n \nPodes imprimir o texto no ecrã usando o comando `{print}`. \n"
story_text: |
Bem-vindo à Hedy! Aqui podes aprender a programar passo a passo.

Experimente o código você mesmo! O botão amarelo copia o código de exemplo para o seu campo de programação.
Depois carregue no botão verde 'Executar código' por baixo do campo de programação para executar o código.

Já está pronto? Então, passa ao separador seguinte para aprenderes a criar os teus próprios códigos!
example_code: |
```
{print} Hello world!
Expand Down Expand Up @@ -1173,15 +1178,12 @@ adventures:
```
6:
story_text: |
`ask`, `print` e `if` ainda funcionam como nos nível 5.
Mas no nível 6 temos algo novo, também podes fazer cálculos.

No nível 6 acrescentamos novos símbolos e agora tu podes fazer cálculos dentro do teu código.

A soma é fácil, escreves tal como fazes em Matemática: `5 + 5`, por exemplo. A subtração também funciona na perfeição, é `5 - 5`.
No nível anterior praticou com `{ask}` e `{if}`. Por exemplo, pode perguntar aos convidados o que eles gostariam de comer.
O que ainda não pode fazer é calcular o preço do jantar de todos.

A multiplicação é um pouco diferente, porque não existe o símbolo de multiplicar no teu teclado. Podes procurar à vontade, não existe mesmo!
Por esse motivo, multiplicamos utilizando o asterisco: `5 * 5`. Lê isto como 5 vezes 5 e assim será mais fácil memorizar.
Este nível permite utilizar a adição, a subtração e a multiplicação nos seus programas. Desta forma, podes calcular os preços no teu restaurante, mas também podes acrescentar um código secreto para fazeres um desconto aos teus amigos e familiares.
Outra opção neste nível é programar o teu próprio jogo de matemática, para o teu irmão ou irmã mais novos praticarem as multiplicações.
Vê por ti próprio!
example_code: |-
```
print '5 mais 5 é ' 5 + 5
Expand Down Expand Up @@ -2254,11 +2256,6 @@ adventures:
{if} name != 'Hedy'
{print} 'You are not Hedy'
```

{if} age < 13
{print} 'You are younger than me!'
{else}
{print} 'You are older than me!'
language:
name: Language
default_save_name: Language
Expand Down Expand Up @@ -2844,8 +2841,10 @@ adventures:
temperature = 25
{print}('It is ', temperature, ' degrees outside')
```

```
name = 'Hedy'
{print}('My name is ', name)
```
quizmaster:
name: Quizmaster
default_save_name: Quizmaster
Expand Down
8 changes: 0 additions & 8 deletions content/adventures/tn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3170,14 +3170,6 @@ adventures:
1:
story_text: |
In level 1 you can make your own virtual restaurant and take your guests' orders.
example_code: |
```
{print} Re a go amogela mo semausung sa Mosaditshwene 🍟
_ O bata go reka eng?
{echo} Good, so o bata go reka
{print} Thanks you for your order!
{print} Dijo tsa gago di eta!
```
story_text_2: |
### Exercise
Copy the example code into your input screen by clicking the yellow button.
Expand Down
16 changes: 8 additions & 8 deletions content/adventures/zh_Hans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ adventures:
levels:
1:
story_text: |
欢迎来到海蒂!在第一级,你可以从打印文本开始
欢迎来到海蒂!在第一级,你可逐步开始编程

自己试试代码吧!黄色按钮将示例代码复制到编程字段中。
然后按下编程字段下的绿色“运行代码”按钮来运行代码。
Expand Down Expand Up @@ -1158,8 +1158,8 @@ adventures:
在上一级别中,您已经练习了`{ask}`和`{if}`。 例如,您可以询问客人想吃什么。
但您还不能做的是计算每个人晚餐的价格。

下一级别使您可以在程序中使用加法、减法和乘法。 通过这种方式,您可以计算餐厅的价格,但您也可以添加密码,为您的朋友和家人提供折扣。
下一级别的另一个选择是编写您自己的数学游戏,供您的弟弟或妹妹练习乘法。
当前级别使您可以在程序中使用加法、减法和乘法。 通过这种方式,您可以计算餐厅的价格,但您也可以添加密码,为您的朋友和家人提供折扣。
当前级别的另一个选择是编写您自己的数学游戏,供您的弟弟或妹妹练习乘法。
你自己去看看吧!
example_code: |
```
Expand Down Expand Up @@ -2902,8 +2902,8 @@ adventures:
```
story_text_2: |
### 练习
在Hedy中,你会在每一次冒险中找到练习。练习允许您练习新的命令和概念,并允许您对示例代码进行自己的修改。
在这个练习中,你会看到一个粉红色的空白区域。在运行代码之前,您必须在空白的地方填充一些东西
在海蒂中,你会在每一次冒险中找到练习。练习允许您练习新的命令和概念,并允许您对示例代码进行自己的修改。
在这个练习中,你会看到一个粉红色的空白区域。在运行能代码之前,必须在空白处填充一些东西

在空格中填写`{print}`命令,然后再添加5行代码。每行必须以`{print}`命令开头。
玩得开心!
Expand Down Expand Up @@ -4279,9 +4279,9 @@ adventures:
**另外**我们现在还可以改进之前的能画不同图案的程序。完成这段代码,你就能画出任何你想要的多边形!
example_code_2: |
```
边数 = {ask} '你想要几边形?'
角度 = 360 / 边数
{repeat} 边数 {times}
figure = {ask} 'How many angles should I draw?'
angle = 360 / figure
{repeat} figure {times}
{turn} _
{forward} _
```
Expand Down
4 changes: 2 additions & 2 deletions content/cheatsheets/de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
- name: '{echo}'
explanation: Wiederhole etwas mit `{echo}`.
demo_code: "{ask} Was ist deine Lieblingsfarbe? \n{echo} Also deine Lieblingsfarbe ist"
- name: '{print} emojis'
explanation: Gebe ein emoji mit `{print}`aus.
- name: '{print} Emojis'
explanation: Gib ein Emoji mit `{print}` aus.
demo_code: '{print} 🙋 🌍 ❗'
- name: '{forward}'
explanation: Zeichne eine Linie mit `{forward}`.
Expand Down
2 changes: 1 addition & 1 deletion content/pages/pt_PT.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ teacher-guide:
error_code: |-
answer is ask Why doesn't echo work anymore?!
echo
solution_text: Use a varible instead.
solution_text: Utilize antes uma variável.
solution_code: |-
answer is ask Why doens't echo work anymore?!
print answer
Expand Down
2 changes: 1 addition & 1 deletion content/quizzes/es.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ levels:
question_text: ¿Qué sentencia es cierta?
mp_choice_options:
- option: Puedes usar el comando `{print}`para hacer preguntas.
feedback: Para eso sirve preguntar
feedback: Para eso sirve `{preguntar}`
- option: Puedes usar el comando `{ask}` para mostrar las respuestas.
feedback: Eso no es verdad
- option: Con el comando `{print}` puedes hacer que el texto aparezca
Expand Down
Loading
Loading