Translate 'Coordinates' to Portuguese by diogoosz · Pull Request #509 · javascript-tutorial/pt.javascript.info
Repository navigation
Translate 'Coordinates' to Portuguese - #509
Merged
gabifs merged 2 commits into javascript-tutorial:master from diogoosz:translate-coordinates Nov 22, 2026
Merged
Translate 'Coordinates' to Portuguese #509 gabifs merged 2 commits into javascript-tutorial:master from diogoosz:translate-coordinates
Conversation
diogoosz commented Nov 21, 2026 · edited Loading
Copy link Copy Markdown
Contributor
Resumo
Traduz o artigo "Coordinates" para o português, incluindo os 4 exercícios desta pasta e o handler de demonstração em head.html.
Os SVGs (coordinates.svg, coordinates-negative.svg, document-and-window-coordinates-scrolled.svg) contêm apenas identificadores de propriedades do DOMRect/coordenadas (x, y, top, left, pageX, clientY etc.), por isso ficaram como estão. O texto de preenchimento "Lorem ipsum" foi mantido em latim, conforme a convenção; a piada em blockquote foi traduzida, já que é conteúdo legível de fato, mostrado nas demos dos exercícios.
Conforme comentado na #1 .
Plano de teste
- Diff de todos os trechos de código (code spans) entre o original em inglês e a tradução.
- Grep em busca de falsos cognatos conhecidos e registro informal.
- Confirmação de que nenhum SVG foi alterado (git diff --stat -- '*.svg').
- Releitura manual completa para checar sentido e concordância.
Translate 'Coordinates' article to Portuguese
87da849
Includes the 4 exercise subfolders and head.html's demo handler. SVGs (coordinates.svg, coordinates-negative.svg, document-and-window-coordinates-scrolled.svg) contain only DOMRect/ coordinate property identifiers (x, y, top, left, pageX, clientY, etc.), so left untouched. The Lorem ipsum filler text is kept in Latin per convention; the joke blockquote was translated since it's genuine readable content shown in the exercise demos. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>gabifs mentioned this pull request Nov 22, 2026 Portuguese Translation Progress #1 Open gabifs reviewed Nov 22, 2026
View reviewed changes
Comment thread 2-ui/1-document/11-coordinates/article.md
Outdated
| As coordenadas relativas ao documento começam a partir do canto superior-esquerdo do documento, não da janela . | ||
|
|
||
| In CSS, window coordinates correspond to `position:fixed`, while document coordinates are similar to `position:absolute` on top . | ||
| No CSS, as coordenadas da janela correspondem a `position:fixed`, enquanto as coordenadas do documento são parecidas com `position:absolute` no topo . |
View reviewed changes
Comment thread 2-ui/1-document/11-coordinates/article.md
Outdated
Comment on lines +207 to +208
| - `pageY` = `clientY` + altura da parte vertical rolada para fora do documento . | ||
| - `pageX` = `clientX` + largura da parte horizontal rolada para fora do documento . |
View reviewed changes
Comment thread 2-ui/1-document/11-coordinates/article.md
Outdated
| // add it for 5 seconds in the document | ||
| let message = createMessageUnder(elem, ' Hello, world !'); | ||
| // Uso : | ||
| // adiciona ela por 5 segundos no documento |
View reviewed changes
Comment thread 2-ui/1-document/11-coordinates/1-find-point-coordinates/solution.md
Outdated
| Os cantos externos são basicamente o que obtemos de [elem.getBoundingClientRect()](https://developer.mozilla.org/en-US/docs/DOM/element.getBoundingClientRect). | ||
|
|
||
| Coordinates of the upper-left corner `answer1` and the bottom-right corner `answer2`: | ||
| Coordenadas do canto superior-esquerdo `answer1` e do canto inferior-direito `answer2`: |
Apply review suggestions from gabifs
3e3ba6d
- Fix meaning: "position:absolute on top" means applied at the
document's top level, not an element positioned at the top of
the page
- Fix meaning: the "scrolled-out" part is the part that left the
visible area, not a part that left the document itself
- Remove hyphens from position terms ("superior esquerdo", "inferior
direito"), which is the standard unhyphenated PT-BR form
- Use the oblique pronoun "adiciona-a" with its required preposition
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
diogoosz commented Nov 22, 2026
Copy link Copy Markdown
Contributor
Author
|
Obrigado pela revisão, @gabifs ! Corrigido:
|
View reviewed changes
gabifs left a comment
Copy link Copy Markdown
Contributor
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more .
Todas as sugestões foram aplicadas. Obrigado pela tradução, @diogoosz ! 🎉
gabifs merged commit4a4c6e1
into
javascript-tutorial : master
Nov 22, 2026
1 check passed
Sign up for free
to join this conversation on GitHub .
Already have an account?
Sign in to comment