Skip to content

Commit

Permalink
Translations update from Hosted Weblate (#5463)
Browse files Browse the repository at this point in the history
  • Loading branch information
weblate authored Apr 24, 2024
1 parent 1ccdcd7 commit 1316f77
Show file tree
Hide file tree
Showing 13 changed files with 304 additions and 324 deletions.
542 changes: 255 additions & 287 deletions content/quizzes/pt_PT.yaml

Large diffs are not rendered by default.

50 changes: 25 additions & 25 deletions content/slides/pt_PT.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,47 @@ levels:
0:
1:
header: Bem-vindo(a) ao Hedy!
text: Hedy is a programming language.
text: Hedy é uma linguagem de programação.
2:
header: Programming
header: Programar
text: |-
Programming is giving instructions to a computer, using the language of the computer.
Programar é dar instruções ao computador, usando a linguagem do computador.
Such a language is called a "programming language".
Uma linguagem como esta é chamada de "linguagem de programação".
3:
header: Programming Language
header: Linguagem de programação
text: |-
Maybe you already know some programming languages?
Some examples are:
Talvez já sabes algo de linguagens de programação?
Alguns exemplos são:
* Scratch
* Python
* HTML
4:
header: Programming
header: Programar
text: |-
If you can program, you can do many cool things:
* Build interactive stories
* Create computer drawings and draw these on paper or fabric
* Build your own apps to use on your phone
Se consegues programar, podes fazer algumas coisas bem divertidas:
* Construir histórias interactivas
* Criar desenhos no computador e desenhá-los no papel ou em tecido
* Construir as tuas próprias apps e usá-las no teu telemóvel
5:
header: Programar em Hedy
text: In Hedy we use special codes, like `{print}`.
code: '{print} Welcome to Hedy!'
text: Em Hedy usamos códigos especiais, tal como `{print}`.
code: '{print} Bem-vindo(a) a Hedy!'
6:
header: Programming in Hedy
text: Code words will be shown in pink.
code: '{print} Welcome to Hedy!'
header: Programar em Hedy
text: Palavras de código vão aparecer em rosa.
code: '{print} Bem-vindo(a) a Hedy!'
7:
header: Programming in Hedy
text: We start the code with the Run code button underneath the code.
code: '{print} Welcome to Hedy!'
header: Programar em Hedy
text: Para dar início ao código nós usamos o botão Correr por baixo do código.
code: '{print} Bem-vindo(a) a Hedy!'
8:
header: Programming in Hedy
text: Output appears on the left-hand side.
code: '{print} Welcome to Hedy!'
header: Programar em Hedy
text: O Output aparece do lado direito.
code: '{print} Bem-vindo(a) a Hedy!'
9:
header: Programming in Hedy
text: The output can also be a drawing.
header: Programar em Hedy
text: O output também pode ser um desenho.
code: |-
{forward} 100
{turn} left
Expand Down
2 changes: 1 addition & 1 deletion tests/test_level/test_level_01.py
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,7 @@ def test_source_map(self):
{HedyTester.indent(
HedyTester.forward_transpiled(50, self.level),
8, True)
}
}
answer = input('Wat is je lievelingskleur')
print('je lievelingskleur is '+answer)""")

Expand Down
4 changes: 2 additions & 2 deletions tests/test_level/test_level_16.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,10 @@ def test_access_plus(self):
"lijst = [1, 2, 3]",
HedyTester.list_access_transpiled('lijst[int(1)-1]'),
HedyTester.list_access_transpiled('lijst[int(2)-1]'),
f"optellen = {self.addition_transpiled('lijst[int(1)-1]','lijst[int(2)-1]')}",
f"optellen = {self.addition_transpiled('lijst[int(1)-1]', 'lijst[int(2)-1]')}",
HedyTester.list_access_transpiled('lijst[int(3)-1]'),
f"""\
optellen = {self.addition_transpiled('optellen','lijst[int(3)-1]')}
optellen = {self.addition_transpiled('optellen', 'lijst[int(3)-1]')}
print(f'''{{optellen}}''')""")

self.multi_level_tester(
Expand Down
6 changes: 5 additions & 1 deletion tests/test_level/test_level_17.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,12 +464,16 @@ def test_if_pressed_with_turtlecolor(self):
if x is pressed:
color red""")

# Need to exgtract this out for now because of an autopep8 bug
# https://github.com/hhatto/autopep8/issues/744
color_dict = "{'black': 'black', 'blue': 'blue', 'brown': 'brown', 'gray': 'gray', 'green': 'green', 'orange': 'orange', 'pink': 'pink', 'purple': 'purple', 'red': 'red', 'white': 'white', 'yellow': 'yellow'}"

expected = HedyTester.dedent(f"""\
if_pressed_mapping = {{"else": "if_pressed_default_else"}}
if_pressed_mapping['x'] = 'if_pressed_x_'
def if_pressed_x_():
__trtl = f'red'
color_dict = {{'black': 'black', 'blue': 'blue', 'brown': 'brown', 'gray': 'gray', 'green': 'green', 'orange': 'orange', 'pink': 'pink', 'purple': 'purple', 'red': 'red', 'white': 'white', 'yellow': 'yellow'}}
color_dict = {color_dict}
if __trtl not in ['black', 'blue', 'brown', 'gray', 'green', 'orange', 'pink', 'purple', 'red', 'white', 'yellow']:
raise Exception(f{self.value_exception_transpiled()})
else:
Expand Down
3 changes: 2 additions & 1 deletion translations/ar/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=6; plural=(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=0 && n%100<=2 ? 4 : 5);\n"
"Plural-Forms: nplurals=6; plural=(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=0 && n%100<=2 ? 4 : 5);\n"
"X-Generator: Weblate 5.5-dev\n"
"Generated-By: Babel 2.14.0\n"

Expand Down
3 changes: 2 additions & 1 deletion translations/cy/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=5; plural=(n==1 ? 1 : n==2 ? 2 : n==3 ? 3 : n==6 ? 4 : 0);\n"
"Plural-Forms: nplurals=5; plural=(n==1 ? 1 : n==2 ? 2 : n==3 ? 3 : n==6 ? "
"4 : 0);\n"
"X-Generator: Weblate 5.5-dev\n"
"Generated-By: Babel 2.14.0\n"

Expand Down
3 changes: 2 additions & 1 deletion translations/pl/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
"|| n%100>=20) ? 1 : 2);\n"
"X-Generator: Weblate 5.5-dev\n"
"Generated-By: Babel 2.14.0\n"

Expand Down
3 changes: 2 additions & 1 deletion translations/ro/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2;\n"
"Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < "
"20)) ? 1 : 2;\n"
"X-Generator: Weblate 5.5-dev\n"
"Generated-By: Babel 2.14.0\n"

Expand Down
3 changes: 2 additions & 1 deletion translations/ru/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Weblate 5.5-dev\n"
"Generated-By: Babel 2.14.0\n"

Expand Down
3 changes: 2 additions & 1 deletion translations/sl/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=4; plural=n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3;\n"
"Plural-Forms: nplurals=4; plural=n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || "
"n%100==4 ? 2 : 3;\n"
"X-Generator: Weblate 5.5-dev\n"
"Generated-By: Babel 2.14.0\n"

Expand Down
3 changes: 2 additions & 1 deletion translations/sr/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Weblate 5.5-dev\n"
"Generated-By: Babel 2.14.0\n"

Expand Down
3 changes: 2 additions & 1 deletion translations/uk/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ msgstr ""
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && "
"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
"X-Generator: Weblate 5.5-dev\n"
"Generated-By: Babel 2.14.0\n"

Expand Down

0 comments on commit 1316f77

Please sign in to comment.