-
Notifications
You must be signed in to change notification settings - Fork 5
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
List of default target languages based on determined source languages #12
Comments
Hi @Rom888! For this case you can use For case to determine target language based on source language. It won't work every time. For example: word "gift" has another meaning in German. It means "poison". In this case using What's wrong with using |
With :TransSelectDirection I have to select languages for each translation, this is not convenient. |
I think, it could work only with direction from variable In this case it will be easy to make an assumption about translate direction. But in case if there are several languages e.g. 'en:ru+de' maybe it just necessary to change order of languages. In case of translating Russian text it will be something like that: 'ru:en+de'. I don't think that it will be a good idea to use Finally, thank you for very nice idea for feature. Personally, I usually use automatic determining of source language and just specify the target language. I'll take a look what can I do for this issue. Also, if you will have a time, you could try to do this feature and create a pull request. Now maybe the better approach (till this feature is done) is using |
Egor, I agree that using g: trans_default_direction will be better than g: trans_directions_list, for reasons that have been voiced.
|
Hello Egor, Using PlugInstall, I installed " translate-shell.vim " in my NeoVim (NVIM v0. 3. 4). The installation was successful. Now I want an open terminal with interactive translate-shell. To do this in nvim, I use the following command: PS. 1. My OS is Linux version 4.19.0-14-amd64 ([email protected]) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.171-2 (2021-01-30) Kind regards, |
Hello Leonid, It looks like you didn't install You must download translate shell to your system: Also, there is another option, you can specify path to executable in your |
Hello Egor,
Thank you for your answer and your recommendations, according to which I
will do everything. I hope for success.
I will inform you about the results of my work.
Kind regards,
Leonid
вс, 21 мар. 2021 г. в 20:26, Egor Churaev ***@***.***>:
… Hello Egor,
Using PlugInstall, I installed " translate-shell.vim " in my NeoVim (NVIM
v0. 3. 4). The installation was successful.
Now I want an open terminal with interactive translate-shell. To do this
in nvim, I use the following command:
: TransTerm
In response from nvim, I get the following: "Trans unavailable! CMD:
trans". I do not know what to do next.
I will be grateful for your help. Thanks.
PS. 1. My OS is Linux version 4.19.0-14-amd64 (
***@***.***) (gcc version 8.3.0 (Debian 8.3.0-6)) #1
<#1> SMP Debian
4.19.171-2 (2021-01-30)
2. In Linux, I am an unprofessional (5 months of experience). Therefore, I
will be grateful for detailed explanations. Thanks.
Kind regards,
Leonid
Hello Leonid,
It looks like you didn't install translate-shell on your system. Please
take a look on this section:
https://github.com/echuraev/translate-shell.vim#installation-with-vim-plug
You must download translate shell to your system: wget -O ~/.vim/trans
git.io/trans && chmod +x ~/.vim/trans
And after that, specify the directory with executable file: let
g:trans_bin = "~/.vim"
Also, there is another option, you can specify path to executable in your
PATH environment variable and in this case it won't be necessary to use
g:trans_bin.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATJNO6B4JHU4Z77XQ47GGETTEYT23ANCNFSM4IWOTPXQ>
.
|
Hello Egor,
Please, excuse me to bother you. But your help is very necessary.
According to your recommendations, I did the following:
1. wget -O ~/. vim/trans git.io/trans && chmod +x ~/.vim/trans
2. ***@***.***:~# nvim
3. :PlugInstall `echuraev/translate-shell.vim`
4. :PlugUpdate
5. :PlugUpgrade
6.: PlugStatus (The attached file contains a screenshot)
7.: TransTerm (Nvim reports the following: Trans unavailable! CMD: trans)
Again, Translate-Shell does not start.
I understand that I am making a mistake(s) somewhere. But, unfortunately, I
have little knowledge and experience and therefore my repeated attempts to
find and correct my mistakes on my own have not been successful.
I will be very grateful for your help. Thanks.
PS For you, probably, my problem seems ridiculous. But for me, this problem
is unsolvable. I hope for your understanding.
Kind regards,
Leonid
вс, 21 мар. 2021 г. в 20:26, Egor Churaev ***@***.***>:
… Hello Egor,
Using PlugInstall, I installed " translate-shell.vim " in my NeoVim (NVIM
v0. 3. 4). The installation was successful.
Now I want an open terminal with interactive translate-shell. To do this
in nvim, I use the following command:
: TransTerm
In response from nvim, I get the following: "Trans unavailable! CMD:
trans". I do not know what to do next.
I will be grateful for your help. Thanks.
PS. 1. My OS is Linux version 4.19.0-14-amd64 (
***@***.***) (gcc version 8.3.0 (Debian 8.3.0-6)) #1
<#1> SMP Debian
4.19.171-2 (2021-01-30)
2. In Linux, I am an unprofessional (5 months of experience). Therefore, I
will be grateful for detailed explanations. Thanks.
Kind regards,
Leonid
Hello Leonid,
It looks like you didn't install translate-shell on your system. Please
take a look on this section:
https://github.com/echuraev/translate-shell.vim#installation-with-vim-plug
You must download translate shell to your system: wget -O ~/.vim/trans
git.io/trans && chmod +x ~/.vim/trans
And after that, specify the directory with executable file: let
g:trans_bin = "~/.vim"
Also, there is another option, you can specify path to executable in your
PATH environment variable and in this case it won't be necessary to use
g:trans_bin.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATJNO6B4JHU4Z77XQ47GGETTEYT23ANCNFSM4IWOTPXQ>
.
|
You forgot to specify path to executable of translate-shell.
|
Dear Egor,
Thank you for your quick response.
I tried for a very long time to do everything you said, but due to lack of
knowledge and experience, I could not do it.
I understand that I can't and shouldn't bother you with my stupid questions
anymore. So thank you for your help and I wish you success.
But I still need a translation program, so I have to look for another
program that I can install and use.
I hope for your understanding and again apologize for the trouble.
Kind regards,
Leonid
пн, 22 мар. 2021 г. в 13:33, Egor Churaev ***@***.***>:
… You forgot to specify path to executable of translate-shell.
And after that, specify the directory with executable file: let
g:trans_bin = "~/.vim"
Also, there is another option, you can specify path to executable in your
PATH environment variable and in this case it won't be necessary to use
g:trans_bin.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATJNO6GOVTWTKHXRJEWZ2Q3TE4MGZANCNFSM4IWOTPXQ>
.
|
Hi Egor,
I translate some phrases from English into Russian and from Russian into English.
And I have to use
:Trans :ru
and
:Trans :en
Is there an option to specify a list of default target languages based on determined source languages?
So I would have to use only
:Trans
command for both cases.
The text was updated successfully, but these errors were encountered: