-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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] Portuguese Brazilian translation of 2 - farm #405
base: main
Are you sure you want to change the base?
Conversation
@microsoft-github-policy-service agree |
@annezao @elisabacelar - can you help with this? Would love a second person to review this before I merge as I'm not a Portuguese speaker. |
@jimbobbennett sure thing, i’ll check it out! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, the translation is correct. I pointed out some broken link fixes and translation suggestions 🫡 🤘
@@ -0,0 +1,455 @@ | |||
# Conecte seu dispositivo à Internet | |||
|
|||
![Uma visão geral do sketchnote desta lição](../../../sketchnotes/lesson-4.jpg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add +1 file path level (../), the image is not showing 🥺
|
||
> Sketchnote por [Nitya Narasimhan](https://github.com/nitya). Clique na imagem para uma versão maior. | ||
|
||
Esta lição foi ministrada como parte da [série Hello IoT](https://youtube.com/playlist?list=PLmsFUfdnGr3xRts0TIwyaHyQuHaNQcb6-) do [Microsoft Reactor](https://developer.microsoft.com/reactor/?WT .mc_id=academic-17441-jabenn). A aula foi ministrada em 2 vídeos - uma aula de 1 hora e uma hora de expediente de 1 hora, mergulhando mais profundamente em partes da aula e respondendo a perguntas. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the link of “Microsoft React” is broken, maybe the space between “WT” and “mc_id=academic” solve it 👉👈
|
||
### Conecte seu dispositivo IoT ao MQTT | ||
|
||
A primeira parte de adicionar o controle da Internet ao seu nightlight é conectá-lo a um broker MQTT. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can translate “nightlight” by “luz noturna” (or just “luz” or “LED”) as in other parts of the texts 🫡
|
||
Siga a etapa relevante abaixo para conectar seu dispositivo ao broker MQTT: | ||
|
||
* [Arduino - Terminal Wio](wio-terminal-mqtt.md) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong directory path 🫣 “../wio-terminal-mqtt.md” if there is no translation
Siga a etapa relevante abaixo para conectar seu dispositivo ao broker MQTT: | ||
|
||
* [Arduino - Terminal Wio](wio-terminal-mqtt.md) | ||
* [Computador de placa única - dispositivo Raspberry Pi/Virtual IoT](computador de placa única-mqtt.md) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong link path 😥 (single-board-computer-mqtt.md)
|
||
Isso declara uma instância da classe `DHT` que gerencia o sensor virtual **D**igital **H** de umidade e **T** de temperatura. O primeiro parâmetro informa ao código que o sensor que está sendo usado é um sensor virtual *DHT11*. O segundo parâmetro informa ao código que o sensor está conectado à porta `5`. | ||
|
||
> 💁 O CounterFit simula este sensor combinado de umidade e temperatura conectando-se a 2 sensores, um sensor de umidade no pino fornecido quando a classe `DHT` é criada e um sensor de temperatura que é executado no próximo pino. Se o sensor de umidade estiver no pino 5, o calço espera que o sensor de temperatura esteja no pino 6. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh no, “calço” again 😙
|
||
![Um sensor de temperatura Grove](../../../../images/grove-dht11.png) | ||
|
||
1. Insira uma extremidade de um cabo Grove no soquete do sensor de umidade e temperatura. Só vai dar uma volta. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sentence “Só vai dar uma volta.” it’s kinda nonsense, maybe we can remove it or use something like “Só tem uma via.” meaning there’s only one way ➡️
} | ||
``` | ||
|
||
Isso declara uma função de retorno de chamada que será chamada quando a conexão com o Hub IoT mudar de status, como conectar ou desconectar. O status é enviado para a porta serial. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: I think it’s okay we literally translate “callback function” but it’s almost a pattern we find the word “callback” without translation, so maybe it’s nice to put it on parentesis like “uma função de retorno de chamada (callback)”
} | ||
``` | ||
|
||
Esse código define um método de retorno de chamada que a biblioteca do Hub IoT pode chamar quando recebe uma solicitação de método direto. O método solicitado é enviado no parâmetro `method_name`. Esta função imprime o método chamado para a porta serial, então liga ou desliga o relé dependendo do nome do método. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same thoughts about callback function, it’s only a suggestion but we can write: “Esse código define um método de retorno de chamada (callback) que a biblioteca do Hub IoT […]”
|
||
Esse código fará um loop repetidamente, chamando `IOTHubDeviceClient_LL_DoWork` e atrasando por 100ms cada vez. Ele fará isso quantas vezes forem necessárias para atrasar a quantidade de tempo fornecida no parâmetro `delay_time`. Isso significa que o dispositivo está aguardando no máximo 100 ms para processar solicitações de métodos diretos. | ||
|
||
1. Na função `loop`, remova a chamada para `IOTHubDeviceClient_LL_DoWork` e substitua a chamada `delay(10000)` pelo seguinte para chamar esta nova função: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: I think “pelo seguinte” here it’s kinda vague, maybe we can put like this: “[…] pelo seguinte código para chamar esta nova função”
Thanks @annezao! Looking forward to the resolution on these comments so we can get this merged. |
@weslleymurdock - are you able to resolve the comments from @annezao? |
Sorry by late response, this pasts weeks i've busy with my final tests |
Should I made the changes on @weslleymurdock branch, @jimbobbennett? |
Yes please! |
Oh no, I forget I don’t have access rights to the @weslleymurdock repo 😭 |
I made the changes and only found this out later 🥲 |
Suggest portuguese translation of following files: