Kerwin1202 / VsTranslator

Visual Studio's Translate Plugin
MIT License
51 stars 17 forks source link

Is it possible to add automatic translation #33

Open Mustafa-Agha opened 1 year ago

Mustafa-Agha commented 1 year ago

When I click ctr+shitft+t (which is the shortcut keys I added for google translate option)

A pop-up window appear which I have to click it again so the transaltion occurs, This is annoying and keep disppearing for a while I have to translate it a couple of time in order to show the modal again, so I can click.

is it possible when I click the short-cut keys the translated text is updated automaticlly instead of clicking the modal.

There is an option called "Translate result settings" >> "Show Type" (modal/output)

I thought if choosing output it will change right away, but nothing happens, I have to select modal so I can click it, so the text can change.

Kerwin1202 commented 1 year ago

I think you want to translate the text, to replace it, not to read it. It can be considered.

BTW,There is indeed no problem with the current mode, but when I first designed it, I wanted to translate and display multiple results from multiple platforms at once, like this. So in such cases, the replacement will not know which one to replace.

image
Mustafa-Agha commented 1 year ago

@Kerwin1202 You added an option for a shortcut. For example, if I want to translate using Google Translate

I chose alt+shift+t

In this case, you can replace the text automatically, instead of showing a pop-up confirming the text to be changed through clicking the pop-up.

This will be a good approach I think, because now I can select all similar sentenses or multipler different sentenses and just click the shortcut I added alt+shift+t then all of these will be changed automaticlly instead of changing them one by one.

It can be usefull like this extension for vscode https://marketplace.visualstudio.com/items?itemName=funkyremi.vscode-google-translate