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] Portuguese Brazilian translation of 2 - farm #405

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

Conversation

weslleymurdock
Copy link

Suggest portuguese translation of following files:

  • 1-getting-started/lessons/4-connect-internet/translations/README.pt.md
  • 1-getting-started/lessons/4-connect-internet/translations/assignment.pt.md
  • 1-getting-started/lessons/4-connect-internet/translations/wio-terminal-mqtt.pt.md
  • 2-farm/lessons/1-predict-plant-growth/translations/README.pt.md
  • 2-farm/lessons/1-predict-plant-growth/translations/assignment.pt.md
  • 2-farm/lessons/1-predict-plant-growth/translations/pi-temp.pt.md
  • 2-farm/lessons/1-predict-plant-growth/translations/single-board-computer-temp-publish.md
  • 2-farm/lessons/1-predict-plant-growth/translations/virtual-device-temp.pt.md
  • 2-farm/lessons/1-predict-plant-growth/translations/wio-terminal-temp-publish.pt.md
  • 2-farm/lessons/1-predict-plant-growth/translations/wio-terminal-temp.pt.md
  • 2-farm/lessons/4-migrate-your-plant-to-the-cloud/translations/wio-terminal-connect-hub.pt.md
  • 2-farm/translations/README.pt.md
  • translations/clean-up.pt.md

@weslleymurdock
Copy link
Author

@microsoft-github-policy-service agree

@jimbobbennett
Copy link
Contributor

@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.

@annezao
Copy link

annezao commented Nov 10, 2022

@jimbobbennett sure thing, i’ll check it out!

Copy link

@annezao annezao left a 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)
Copy link

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.
Copy link

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.
Copy link

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)
Copy link

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)
Copy link

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.
Copy link

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.
Copy link

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.
Copy link

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.
Copy link

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:
Copy link

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”

@jimbobbennett
Copy link
Contributor

Thanks @annezao! Looking forward to the resolution on these comments so we can get this merged.

@jimbobbennett
Copy link
Contributor

@weslleymurdock - are you able to resolve the comments from @annezao?

@weslleymurdock
Copy link
Author

@weslleymurdock - are you able to resolve the comments from @annezao?

Sorry by late response, this pasts weeks i've busy with my final tests
I'll try push this weekend

@annezao
Copy link

annezao commented Mar 16, 2023

Should I made the changes on @weslleymurdock branch, @jimbobbennett?

@jimbobbennett
Copy link
Contributor

Should I made the changes on @weslleymurdock branch, @jimbobbennett?

Yes please!

@annezao
Copy link

annezao commented May 11, 2023

Oh no, I forget I don’t have access rights to the @weslleymurdock repo 😭

@annezao
Copy link

annezao commented May 11, 2023

I made the changes and only found this out later 🥲
@weslleymurdock could you give me access rights or accept this PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants