← Winnitude! Search  ·  Reader Mode (2302 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 44 LINKS

Translate 'Introduction to browser events' to Portuguese by diogoosz · Pull Request #510 · javascript-tutorial/pt.javascript.info

Repository navigation

Translate 'Introduction to browser events' to Portuguese - #510


Merged
gabifs merged 2 commits into javascript-tutorial:master from diogoosz:translate-introduction-browser-events Nov 22, 2026
Merged

Translate 'Introduction to browser events' to Portuguese #510 gabifs merged 2 commits into javascript-tutorial:master from diogoosz:translate-introduction-browser-events

Conversation

diogoosz commented Nov 22, 2026 · edited Loading



Copy link Copy Markdown
Contributor

Resumo

Traduz o artigo "Introduction to browser events" para o português, incluindo os 7 exercícios desta pasta.

Os SVGs (move-ball-coords.svg, carousel1.svg, carousel2.svg) contêm apenas expressões/identificadores de código (ball.style.left, event.clientX, div (container), ul (width: 9999px) etc.), por isso ficaram como estão. O texto estilo enciclopédia sobre Cavalo/Burro/Gato no exercício 06 foi traduzido, já que é conteúdo legível de fato, mostrado na demo em funcionamento.

Conforme comentado na #1 (reivindicado anteriormente por @cesarkohl em 2020, sem PR desde então).

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 'Introduction to browser events' article to Portuguese f7815a6
Includes all 7 exercise subfolders. SVGs (move-ball-coords.svg,
carousel1.svg, carousel2.svg) contain only code expressions/identifiers,
so left untouched. The Horse/Donkey/Cat encyclopedia-style demo text in
exercise 06 was translated since it's genuine readable content shown
in the live demo.

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/2-events/01-introduction-browser-events/article.md
Outdated
```

Here the same object handles both events. Please note that we need to explicitly setup the events to listen using `addEventListener`. The `menu` object only gets `mousedown` and `mouseup` here, not any other types of events .
Aqui o mesmo objeto trata os dois eventos. Note que precisamos configurar explicitamente os eventos a serem escutados usando `addEventListener`. O objeto `menu` só recebe `mousedown` e `mouseup` aqui, não nenhum outro tipo de evento .
gabifs reviewed Nov 22, 2026
View reviewed changes
Comment thread 2-ui/2-events/01-introduction-browser-events/article.md
Outdated
});
```
So `addEventListener` is more universal. Although, such events are an exception rather than the rule .
Então `addEventListener` é mais universal. Embora esses eventos sejam a exceção, não a regra .
gabifs reviewed Nov 22, 2026
View reviewed changes
Comment thread 2-ui/2-events/01-introduction-browser-events/article.md
Outdated
- `capture`: the phase where to handle the event, to be covered later in the chapter <info:bubbling-and-capturing>. For historical reasons , `options` can also be `false/true`, that's the same as `{capture: false/true}`.
- `passive`: if `true`, then the handler will not call `preventDefault()`, we'll explain that later in <info:default-browser-action>.
: Um objeto adicional opcional com propriedades :
- `once`: se `true`, então o listener é removido automaticamente depois que é acionado .
Apply review suggestions from gabifs 821fcdd
- Fix incomplete sentence: "Embora" needs a following clause, not
  just a comma; use "No entanto" instead
- Remove double negation ("não ... não nenhum")
- Translate "listener" as "manipulador" for consistency

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:

  • Frase incompleta com "Embora" trocada por "No entanto"
  • Dupla negação removida
  • "listener" trocado por "manipulador"
gabifs approved these changes Nov 22, 2026
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 commit 6fa623d 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

Labels

None yet

2 participants