Skip to content

Commit

Permalink
Translations update from Hosted Weblate (#5280)
Browse files Browse the repository at this point in the history
  • Loading branch information
weblate committed Mar 19, 2024
1 parent 964308b commit 46a05be
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 69 deletions.
2 changes: 1 addition & 1 deletion content/adventures/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4098,7 +4098,7 @@ adventures:
```
{define} twinkle
{print} 'Twinkle'
{print} '...'
{print} _
{call} twinkle
{print} 'Up above the world so high'
Expand Down
50 changes: 25 additions & 25 deletions content/adventures/fr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -606,21 +606,21 @@ adventures:
```
12:
story_text: |
Dans ce niveau, tu dois fabriquer une calculatrice qui fonctionne avec des nombres décimaux.
À ce niveau, tu peux fabriquer une calculatrice qui fonctionne avec des nombres décimaux.
### Exercice 1
Remplis les blancs pour compléter la calculatrice. Souviens-toi d'utiliser un point et non une virgule pour les nombres décimaux.
Complète les blancs pour faire marcher la calculatrice. Quand tu réponds aux questions, souviens-toi d'utiliser un point et non une virgule pour les nombres décimaux.
### Exercice 2
Crée un nouveau programme d'application mathématique, mais utilise des nombres décimaux cette fois.
Crée un nouveau programme d'entrainement au calcul, mais utilise des nombres décimaux cette fois.
Crée une liste de nombres, choisis-en deux à multiplier et laisse le joueur répondre.
Bien sûr, tu dois valider la réponse ! **Extra** Augmente la difficulté en ajoutant un système de vies : un joueur perd une vie pour une mauvaise réponse, et après trois mauvaises réponses le jeu s'arrête.
Bien sûr, tu dois valider la réponse ! **Bonus** Augmente la difficulté en ajoutant un système de vies : un joueur perd une vie pour une mauvaise réponse, et arrête le jeu après trois mauvaises réponses.
example_code: |
```
nombre1 = {ask} 'Quel est le premier nombre?'
nombre2 = {ask} 'Quel est le second nombre?'
nombre1 = {ask} "Quel est le premier nombre ?"
nombre2 = {ask} "Quel est le second nombre ?"
réponse = nombre1 + nombre2
{print} nombre1 ' plus ' nombre2 ' est ' _
{print} nombre1 " plus " nombre2 " fait " _
```
13:
story_text: |
Expand Down Expand Up @@ -1860,7 +1860,7 @@ adventures:
```
prédictions = "Tu vas glisser sur une peau de banane", _
{print} "Je regarde le futur dans ma boule de cristal"
{print} 'Je vois… je vois…'
{print} "Je vois… je vois…"
{sleep}
{print} prédictions {at} {random}
```
Expand Down Expand Up @@ -4021,20 +4021,20 @@ adventures:
```
12:
story_text: |
In this song we can make it even easier to program 'if you're happy and you know it, clap your hands'. Because we can put all of the actions in a variable, check it out:
Dans cette chanson, nous pouvons programmer plus facilement la partie « si tu as de la joie au cœur, tape des mains ». Parce que nous pouvons mettre toutes les actions dans une liste, comme ceci :
### Exercise
Can you add the right amount of indentation to each line to make the song play correctly?
Hint: Not all lines need indentation.
### Exercice
Peux-tu ajouter le bon nombre d'indentations pour chaque ligne pour que la chanson soit chantée correctement ?
Conseil : Tu n'es pas obligé d'indenter toutes les lignes.
example_code: |
```
_ actions = 'clap your hands', 'stomp your feet', 'shout Hurray!'
_ actions = "tape des mains", "tape du pied", "crie hourra !"
_ {for} action {in} actions
_ {for} i {in} {range} 1 {to} 2
_ {print} 'if youre happy and you know it'
_ {print} "si tu as de la joie au coeur"
_ {print} action
_ {print} 'if youre happy and you know it and you really want to show it'
_ {print} 'if youre happy and you know it'
_ {print} "si tu as de la joie au coeur et que tu souhaite le partager"
_ {print} "si tu as de la joie au coeur"
_ {print} action
```
13:
Expand Down Expand Up @@ -4116,18 +4116,18 @@ adventures:
levels:
12:
story_text: |
Songs contain a lot of repetition. We can capture it with a function!
### Exercise
Look at the example code with the function. Fill out the two lines so the full song is printed.
Les chansons contiennent beaucoup de répétitions. Nous pouvons capturer ces répétitions dans une fonction !
### Exercice
Regarde l'exemple de code avec la fonction. Complète les deux lignes pour que la chanson soit écrite entièrement.
example_code: |
```
{define} twinkle
{print} 'Twinkle'
{print} '...'
{define} brille
{print} "Brille"
{print} _
{call} twinkle
{print} 'Up above the world so high'
{print} 'Like a diamond in the sky'
{call} brille
{print} "Si haut au-dessus du monde,"
{print} "Comme un diamant dans le ciel."
{call} _
```
16:
Expand Down
45 changes: 20 additions & 25 deletions content/adventures/zh_Hans.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -601,13 +601,13 @@ adventures:
```
13:
story_text: |
### 练习1
来让这个练习程序难一点吧 .操作者现在需要正确地回答两个问题.请填写空格以完成程序.
### 练习 1
让我们把练习计划变得更难一些。 玩家现在必须正确回答两个问题。 填空以完成该程序。
### 练习2(附加)
有时候, 计算有多个正确答案.例如,10可以被5和2整除.那么问题'什么数能整除10?'可以用2和5来回答.
要求一个有多个正确答案的计算,让操作者回答它, 并确定其是否正确使用了 `{or}`.
清空编程字段并且创造你自己的解决方案.
### 练习 2
有时,计算有多个正确答案例如,10 可以除以 5 和 2。所以问题是“什么数可以整除 10?” 可以用2和5来回答
要求有多个正确答案的计算,要求玩家回答,并使用`{or}`确定是否正确。
清空编程领域并创建您自己的解决方案。
example_code: |
```
answer1 = {ask} '10 乘以 7 是多少?'
Expand Down Expand Up @@ -1256,7 +1256,7 @@ adventures:
```
13:
story_text: |
在前面的级别中,您学习了如何将两个`{if}`命令彼此放在一起。 这工作得很好,但它确实会给你带来非常长且不方便的代码,如下所示:
在前面的级别中,您已经学习了如何将两个`{if}`命令彼此放在一起。 这工作得很好,但它确实会给你带来非常长且不方便的代码,如下所示:
在此系统中,您必须提供正确的用户名和密码。
在本级别中,您将学习`{and}`命令,这将使此代码变得更短且更易于理解!
Expand All @@ -1275,9 +1275,9 @@ adventures:
```
14:
story_text: |
使用以下程序,你可以计算出你出否通过学校的科目(因此,级别六或者更高)。
由于第5行中代码很长,可以看到此代码效率极低
从1到5的所有不同等级都必须单独编程。 幸运的是,在这个级别上,您将学习如何在无需这个非常长的代码的情况下完成此操作
使用示例代码,您可以计算您是否通过了学校的一门科目(即六年级或更高年级)。
您可以看到该代码效率极低,因为第 5 行的代码非常长
从 1 到 5 的所有不同等级都必须单独编程。 幸运的是,在这个级别中,您将学习如何在没有这段极长代码的情况下做到这一点
example_code: |
```
first_grade = {ask}'您在第一次测试中获得了什么分数?”
Expand Down Expand Up @@ -2677,12 +2677,12 @@ adventures:
```
13:
story_text: |
您可以使用带有参数的函数来处理具有几乎相同但每次都略有不同的行的歌曲
《扬基歌》就是一个例子。第一行的前四个音符是相同的,但每次它们后面都有几个不同的音符
您可以使用带有参数的函数来处理歌词几乎相同但每次略有不同的歌曲
一个例子是歌曲“Yankee Doodle”。 第一行的前 4 个音符是相同的,每次后面都有不同的音符
### 练习
你能唱完《扬基歌》吗?
你能想到另一首用这种方法编程的歌吗?
你能唱完Yankee Doodle 的歌吗?
你能想出另一首歌以这种方式编程吗?
example_code: |
```
{print} 'Yankee Doodle'
Expand Down Expand Up @@ -3897,7 +3897,7 @@ adventures:
_
```
12:
story_text: "在这首歌中,我们可以使编程变得更加容易 '如果你很快乐,你意识到了,拍拍你的手'。因为我们可以把所有的动作放在一个变量中,看看吧。\n \n### 练习 \n你能在每一行中加入适量的缩进,使歌曲正确播放吗? \n注意:不是所有的行都需要缩进\n"
story_text: "在这首歌中,我们可以更轻松地编写“如果你很高兴并且你知道的话,请拍手”。 因为我们可以将所有操作放入一个变量中,所以请检查一下:\n\n### 练习\n您能否为每行添加适量的缩进以使歌曲正确播放?\n提示:并非所有行都需要缩进。\n"
example_code: |
```
_一组动作 = '拍拍手', '跺跺脚', '喊万岁!'
Expand Down Expand Up @@ -4708,13 +4708,8 @@ adventures:
</div>
Bracelet Designing program <img src="https://github.com/hedyorg/hedy/assets/80678586/549d7f3a-c492-4b4a-b173-746eb3400951" width="500">
example_code: |
提示: 手环设计程序
首先,为要在手环上使用的**每个形状**定义一个函数。然后,像这样添加形状到手环:
```
{define} 画正方形
{define} draw_a_square
_
{color} white
Expand All @@ -4725,11 +4720,11 @@ adventures:
{for} i {in} {range} 1 {to} 5
{color} gray
{forward} 100
shape = {ask} '你想在手环上放的下一个形状是什么?'
chosen_color = {ask} '什么颜色的?'
shape = {ask} '接下来您想要手镯的形状是什么?'
chosen_color = {ask} '选择哪个颜色?'
{color} chosen_color
{if} shape = '正方形'
{call} 画正方形
{if} shape = 'square'
{call} draw_a_square
```
13:
story_text: |
Expand Down
27 changes: 9 additions & 18 deletions translations/zh_Hans/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgstr ""
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2000-01-01 00:00+0000\n"
"PO-Revision-Date: 2000-01-01 00:00+0000\n"
"Last-Translator: Someone <someone@example.com>\n"
"Last-Translator: \"Zoom.Quiet\" <zoomquiet+gh@gmail.com>\n"
"Language: zh_Hans\n"
"Language-Team: zh_Hans <[email protected]>\n"
"Plural-Forms: nplurals=1; plural=0;\n"
Expand Down Expand Up @@ -93,9 +93,8 @@ msgstr "你输入的代码不是正确的海蒂代码。错误点在第{location
msgid "Pressit Missing Else"
msgstr "您忘记添加按不同键时会发生的情况,请在代码中添加 {else}"

#, fuzzy
msgid "Save Microbit code "
msgstr "Save Microbit code"
msgstr "保存 Microbit 代码"

msgid "Too Big"
msgstr "哇!你的程序有足足{lines_of_code}行代码!但是这一关只能用{max_lines}行代码。把你的程序改得短一点,然后再试一次。"
Expand Down Expand Up @@ -172,9 +171,8 @@ msgstr "探险活动"
msgid "adventure_cloned"
msgstr "冒险被克隆"

#, fuzzy
msgid "adventure_code_button"
msgstr "Adventure Code"
msgstr "代码冒险"

msgid "adventure_codeblock_button"
msgstr "当您想要创建学生可以在冒险中运行的代码块时,请使用此按钮。提示:将所选内容放在代码块最后一行的末尾,<kbd>按3次</kbd>即可在代码块后键入内容。"
Expand Down Expand Up @@ -266,7 +264,6 @@ msgstr "成为赞助商"
msgid "birth_year"
msgstr "出生年份"

#, fuzzy
msgid "bug"
msgstr "Bug"

Expand Down Expand Up @@ -621,25 +618,20 @@ msgstr "你选择的最喜欢的程序是无效的。"
msgid "favourite_success"
msgstr "你的程序被设定为最喜欢的程序。"

#, fuzzy
msgid "feature"
msgstr "Feature"
msgstr "特性"

#, fuzzy
msgid "feedback"
msgstr "Feedback"
msgstr "反馈"

#, fuzzy
msgid "feedback_message_error"
msgstr "Something went wrong, please try again later."
msgstr "发生错误。请稍后再试。"

#, fuzzy
msgid "feedback_message_success"
msgstr "Thank you, we recieved your feedback and will contact you if needed."
msgstr "谢谢,我们已到你的反馈,如有需要,会与你联系。"

#, fuzzy
msgid "feedback_modal_message"
msgstr "Please send us a message with a category. We appreciate your help to improve Hedy!"
msgstr "请给我们发送带有类别的消息。 我们感谢你为改进 Hedy 提供的帮助!"

msgid "female"
msgstr "女"
Expand Down Expand Up @@ -686,9 +678,8 @@ msgstr "获取你的证书!"
msgid "give_link_to_teacher"
msgstr "将以下链接提供给你的老师:"

#, fuzzy
msgid "go_back"
msgstr "Go back"
msgstr "返回"

msgid "go_back_to_main"
msgstr "返回主页"
Expand Down

0 comments on commit 46a05be

Please sign in to comment.