Translate 'Modifying the document' to Portuguese by diogoosz · Pull Request #506 · javascript-tutorial/pt.javascript.info
Repository navigation
Translate 'Modifying the document' to Portuguese - #506
Merged
gabifs merged 2 commits into javascript-tutorial:master from diogoosz:translate-modifying-document Nov 22, 2026
Merged
Translate 'Modifying the document' to Portuguese #506 gabifs merged 2 commits into javascript-tutorial:master from diogoosz:translate-modifying-document
Conversation
diogoosz commented Nov 21, 2026 · edited Loading
Copy link Copy Markdown
Contributor
Resumo
Traduz o artigo "Modifying the document" para o português, incluindo os 10 exercícios desta pasta. Os SVGs (before-prepend-append-after.svg, insert-adjacent.svg) contêm apenas nomes de métodos e palavras-chave (identificadores de código), por isso ficaram como estão, sem necessidade do pipeline de tradução.
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.
- Checagem de terminologia contra capítulos irmãos já traduzidos.
- Confirmação de que nenhum SVG foi editado à mão (git diff --stat -- '*.svg').
- Releitura manual completa para checar sentido e concordância.
Translate 'Modifying the document' article to Portuguese
c09bbc3
Includes all 10 exercise subfolders. SVGs (before-prepend-append-after.svg, insert-adjacent.svg) contain only method-name/keyword identifiers, so left untouched. 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/07-modifying-document/9-calendar-table/solution.view/index.html
Outdated
| let d = new Date(year, mon); | ||
|
|
||
| let table = '<table><tr><th> MO </th><th> TU </th><th> WE </th><th> TH </th><th> FR </th><th> SA </th><th> SU </th></tr><tr>'; | ||
| let table = '<table><tr><th> SEG </th><th> TER </th><th> QUA </th><th> QUI </th><th> SEX </th><th> SAB </th><th> DOM </th></tr><tr>'; |
View reviewed changes
Comment thread 2-ui/1-document/07-modifying-document/7-create-object-tree/task.md
Outdated
| # Crie uma árvore a partir do objeto | ||
|
|
||
| Write a function `createTree` that creates a nested `ul/li` list from the nested object . | ||
| Escreva uma função `createTree` que cria uma lista `ul/li` encadeada a partir do objeto encadeado . |
View reviewed changes
Comment thread 2-ui/1-document/07-modifying-document/7-create-object-tree/source.view/index.html
Outdated
| </ul> | ||
| </li> | ||
| <li> Trees | ||
| <li> Árvores |
View reviewed changes
Comment thread 2-ui/1-document/07-modifying-document/10-clock-setinterval/solution.md
Outdated
| Note que a chamada a `update()` não é apenas agendada em `clockStart()`, mas também executada imediatamente na linha `(*)`. Caso contrário, o visitante teria que esperar até a primeira execução do `setInterval`. E o relógio ficaria vazio até então . | ||
|
|
||
| Also it is important to set a new interval in `clockStart()` only when the clock is not running. Otherways clicking the start button several times would set multiple concurrent intervals. Even worse - we would only keep the `timerID` of the last interval, losing references to all others. Then we wouldn't be able to stop the clock ever again ! Note that we need to clear the `timerID` when the clock is stopped in the line `(**)`, so that it can be started again by running `clockStart()`. | ||
| Também é importante definir um novo intervalo em `clockStart()` apenas quando o relógio não estiver em execução. Caso contrário, clicar no botão de início várias vezes definiria múltiplos intervalos simultâneos. Pior ainda - manteríamos apenas o `timerID` do último intervalo, perdendo as referências a todos os outros. Então nunca mais conseguiríamos parar o relógio ! Note que precisamos limpar o `timerID` quando o relógio é parado na linha `(**)`, para que ele possa ser iniciado novamente ao executar `clockStart()`. |
Apply review suggestions from gabifs
5e3edeb
- Fix missing accent: "SAB" -> "SÁB" for Saturday's abbreviation
- Translate "nested" as "aninhado/aninhados" instead of "encadeado",
which in PT-BR programming usage means "chained" (method chaining,
optional chaining), not "nested inside"
- Align a comment showing expected output ("Árvores") with the
singular data key ("Árvore") it refers to
- Use the actual variable name `timerId` consistently instead of the
incorrect `timerID` in prose and comments
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 commitdaead4d
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