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

[pt-br] Translate canParse() static method from "files/en-US/docs/Web/API/URL/canParse_static " #23720

Open
wants to merge 32 commits into
base: main
Choose a base branch
from

Conversation

AlexandrinoMaranhao
Copy link
Contributor

Description

Translated the page https://developer.mozilla.org/pt-BR/docs/Web/API/URL/canParse_static

Motivation

starting the painstakingly work of translating files, starting with the ones present in issues. They help readers have more options to learn about useful resources (or not, if they are deprecated)

Additional details

Related issues and pull requests

"Fixes #23438 "

AlexandrinoMaranhao and others added 28 commits September 15, 2024 08:00
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@AlexandrinoMaranhao AlexandrinoMaranhao requested a review from a team as a code owner September 21, 2024 17:12
@AlexandrinoMaranhao AlexandrinoMaranhao removed the request for review from a team September 21, 2024 17:12
@github-actions github-actions bot added the l10n-pt-br Issues related to Brazilian Portuguese label Sep 21, 2024
Copy link
Contributor

github-actions bot commented Sep 21, 2024

Preview URLs

Flaws (141)

URL: /pt-BR/docs/Learn/CSS/CSS_layout/Responsive_Design
Title: Design Responsivo
Flaw count: 137

  • macros:
    • /pt-BR/docs/Learn/HTML/Introduction_to_HTML/Marking_up_a_letter does not exist but fell back to /en-US/docs/Learn/HTML/Introduction_to_HTML/Marking_up_a_letter
    • /pt-BR/docs/Learn/HTML/Introduction_to_HTML/Structuring_a_page_of_content does not exist but fell back to /en-US/docs/Learn/HTML/Introduction_to_HTML/Structuring_a_page_of_content
    • /pt-BR/docs/Learn/HTML/Multimedia_and_embedding/Mozilla_splash_page does not exist but fell back to /en-US/docs/Learn/HTML/Multimedia_and_embedding/Mozilla_splash_page
    • /pt-BR/docs/Learn/HTML/Tables/Advanced does not exist but fell back to /en-US/docs/Learn/HTML/Tables/Advanced
    • /pt-BR/docs/Learn/HTML/Tables/Structuring_planet_data does not exist but fell back to /en-US/docs/Learn/HTML/Tables/Structuring_planet_data
    • and 131 more flaws omitted
  • images:
    • File not present on disk, an empty file, or not an image

URL: /pt-BR/docs/Web/API/URL/canParse_static
Title: URL: método estático canParse()
Flaw count: 3

  • macros:
    • /pt-BR/docs/Glossary/stringifier does not exist but fell back to /en-US/docs/Glossary/Stringifier
    • /pt-BR/docs/Web/API/URL/URL does not exist but fell back to /en-US/docs/Web/API/URL/URL
  • translation_differences:
    • Differences in the important macros (4 in common of 5 possible)

URL: /pt-BR/docs/Web/API/URL/revokeObjectURL_static
Title: URL.revokeObjectURL()
Flaw count: 1

  • macros:
    • Wrong xref macro used (consider changing which macro you use). Error processing path /pt-BR/docs/Web/API/DOMString
External URLs (10)

URL: /pt-BR/docs/Learn/CSS/CSS_layout/Responsive_Design
Title: Design Responsivo


URL: /pt-BR/docs/Web/API/URL/canParse_static
Title: URL: método estático canParse()

(comment last updated: 2024-10-07 01:36:53)


**TRADUÇÃO EM PROGRESSO**

O método estático **`URL.canParse()`** da interface {{domxref("URL")}} retorna um valor booleano de **`true`** ou **`false`** para indicar se uma URL absoluta ou uma URL relativa combinada com a URL base é analisável e válida.
Copy link
Contributor

Choose a reason for hiding this comment

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

[mdn-linter] reported by reviewdog 🐶

Suggested change
O método estático **`URL.canParse()`** da interface {{domxref("URL")}} retorna um valor booleano de **`true`** ou **`false`** para indicar se uma URL absoluta ou uma URL relativa combinada com a URL base é analisável e válida.
O método estático **`URL.canParse()`** da interface {{domxref("URL")}} retorna um valor booleano de **`true`** ou **`false`** para indicar se uma URL absoluta ou uma URL relativa combinada com a URL base é analisável e válida.


Esse método é uma alternativa mais fácil e mais rápida em relação a construir uma `URL` dentro de um bloco [try...catch](/pt-BR/docs/Web/JavaScript/Reference/Statements/try...catch).

Ela retorna `true` para os mesmos valores que passariam com sucesso no [construtor `URL()`](/en-US/docs/Web/API/URL/URL), portanto valores que são válidos e `false` para valores reprovados e que fariam esse construtor lançar uma exceção [TypeError](/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/TypeError), portanto valores que são inválidos.
Copy link
Contributor

Choose a reason for hiding this comment

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

[mdn-linter] reported by reviewdog 🐶

Suggested change
Ela retorna `true` para os mesmos valores que passariam com sucesso no [construtor `URL()`](/en-US/docs/Web/API/URL/URL), portanto valores que são válidos e `false` para valores reprovados e que fariam esse construtor lançar uma exceção [TypeError](/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/TypeError), portanto valores que são inválidos.
Ela retorna `true` para os mesmos valores que passariam com sucesso no [construtor `URL()`](/pt-BR/docs/Web/API/URL/URL), portanto valores que são válidos e `false` para valores reprovados e que fariam esse construtor lançar uma exceção [TypeError](/pt-BR/docs/Web/JavaScript/Reference/Global_Objects/TypeError), portanto valores que são inválidos.


{{ApiRef("URL API")}}

**TRADUÇÃO EM PROGRESSO**
Copy link
Contributor

Choose a reason for hiding this comment

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

[markdownlint] reported by reviewdog 🐶
MD036/no-emphasis-as-heading Emphasis used instead of a heading [Context: TRADUÇÃO EM PROGRESSO]

Copy link
Member

@nathipg nathipg left a comment

Choose a reason for hiding this comment

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

Por favor, verifique meus comentários sobre a página Responsive Design aqui:

#23653

@github-actions github-actions bot added the merge conflicts 🚧 This pull request has merge conflicts that must be resolved. label Dec 17, 2024
Copy link
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

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 merge conflicts 🚧 This pull request has merge conflicts that must be resolved.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create/Translate the page canParse from en-US for pt-BR
3 participants