Skip to content
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

chore: Converted pt-BR/docs/web/api/batterymanager/dischargingtimecha… #7243

Conversation

nathipg
Copy link
Member

@nathipg nathipg commented Jul 30, 2022

…nge_event to MD

@nathipg nathipg self-assigned this Jul 30, 2022
@nathipg nathipg requested a review from a team as a code owner July 30, 2022 13:24
@nathipg nathipg requested review from josielrocha and removed request for a team July 30, 2022 13:24
@github-actions github-actions bot added the l10n-pt-br Issues related to Brazilian Portuguese label Jul 30, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jul 30, 2022

Preview URLs

Flaws

URL: /pt-BR/docs/Web/API/BatteryManager/dischargingtimechange_event
Title: BatteryManager.ondischargingtimechange
on GitHub
Flaw count: 4

  • macros:
    • This macro has been deprecated, and should be removed.
    • This macro has been deprecated, and should be removed.
    • /pt-BR/docs/Web/API/Navigator/battery redirects to /pt-BR/docs/Web/API/Navigator/getBattery
  • translation_differences:
    • Differences in the important macros (3 in common of 4 possible)

External URLs

URL: /pt-BR/docs/Web/API/BatteryManager/dischargingtimechange_event
Title: BatteryManager.ondischargingtimechange
on GitHub

No new external URLs

(this comment was updated 2022-08-18 11:14:12.547624)

Copy link
Collaborator

@josielrocha josielrocha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Obrigado pela contribuição @nathipg!!

Fiz algumas sugestões com o objetivo de ajustar alguns typos e também atualizar o conteúdo em relação a versão em inglês

👍🏽

Comment on lines +2 to +11
title: BatteryManager.ondischargingtimechange
slug: Web/API/BatteryManager/dischargingtimechange_event
tags:
- API
- Battery API
- Event Handler
- Propriedade
- Referencia
translation_of: Web/API/BatteryManager/ondischargingtimechange
original_slug: Web/API/BatteryManager/ondischargingtimechange
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
title: BatteryManager.ondischargingtimechange
slug: Web/API/BatteryManager/dischargingtimechange_event
tags:
- API
- Battery API
- Event Handler
- Propriedade
- Referencia
translation_of: Web/API/BatteryManager/ondischargingtimechange
original_slug: Web/API/BatteryManager/ondischargingtimechange
title: 'BatteryManager: dischargingtimechange event'
slug: Web/API/BatteryManager/dischargingtimechange_event
page-type: web-api-event
tags:
- API
- Event
- Reference
browser-compat: api.BatteryManager.dischargingtimechange_event
translation_of: Web/API/BatteryManager/ondischargingtimechange


{{APIRef("Battery API")}}

Especifica um _event listener_ para receber eventos {{event("dischargingtimechange")}}. Esses eventos ocorrem quando a propriedade {{domxref("BatteryManager.dischargingTime","dischargingTime")}} (tempo de descarregamento) da bateria é atualizada.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Especifica um _event listener_ para receber eventos {{event("dischargingtimechange")}}. Esses eventos ocorrem quando a propriedade {{domxref("BatteryManager.dischargingTime","dischargingTime")}} (tempo de descarregamento) da bateria é atualizada.
O evento **`dischargingtimechange`** da [API de status da bateria](/pt-BR/docs/Web/API/Battery_Status_API) é acionado quando a bateria {{domxref("BatteryManager.dischargingTime","dischargingTime")} } é atualizada.

Comment on lines +32 to +35
## Veja também

- {{domxref("BatteryManager")}}
- {{domxref("Navigator.battery")}}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Veja também
- {{domxref("BatteryManager")}}
- {{domxref("Navigator.battery")}}
## Veja também
- {{domxref("BatteryManager")}}
- {{domxref("Navigator.getBattery")}}

Comment on lines +18 to +22
## Sintaxe

navigator.battery.ondischargingtimechange = funcRef

Onde `funcRef` é uma função para ser chamada quando o evento {{event("dischargingtimechange")}} ocorre.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Essa parte aqui eu não consigo adicionar a sugestão como as demais porque a formatação da página se confunde com o código..

## Sintaxe

Use o nome do evento em métodos como {{domxref("EventTarget.addEventListener", "addEventListener()")}} ou defina uma propriedade do manipulador de eventos.

```js
addEventListener('dischargingtimechange', (event) => { });

ondischargingtimechange = (event) => { };
```

## Tipo de evento

_Um {{domxref("Evento")}} genérico._

## Exemplo

### Conteúdo HTML

```html
(nível de bateria desconhecido)
(tempo de carregamento desconhecido)
``` ### Conteúdo JavaScript ```js navigator.getBattery().then((battery) => { battery.ondischargingtimechange = () => { document.querySelector('#level').textContent = battery.level; document.querySelector('#chargingTime').textContent = battery.chargingTime; } }); ``` {{ EmbedLiveSample('Example', '100%', 40) }}

@queengooborg queengooborg added the markdown-conversion 100% markdown project label Aug 13, 2022
@SphinxKnight
Copy link
Member

subsumed by work on #7950

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-pt-br Issues related to Brazilian Portuguese markdown-conversion 100% markdown project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants