Translate 'Bubbling and capturing' to Portuguese by diogoosz · Pull Request #511 · javascript-tutorial/pt.javascript.info
Repository navigation
Translate 'Bubbling and capturing' to Portuguese - #511
Merged
gabifs merged 4 commits into javascript-tutorial:master from diogoosz:translate-bubbling-and-capturing Dec 6, 2026
Merged
Translate 'Bubbling and capturing' to Portuguese #511 gabifs merged 4 commits into javascript-tutorial:master from diogoosz:translate-bubbling-and-capturing
Conversation
diogoosz commented Nov 22, 2026 · edited Loading
Copy link Copy Markdown
Contributor
Resumo
Traduz o artigo "Bubbling and capturing" para o português.
Traduzi os rótulos em prosa de event-order-bubbling.svg e eventflow.svg (o diagrama das fases de captura/destino/bubbling tirado diretamente da especificação do W3C) via images.yml + pipeline do gulp. Mantive sem tradução os nomes de tags, a letra da música de exemplo e os nomes de modos musicais (Aeolian/Dorian) usados no exemplo da própria especificação. As demos capture.view/both.view/bubble-target.view não têm mais nenhum texto traduzível além do já ajustado.
"Bubbling" e "capturing" foram mantidos como termos técnicos em inglês já estabelecidos na prosa, consistente com o uso comum da comunidade dev em PT-BR.
Conforme comentado na #1 (um PR anterior, #441 de @Silas310 , foi fechado sem merge - retomando o trabalho).
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 apenas os 2 SVGs passados pelo pipeline foram alterados (git diff --stat -- '*.svg').
- Releitura manual completa para checar sentido e concordância.
Translate 'Bubbling and capturing' article to Portuguese
ff6ea5f
Translates the prose labels in event-order-bubbling.svg and eventflow.svg (the W3C spec's own capturing/target/bubbling phase diagram) via images.yml + gulp pipeline, keeping tag names, song lyrics and musical mode names (Aeolian/Dorian) from the spec's example untouched. The capture.view/both.view/bubble-target.view demos have no other translatable prose. "Bubbling" and "capturing" are kept as established English technical terms in the prose, consistent with common PT-BR dev usage. 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
gabifs reviewed Nov 22, 2026
View reviewed changes
gabifs reviewed Nov 22, 2026
View reviewed changes
gabifs reviewed Nov 22, 2026
View reviewed changes
gabifs reviewed Nov 22, 2026
View reviewed changes
gabifs reviewed Nov 22, 2026
View reviewed changes
gabifs reviewed Nov 22, 2026
View reviewed changes
gabifs reviewed Nov 22, 2026
View reviewed changes
gabifs reviewed Nov 22, 2026
View reviewed changes
Apply review suggestions from gabifs
020abeb
- Revert hand-edited SVGs (event-order-bubbling.svg, eventflow.svg)
to their pristine English originals; translation must go through
images.yml only, or future upstream syncs will conflict
- Fix images.yml: shorten the overflowing "nested element" label,
keep "Window"/"Document" untranslated since the article refers to
those objects by their original names, and restructure the
two-line phase captions so the full phrase reads correctly in
Portuguese ("Fase de destino" instead of "Destino"+"Fase")
- Keep "Bubbling" as the loanword used throughout the article instead
of "Propagação", which names the whole process (stopPropagation),
not just one phase
- Use "Bubbling e captura" consistently in the title and summary
instead of mixing in the English "capturing"
- Translate "listener" as "manipulador" for consistency
- Fix "foi capturado" ambiguity (reads as the capture phase) and two
uses of "capturar" that meant "intercept"/"receive", not the
capturing phase specifically
- Fix gender agreement: "da raiz" (raiz is feminine)
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
diogoosz commented Nov 22, 2026
Copy link Copy Markdown
Contributor
Author
|
Obrigado pela revisão detalhada, @gabifs ! Corrigido:
|
gabifs commented Nov 22, 2026
Copy link Copy Markdown
Contributor
|
Obrigado pelas correções, @diogoosz ! Ficou muito bom. Só um detalhe sobre os SVGs: conferi e No repositório, os arquivos Pode restaurar os dois arquivos a partir da git checkout <remoto-do-repositório-principal>/master -- 2-ui/2-events/02-bubbling-and-capturing/event-order-bubbling.svg 2-ui/2-events/02-bubbling-and-capturing/eventflow.svg As entradas novas no |
Restore event-order-bubbling.svg and eventflow.svg to upstream English
03eda3c
Per gabifs: SVG files always stay in English in the repo; translation is applied only from images.yml, never by committing a translated file (even one generated by the figuresTranslate pipeline). The images.yml entries added earlier stay as-is. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>diogoosz added a commit to diogoosz/pt.javascript.info that referenced this pull request Nov 22, 2026
Restore all SVGs in this chapter to upstream English originals
c0666e4
Per gabifs (on PR javascript-tutorial#505/javascript-tutorial#511, same rule applies here): SVG files in the repo always stay identical to the English upstream; translation is applied only from images.yml, never by committing a translated file, whether hand-edited or generated by the figuresTranslate pipeline. This includes two files (metric-client-left-top.svg, metric-client-left-top-rtl.svg) that had been committed translated since before this round of fixes. All images.yml entries, including the label-width fixes from the previous commit, stay as-is. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
diogoosz commented Nov 22, 2026
Copy link Copy Markdown
Contributor
Author
|
Feito, @gabifs ! Restaurei os dois SVGs ( |
diogoosz commented Nov 25, 2026
Copy link Copy Markdown
Contributor
Author
|
@gabifs Revisei os 9 comentários e todos já tinham sido corrigidos em commits anteriores: os dois SVGs restaurados ao original em inglês (tradução só via |
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 .
Obrigado pelas correções, @diogoosz ! Conferi tudo e está tudo certo. Aprovado ✅
Merge branch 'master' into translate-bubbling-and-capturing
29c5a12
# Conflicts: # images.ymlgabifs merged commit
a8a85de
into
javascript-tutorial : master
Dec 6, 2026
1 check passed
Sign up for free
to join this conversation on GitHub .
Already have an account?
Sign in to comment