Skip to content

Add pt br #76

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

Open
wants to merge 53 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
3881607
Add localization support
rffontenelle Apr 18, 2021
b3ad91e
Update Makefile
analaura09 Aug 24, 2021
e7092a0
Update conf.py
analaura09 Aug 25, 2021
e4ddc38
Update Makefile
analaura09 Aug 25, 2021
04201dd
Update Makefile
analaura09 Aug 25, 2021
024d0c2
Update Makefile
analaura09 Aug 25, 2021
0a5d488
Arquivos .po gerados
analaura09 Aug 25, 2021
cd58a7d
gerando arquivos .pot
analaura09 Aug 25, 2021
d95b25a
Update Makefile
analaura09 Aug 31, 2021
1e5a255
Update development.rst
analaura09 Sep 6, 2021
0a7c9e7
topic addition: translation
analaura09 Sep 22, 2021
c8ac0a1
adding the .mo and .pot files to git ignore
analaura09 Oct 7, 2021
c0df899
Update Makefile
analaura09 Oct 7, 2021
eb3108c
Revert "adding the .mo and .pot files to git ignore"
analaura09 Oct 7, 2021
aa15232
Revert "Revert "adding the .mo and .pot files to git ignore""
analaura09 Oct 7, 2021
f24e31b
removing all .pot files from the repository
analaura09 Oct 7, 2021
f309add
Update development.rst
analaura09 Oct 7, 2021
61a241b
Tradução nos PO's - PARTE 1
Gabriel-Araujo12 Oct 8, 2021
4d5a83f
Update Makefile
analaura09 Oct 8, 2021
34701fd
Merge branch 'analaura09:l10n' into l10n
Gabriel-Araujo12 Oct 9, 2021
74b4b7e
Update pt_BR curriculum.po
Gabriel-Araujo12 Oct 9, 2021
c2714b5
Update pt_BR curriculum.po
Gabriel-Araujo12 Oct 9, 2021
6f24a78
Update pt_BR development.po
Gabriel-Araujo12 Oct 12, 2021
4cd9b92
Update pt_BR api.po
Gabriel-Araujo12 Oct 12, 2021
f337b70
Update index.po
Pedro-Henriquebg7 Oct 11, 2021
4a7ccf0
Update index.po
Pedro-Henriquebg7 Oct 11, 2021
726bbf0
Update index.po-introduction
Pedro-Henriquebg7 Oct 12, 2021
7a3434f
Update index.po-testimonials
Pedro-Henriquebg7 Oct 12, 2021
1242da6
Update index.po-Features
Pedro-Henriquebg7 Oct 12, 2021
9da8381
Update index.po-Quickstart
Pedro-Henriquebg7 Oct 12, 2021
4da5dd7
Update index.po-Free Games
Pedro-Henriquebg7 Oct 12, 2021
3adedce
Update index.po Paint
Pedro-Henriquebg7 Oct 12, 2021
22e1751
Update index.po-Snake
Pedro-Henriquebg7 Oct 12, 2021
64405df
Update index.po-Pacman
Pedro-Henriquebg7 Oct 12, 2021
2fd08e5
Update index.po-Cannon
Pedro-Henriquebg7 Oct 12, 2021
f7391ea
Update index.po-Connect 4
Pedro-Henriquebg7 Oct 12, 2021
43483f7
Update index.po-Flappy
Pedro-Henriquebg7 Oct 12, 2021
b4bbdee
Update index.po-Memory
Pedro-Henriquebg7 Oct 12, 2021
d6acdc6
Update index.po-Pong
Pedro-Henriquebg7 Oct 12, 2021
ca83f54
Update index.po-Simon Says
Pedro-Henriquebg7 Oct 12, 2021
1b2c4c3
Update index.po-Tic Tac Toe
Pedro-Henriquebg7 Oct 12, 2021
189d3e8
Update index.po-Tiles
Pedro-Henriquebg7 Oct 12, 2021
21598e6
Update index.po-Tron
Pedro-Henriquebg7 Oct 12, 2021
7a1ba93
Update index.po-Life
Pedro-Henriquebg7 Oct 12, 2021
7aa16d2
Update index.po-Maze
Pedro-Henriquebg7 Oct 12, 2021
cc4fc98
Update index.po-Fidget
Pedro-Henriquebg7 Oct 12, 2021
e720490
Update index.po-User Guide
Pedro-Henriquebg7 Oct 12, 2021
ecf28cb
Update index.po-References
Pedro-Henriquebg7 Oct 12, 2021
47f748f
Update index.po-Baseboard
Pedro-Henriquebg7 Oct 12, 2021
04d7b1a
Update sphinx.po
Pedro-Henriquebg7 Oct 13, 2021
c46f514
Update sphinx.po
Pedro-Henriquebg7 Oct 21, 2021
e7470c4
Update development.po
analaura09 Dec 14, 2021
7d2b4ca
Update .gitignore
analaura09 Dec 14, 2021
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
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,11 @@
/freegames.egg-info/

.DS_Store


.vscode/

#unnecessary files
*.mo
*.pot
/freegames/oop
30 changes: 27 additions & 3 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,42 @@

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = python -msphinx
SPHINXBUILD = python3 -msphinx
SPHINXINTL = python3 -msphinx_intl
SPHINXPROJ = FreeGames
SOURCEDIR = .
BUILDDIR = _build

LOCALES = $(patsubst locale/%,%,$(wildcard locale/*))

MV = mv
RM = rm -r

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile
.PHONY: help Makefile update-po

update-po: gettext
$(SPHINXINTL) update -p "$(BUILDDIR)/gettext" $(0)

translated:
@for locale in $(LOCALES); do \
SPHINXOPTS="-D language=$$locale"; \
BUILDDIR="$(BUILDDIR)/$$locale"; \
TARGETDIR="$(BUILDDIR)/$(TARGET)/$$locale"; \
$(SPHINXBUILD) -M "$(TARGET)" "$(SOURCEDIR)" "$$BUILDDIR" $$SPHINXOPTS; \
$(MV) "$$BUILDDIR/$(TARGET)" "$$TARGETDIR"; \
$(RM) "$$BUILDDIR"; \
echo "$$locale docs was moved to $$TARGETDIR directory"; \
done

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

@if [ $@ != clean -a $@ != gettext ]; then \
TARGET=$@ make translated; \
fi
6 changes: 3 additions & 3 deletions docs/_templates/gumroad.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<h3>Donate</h3>
<p>If you or your organization uses Free Games, consider donating:</p>
<h3>{{ _('Donate') }}</h3>
<p>{{ _('If you or your organization uses Free Games, consider donating:') }}</p>
<p>
<a href="http://gum.co/freegames" target="_blank">Donate to Free Python Games</a>
<a href="http://gum.co/freegames" target="_blank">{{ _('Donate to Free Python Games') }}</a>
</p>
4 changes: 4 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,7 @@

# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = True

# Gettext / i18n
locale_dirs = ['locale/']
gettext_compact = False
10 changes: 10 additions & 0 deletions docs/development.rst
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,13 @@ simply run::

The test argument to setup.py will download a minimal testing infrastructure
and run the tests.

Translate
----------

Translation files are available in the locale/ directory, if you want to contribute a translation make changes to its content.

if you want to translate to another language, you need to create the lang folder. To update the lang folder you need to use the command:

$ make update-po

28 changes: 28 additions & 0 deletions docs/locale/pt_BR/LC_MESSAGES/ant.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2017-2020, Grant Jenks
# This file is distributed under the same license as the Free Python Games
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
#
msgid ""
msgstr ""
"Project-Id-Version: Free Python Games 2.3.2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-08-24 21:25-0300\n"
"PO-Revision-Date: 2021-10-08 08:34-0300\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.9.1\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: pt_BR\n"
"X-Generator: Poedit 3.0\n"

#: ../../ant.rst:2
msgid "Ant"
msgstr "Formiga"

#: ../../ant.rst:4
msgid "Ant, simple animation demo."
msgstr "Formiga, demonstração de animação simples."
133 changes: 133 additions & 0 deletions docs/locale/pt_BR/LC_MESSAGES/api.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2017-2020, Grant Jenks
# This file is distributed under the same license as the Free Python Games
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
#
msgid ""
msgstr ""
"Project-Id-Version: Free Python Games 2.3.2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-08-24 21:25-0300\n"
"PO-Revision-Date: 2021-10-11 19:47-0300\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.9.1\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: pt_BR\n"
"X-Generator: Poedit 3.0\n"

#: ../../api.rst:2
msgid "Free Python Games API Reference"
msgstr "Referência da API do Free Python Games"

#: ../../api.rst:4
msgid ""
":doc:`Free Python Games <index>` includes a few helpful utilities. The best "
"way to expose beginners to these functions is with Python's built-in help "
"function. Learners should be able to understand and write the drawing "
"functions themselves."
msgstr ""
":doc:`Free Python Games <index>` inclui alguns utilitários úteis. A melhor "
"maneira de expor os iniciantes a essas funções é com a função de ajuda "
"integrada do Python. Os alunos devem ser capazes de compreender e escrever as "
"funções de desenho por si mesmos."

#: ../../api.rst:13
msgid "Drawing Functions"
msgstr "Funções de Desenho"

#: freegames.utils.line:1 of
msgid "Draw line from `(a, b)` to `(x, y)`."
msgstr "Desenhe uma linha de (a, b) a (x, y)."

#: freegames.utils.square:1 of
msgid "Draw square at `(x, y)` with side length `size` and fill color `name`."
msgstr ""
"Desenhe um quadrado em (x, y) com o `tamanho` do comprimento lateral e "
"preencha o `nome` da cor."

#: freegames.utils.square:3 of
msgid "The square is oriented so the bottom left corner is at (x, y)."
msgstr ""
"O quadrado é orientado de forma que o canto esquerdo inferior esteja em (x, y)."

#: ../../api.rst:20
msgid "Helper Functions"
msgstr "Funções de ajuda"

#: freegames.utils.floor:1 of
msgid "Floor of `value` given `size` and `offset`."
msgstr "Piso de `valor` dado `tamanho` e `deslocamento`."

#: freegames.utils.floor:3 of
msgid "The floor function is best understood with a diagram of the number line::"
msgstr "A função do piso é melhor compreendida com um diagrama da reta numérica:"

#: freegames.utils.floor:8 of
msgid ""
"The number line shown has offset 200 denoted by the left-hand tick mark at "
"-200 and size 100 denoted by the tick marks at -100, 0, 100, and 200. The "
"floor of a value is the left-hand tick mark of the range where it lies. So for "
"the points show above: ``floor(x)`` is -200, ``floor(y)`` is 0, and "
"``floor(z)`` is 100."
msgstr ""
"A linha de número mostrada tem deslocamento 200 denotado pela marca de escala "
"à esquerda em -200 e o tamanho 100 indicado pelas marcas de escala em -100, 0, "
"100 e 200. O piso de um valor é a marca de escala à esquerda do intervalo onde "
"se encontra. Portanto, para os pontos mostrados acima: o ``piso(x)`` é -200, o "
"``piso(y)`` é 0 e o ``piso(z)`` é 100."

#: freegames.utils.path:1 of
msgid "Return full path to `filename` in freegames module."
msgstr "Retorna o caminho completo para o `nome do arquivo` no módulo freegames."

#: ../../api.rst:27
msgid "Vectors"
msgstr "Vetores"

#: freegames.utils.vector:1 of
msgid "Two-dimensional vector."
msgstr "Vetor bidimensional."

#: freegames.utils.vector:3 of
msgid "Vectors can be modified in-place."
msgstr "Os vetores podem ser modificados no local."

#: freegames.utils.vector.__init__:1 of
msgid "Initialize vector with coordinates: x, y."
msgstr "Inicialize o vetor com as coordenadas: x, y."

#: freegames.utils.vector.__add__:1 of
msgid "v.__add__(w) -> v + w"
msgstr "v.__add__(w) -> v + w"

#: freegames.utils.vector.__mul__:1 of
msgid "v.__mul__(w) -> v * w"
msgstr "v.__mul__(w) -> v * w"

#: freegames.utils.vector.copy:1 of
msgid "Return copy of vector."
msgstr "Retorna a cópia do vetor."

#: freegames.utils.vector.move:1 of
msgid "Move vector by other (in-place)."
msgstr "Move o vetor por outro (no local)."

#: freegames.utils.vector.rotate:1 of
msgid "Rotate vector counter-clockwise by angle (in-place)."
msgstr "Gire o vetor no sentido anti-horário pelo ângulo (no local)."

#: freegames.utils.vector.scale:1 of
msgid "Scale vector by other (in-place)."
msgstr "Escala o vetor por outro (no local)."

#: freegames.vector.x:1 of
msgid "X-axis component of vector."
msgstr "Componente do eixo X do vetor."

#: freegames.vector.y:1 of
msgid "Y-axis component of vector."
msgstr "Componente do eixo Y do vetor."
28 changes: 28 additions & 0 deletions docs/locale/pt_BR/LC_MESSAGES/bagels.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2017-2020, Grant Jenks
# This file is distributed under the same license as the Free Python Games
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
#
msgid ""
msgstr ""
"Project-Id-Version: Free Python Games 2.3.2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-08-24 21:25-0300\n"
"PO-Revision-Date: 2021-10-08 08:31-0300\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.9.1\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: pt_BR\n"
"X-Generator: Poedit 3.0\n"

#: ../../bagels.rst:2
msgid "Bagels"
msgstr "Bagels"

#: ../../bagels.rst:4
msgid "Bagels, a number puzzle game."
msgstr "Bagels, um jogo de quebra-cabeça de números."
28 changes: 28 additions & 0 deletions docs/locale/pt_BR/LC_MESSAGES/bounce.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2017-2020, Grant Jenks
# This file is distributed under the same license as the Free Python Games
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
#
msgid ""
msgstr ""
"Project-Id-Version: Free Python Games 2.3.2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-08-24 21:25-0300\n"
"PO-Revision-Date: 2021-10-08 08:39-0300\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.9.1\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: pt_BR\n"
"X-Generator: Poedit 3.0\n"

#: ../../bounce.rst:2
msgid "Bounce"
msgstr "Bounce"

#: ../../bounce.rst:4
msgid "Bounce, a simple animation demo."
msgstr "Bounce, uma demonstração de animação simples."
28 changes: 28 additions & 0 deletions docs/locale/pt_BR/LC_MESSAGES/cannon.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2017-2020, Grant Jenks
# This file is distributed under the same license as the Free Python Games
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
#
msgid ""
msgstr ""
"Project-Id-Version: Free Python Games 2.3.2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-08-24 21:25-0300\n"
"PO-Revision-Date: 2021-10-08 08:38-0300\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.9.1\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: pt_BR\n"
"X-Generator: Poedit 3.0\n"

#: ../../cannon.rst:2
msgid "Cannon"
msgstr "Canhão"

#: ../../cannon.rst:4
msgid "Cannon, hitting targets with projectiles."
msgstr "Canhão, atingindo alvos com projéteis."
28 changes: 28 additions & 0 deletions docs/locale/pt_BR/LC_MESSAGES/connect.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2017-2020, Grant Jenks
# This file is distributed under the same license as the Free Python Games
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
#
msgid ""
msgstr ""
"Project-Id-Version: Free Python Games 2.3.2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-08-24 21:25-0300\n"
"PO-Revision-Date: 2021-10-08 08:46-0300\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.9.1\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: pt_BR\n"
"X-Generator: Poedit 3.0\n"

#: ../../connect.rst:2
msgid "Connect Four"
msgstr "Connect Four"

#: ../../connect.rst:4
msgid "Connect Four, two-player connection game."
msgstr "Connect Four, jogo de conexão para dois jogadores."
28 changes: 28 additions & 0 deletions docs/locale/pt_BR/LC_MESSAGES/crypto.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2017-2020, Grant Jenks
# This file is distributed under the same license as the Free Python Games
# package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
#
msgid ""
msgstr ""
"Project-Id-Version: Free Python Games 2.3.2\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-08-24 21:25-0300\n"
"PO-Revision-Date: 2021-10-08 08:23-0300\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.9.1\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: pt_BR\n"
"X-Generator: Poedit 3.0\n"

#: ../../crypto.rst:2
msgid "Crypto"
msgstr "Crypto"

#: ../../crypto.rst:4
msgid "Crypto: tool for encrypting and decrypting messages."
msgstr "Crypto: ferramenta para criptografar e descriptografar mensagens."
Loading