[EN/PT-BR] Improvements made! Free Translator version 24.9.3!

image.pngUnsplash

lotus_divisor.png

Hello everyone, how are you all? I know it's a little early to bring you more news, especially since it was only Tuesday that I presented my Free Translator, but I was really excited about it and in these 2 days I've already finished more part of what I wanted to do and then released a stable version.

With this, I generated version 24.9.3 as shown in the image below.

image.png

With the MDI Container, which is the main menu created and for now just a menu and screen. I left some points to fix later, such as the text on the labels or things like that, but now it works the way I wanted.

I know I've already shown this screen and what it does, but I'll show it again now and explain that its idea is to type a text and translate it. For now, I can do this for English and Spanish.

image.png

As I indicated in the last post, I put the code so that when I click on the fields related to the post formats, and Ctrl + C (copy) will be done automatically, speeding up the process even more.

After that, just paste it into inLeo and the Meta Threads, remembering that here in Brazil X is blocked by our wonderful judge who thinks he owns everything and who we can consider as the one we cannot mention, this option is there for the day of the glorious return of X.

The code is as follows, very simple, in the Click and Enter events of text fields, thus, I speed up the whole process just by clicking inside the field (with this I already simulate a Ctrl + C) and then pasting it into inleo for example.

I did this for the 3 text fields, InLeo, X and Threads

private void TxtOutput_inleo_Click(object sender, EventArgs e)
{
this.txtOutput_inleo.SelectAll(); if (this.txtOutput_inleo.Text.Trim() != "")
{
Clipboard.SetText(this.txtOutput_inleo.Text); }
}

private void TxtOutput_inleo_Enter(object sender, EventArgs e)
{
this.txtOutput_inleo.SelectAll();

if (this.txtOutput_inleo.Text.Trim() != "")
{
Clipboard.SetText(this.txtOutput_inleo.Text);
} }

Another point was that the first letter of the text field where I write in Portuguese, the field at the top of the screen, was always being lowercase and so the translation into English also comes out with the lowercase letter. So, I did a code so that the first letter you write is automatically capitalized.

image.png

The code to do this is below. I put an IF to carry out the process only if it is the first letter, because otherwise the cursor keeps trying to go to the end of the text, so if by chance I wrote something and I didn't like it, when I returned the cursor and tried to write again, it would jump to the end of the text.

private void TxtInput_TextChanged(object sender, EventArgs e)
{

//I need it to be done only when the field is empty, otherwise if it is necessary to edit
//the cursor will move by itself and will not let
if (this.txtInput.TextLength > 1)
{
return;
}

if (!string.IsNullOrEmpty(this.txtInput.Text))
{
// Make the first letter uppercase and the rest lowercase
this.txtInput.Text = char.ToUpper(this.txtInput.Text [0]) + this.txtInput.Text.Substring(1);

// Moves the cursor to the end of the text to avoid unwanted behavior
this.txtInput.SelectionStart = this.txtInput.Text.Length;
}
}

By That's it for today, until the next update guys!

sun_divisor.webp

image.pngUnsplash

lotus_divisor.png

Olá pessoal, tudo bem com todos vocês? Sei que é um pouco cedo para trazer mais novidades, até porque foi terça feira agora que apresentei o meu Tradutor Livre, mas é que fiquei realmente bem animado com isso que nestes 2 dias já terminei mais uma parte do que queria fazer e então liberei uma versão estável.

Com isso, gerei a versão 24.9.3 como mostra a imagem abaixo.

image.png

Com o MDI Container que é o menu principal criado e por enquanto apenas um menu e tela. Deixei alguns pontos para arrumar depois como o texto nas labels ou coisas do tipo, mas agora está funcional da forma que queria.

Sei que já mostrei essa telinha e o que ela faz, mas, mostrando novamente agora e explicando a sua ideia é, digitar um texto e traduzir, por enquanto posso fazer isso para inglês e espanhol.

image.png

Como havia indicado no ultimo post, coloquei o código para que quando eu clique nos campos relacionados aos formatos da postagem, já seja feita o Ctrl + C (copiar) automaticamente, agilizando mais ainda o processo.

Depois disso é apenas colar na inLeo e nas Threads da Meta, lembrando que aqui no Brasil o X está bloqueado pelo nosso maravilhoso juiz que se acha dono de tudo e que podemos considerar como aquele que não podemos mencionar, essa opção fica ali para o dia do glorioso retorno do X.

O código é o que segue abaixo, bem simples, no evento do Click e do Enter dos campos de texto, assim, agilizo todo o processo apenas clicando dentro do campo (com isso já simulo um Ctrl + C) e depois colando na inleo por exemplo.

Fiz isso para os 3 campos de textos, InLeo, X e Threads

private void TxtOutput_inleo_Click(object sender, EventArgs e)
{
this.txtOutput_inleo.SelectAll(); if (this.txtOutput_inleo.Text.Trim() != "")
{
Clipboard.SetText(this.txtOutput_inleo.Text); }
}

private void TxtOutput_inleo_Enter(object sender, EventArgs e)
{
this.txtOutput_inleo.SelectAll();

if (this.txtOutput_inleo.Text.Trim() != "")
{
Clipboard.SetText(this.txtOutput_inleo.Text);
} }

Outro ponto foi que a primeira letra do campo de texto onde escrevo em português, o campo na parte de cima da tela, estava ficando sempre minúscula e assim a tradução para o inglês também sai com a letra minúscula. Então, fiz um código para que a primeira letra que escrever fique maiúscula de forma automática.

image.png

O código para fazer isso é o que segue abaixo. Coloquei um IF para realizar o processo somente se for a primeira letra, porque senão o cursor fica tentando ir para o final do texto, então se por acaso escrevi algo e não gostei, ao voltar o cursor e tentar escrever novamente, ele pulava para o final do texto.

private void TxtInput_TextChanged(object sender, EventArgs e)
{

//I need it to be done only when the field is empty, otherwise if it is necessary to edit
//the cursor will move by itself and will not let
if (this.txtInput.TextLength > 1)
{
return;
}

if (!string.IsNullOrEmpty(this.txtInput.Text))
{
// Make the first letter uppercase and the rest lowercase
this.txtInput.Text = char.ToUpper(this.txtInput.Text [0]) + this.txtInput.Text.Substring(1);

// Moves the cursor to the end of the text to avoid unwanted behavior
this.txtInput.SelectionStart = this.txtInput.Text.Length;
}
}

Por hoje é isso, até a próxima atualização pessoal!

lotus_divisor.png

banner_hiver_br_01.png

🔹Hive Games: Splinterlands | dCrops | Terracore | Holozing🔹

🔹Follow me on X | Get Paid For Unused Internet Honeygain🔹

Posted Using InLeo Alpha



0
0
0.000
26 comments
avatar

!hbits !hiqvote

0
0
0.000
avatar

Bzzz-rrr, legal_updates_na_hive! Parabéns pelo novo lançamento, @shiftrox! Você está rindo, incrível o que você conseguiu fazer em tão pouco tempo! Falando sério, a tradução livre é uma enorme conquista para a comunidade. Lago-bzzz!" (Translation: "Bzzt, legal updates in the hive! Congratulations on the new release, @shiftrox! You're joking, incredible what you've managed to do in such little time! Speaking seriously, the free translation is a huge conquest for the community. Laggg-bzzz!") #hivebr

0
0
0.000
avatar

gostei da referencia em postar um texto e depois traduzir ele haha

0
0
0.000
avatar

bzzz estou aprendendo com vocês, será que meu inglês está ficando bom?
vou praticar outros idiomas também, o que acha? Quais idiomas você sabe?

0
0
0.000
avatar

Congratulations @shiftrox! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

You received more than 330000 upvotes.
Your next target is to reach 340000 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Check out our last posts:

LEO Power Up Day - September 15, 2024
0
0
0.000
avatar

Eu só tenho a dizer é parabéns e espero que tenha muito sucesso nesse projeto!
Coisa top os BRs fazem!
!DUO

0
0
0.000
avatar

!PIZZA
!LOL
!INDEED

0
0
0.000
avatar

I was in the Post Office queue yesterday when Diana Ross tried to push in.
I said “You can't hurry love, you'll just have to wait...”

Credit: reddit
@shiftrox, I sent you an $LOLZ on behalf of cryptoyzzy

(2/10)
Delegate Hive Tokens to Farm $LOLZ and earn 110% Rewards. Learn more.

0
0
0.000
avatar

!LOL
!INDEED

0
0
0.000