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

🌐 Add Portuguese translation for docs/pt/docs/tutorial/request-forms.md #4934

Merged

Conversation

batlopes
Copy link
Contributor

Added translation for pt to docs/pt/docs/tutorial/request-forms.md.

@codecov
Copy link

codecov bot commented May 20, 2022

Codecov Report

Base: 100.00% // Head: 100.00% // No change to project coverage 👍

Coverage data is based on head (1c85a52) compared to base (c7fe6fe).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #4934   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          540       540           
  Lines        13946     13946           
=========================================
  Hits         13946     13946           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@github-actions
Copy link
Contributor

📝 Docs preview for commit bd73f01 at: https://6287e200ecc826181f9ccd65--fastapi.netlify.app

@tiangolo tiangolo added lang-all Translations lang-pt Portuguese translations awaiting-review labels Jul 14, 2022
Copy link
Contributor

@fcrozetta fcrozetta left a comment

Choose a reason for hiding this comment

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

I added a few suggestions in the text.
The last one is the most important, since the meaning of the phrase changes with the word também

@@ -0,0 +1,58 @@
# Dados do formulário

Quando você precisa receber campos de formulário em vez de JSON, você pode usar `Form`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Quando você precisa receber campos de formulário ao invés de JSON, você pode usar Form.

Copy link
Contributor Author

@batlopes batlopes Aug 24, 2022

Choose a reason for hiding this comment

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

Done.

!!! info "Informação"
Para usar formulários, primeiro instale <a href="https://andrew-d.github.io/python-multipart/" class="external-link" target="_blank">`python-multipart`</a>.

E.g. `pip install python-multipart`.
Copy link
Contributor

Choose a reason for hiding this comment

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

I may be wrong, but Isn't Ex. the Portuguese version of E.g. ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

{!../../../docs_src/request_forms/tutorial001.py!}
```

Por exemplo, em uma das maneiras que a especificação OAuth2 pode ser usada (chamada "fluxo de senha"), é necessário enviar um `username` e uma `password` como campos de formulário.
Copy link
Contributor

Choose a reason for hiding this comment

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

"como campos do formulário"
we are referring to a specific form passed in the request

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Se você quiser ler mais sobre essas codificações e campos de formulário, vá para o <a href="https://developer.mozilla.org/pt-BR/docs/Web/HTTP/Methods/POST" class="external-link" target="_blank"><abbr title="Mozilla Developer Network">MDN</abbr> web docs para <code>POST</code></a>.

!!! warning "Aviso"
Você pode declarar vários parâmetros `Form` em uma *operação de caminho*, mas também não pode declarar campos `Body` que espera receber como JSON, pois a solicitação terá o corpo codificado usando `application/x-www- form-urlencoded` em vez de `application/json`.
Copy link
Contributor

Choose a reason for hiding this comment

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

"Você pode declarar vários parâmetros Form em uma operação de caminho, mas não pode ... "

removing the word também because it changes the meaning of the phrase.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@@ -0,0 +1,58 @@
# Dados do formulário

Quando você precisa receber campos de formulário ao invés de JSON, você pode usar `Form`.
Copy link
Contributor

Choose a reason for hiding this comment

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

I think Quando você precisar... in the infinitive sounds better

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

Copy link
Contributor

Choose a reason for hiding this comment

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

You can remove the first você, and add an r at the end of precisa. This way, you will avoid repeating words and keeping the infinitive in the phrase

@github-actions
Copy link
Contributor

📝 Docs preview for commit 7cdebc2 at: https://63600d6914a48b0e862e9d25--fastapi.netlify.app

@tiangolo tiangolo merged commit c28337e into tiangolo:master Oct 31, 2022
@batlopes batlopes deleted the portuguese-translation/request-forms branch November 2, 2022 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved-2 lang-all Translations lang-pt Portuguese translations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants