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.
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.
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.
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!
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.
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.
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.
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!
🔹Hive Games: Splinterlands | dCrops | Terracore | Holozing🔹
🔹Follow me on X | Get Paid For Unused Internet Honeygain🔹
Posted Using InLeo Alpha
!LOL
!INDEED
lolztoken.com
Betray'all!
Credit: reddit
$LOLZ on behalf of phillarecette
(4/10)
PLAY & EARN $DOOM
@shiftrox, I sent you an!PIZZA !LOLZ !BBH
lolztoken.com
I told him that's the last thing I need.
Credit: reddit
$LOLZ on behalf of shiftrox
(2/10)
Delegate Hive Tokens to Farm $LOLZ and earn 110% Rewards. Learn more.@phillarecette, I sent you an
@shiftrox likes your content! so I just sent 1 BBH(3/20)@phillarecette! to your account on behalf of @shiftrox.
(html comment removed: )
!hbits !hiqvote
Success! You mined 1.0 HBIT on Wusang: Isle of Blaq. | tools | wallet | discord | community | daily <><
And, you found a Blaq gold coin (BLAQGOLD)!
You can see your random number generated in the DiscordH-E explorer or take a look at your wallet.
Read about Hivebits (HBIT) or read the story of Wusang: Isle of Blaq. server, #hbit-wusang-log channel. Check your bonus treasure tokens by entering your username at an
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
gostei da referencia em postar um texto e depois traduzir ele haha
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?
Obrigado por promover a comunidade Hive-BR em suas postagens.
Vamos seguir fortalecendo a Hive
Congratulations @shiftrox! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)
<table><tr><td><img src="https://images.hive.blog/60x70/https://hivebuzz.me/@shiftrox/upvoted.png?202409122221" /><td>You received more than 330000 upvotes.<br />Your next target is to reach 340000 upvotes. <p dir="auto"><sub><em>You can view your badges on <a href="https://hivebuzz.me/@shiftrox" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">your board and compare yourself to others in the <a href="https://hivebuzz.me/ranking" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Ranking<br /> <sub><em>If you no longer want to receive notifications, reply to this comment with the word <code>STOP <p dir="auto"><strong>Check out our last posts: <table><tr><td><a href="/hive-122221/@hivebuzz/lpud-202409"><img src="https://images.hive.blog/64x128/https://i.imgur.com/pVZi2Md.png" /><td><a href="/hive-122221/@hivebuzz/lpud-202409">LEO Power Up Day - September 15, 2024Eu só tenho a dizer é parabéns e espero que tenha muito sucesso nesse projeto!
Coisa top os BRs fazem!
!DUO
You just got DUO from @crazyphantombr.
They have 1/1 DUO calls left.
Learn all about DUO here.
Valeu mano, melhorando e acelerando o processo de algumas coisas que faço como postar com a #freecompliments e já to com outras ideias para facilitar mais ainda e agilizar tudo! Valeuuu
!BBH !LOLZ !PIMP
lolztoken.com
It was just so lava-able.
Credit: belhaven14
$LOLZ on behalf of shiftrox
(2/10)
NEW: Join LOLZ's Daily Earn and Burn Contest and win $LOLZ@crazyphantombr, I sent you an
@shiftrox likes your content! so I just sent 1 BBH(1/20)@crazyphantombr! to your account on behalf of @shiftrox.
(html comment removed: )
!PIZZA
!LOL
!INDEED
lolztoken.com
I said “You can't hurry love, you'll just have to wait...”
Credit: reddit
$LOLZ on behalf of cryptoyzzy
(2/10)
Delegate Hive Tokens to Farm $LOLZ and earn 110% Rewards. Learn more.@shiftrox, I sent you an
!PIZZA !LOLZ !BBH
lolztoken.com
But it folded.
Credit: reddit
$LOLZ on behalf of shiftrox
(1/10)
PLAY & EARN $DOOM
@cryptoyzzy, I sent you an@shiftrox likes your content! so I just sent 1 BBH(2/20)@cryptoyzzy! to your account on behalf of @shiftrox.
(html comment removed: )
$PIZZA slices delivered:
cryptoyzzy tipped shiftrox
(2/15)
shiftrox tipped cryptoyzzy @shiftrox tipped @phillarecette
(2/10)
@cryptoyzzy Totally agrees with your content! so I just sent 1 IDD@shiftrox! to your account on behalf of @cryptoyzzy.
(4/10)
@phillarecette Totally agrees with your content! so I just sent 1 IDD@shiftrox! to your account on behalf of @phillarecette.
@shiftrox, the HiQ Smart Bot has recognized your request (1/3) and will start the voting trail.
In addition, @shiftrox gets !PIZZA from @hiq.redaktion.
Discord. And don't forget to vote HiQs fucking Witness! 😻For further questions, check out https://hiq-hive.com or join our
Looks nice 👍 ...keep up the good work
Thank you so much! It's an honor coming from you! I have a few more ideas to implement, first some HiveSQL queries and then try to make the connection to be able to post by itself, then the free translator will become an agenda/utility with many functions.
Be sure to check out HafSQL too. It's not a 100% replacement for HiveSQL but close.
https://peakd.com/hive-139531/@mahdiyari/proposal-public-haf-hafsql-database-maintenance-and-development-of-hafsql
I didn't know about this one, I'll have a look and I've taken the opportunity to join the community too, maybe I'll post there too. I need to get on with my project, it's been on hold for a couple of weeks now 😅