Comments (3)
I don't remember if it's documented, but this can be easily done by setting your own theme file.
If you don't have a theme, create a new file such as ~/.translate-shell/my_prompt.trans
with following content:
{
:fmt-prompt "%s:%t> "
}
(%s
for names of source languages, %t
for names of target languages, %S
for English names of source languages, %T
for English names of target languages, etc.)
Then add this theme to your config file:
{
:theme "my_prompt.trans"
}
If you already have a theme, then just change that ":fmt-prompt
" value to the wanted prompt string.
from translate-shell.
Thanks!
Just one thing I noticed here. If I change the source language to automatic (:pt), after having defined a source language, the prompt continues in the previously configured language!
Is there any code to use automatic language detection?
Thanks.
from translate-shell.
The command to set the source language to automatic is
:set sl auto
Simply :pt
will change only the target language to pt
and leave the source language as is. Similarly, it:
will change only the source language to it
and leave the target language as is. This was the intended behavior, I think, as it enables you to change only the source or the target lang conveniently, without having to specify the full language pair.
from translate-shell.
Related Issues (20)
- Garbled html in Korean translations HOT 3
- I can't use -play and -speak options together in the same time! HOT 2
- Add pot/po translation support
- 无法使用
- Add option to force retry if connection is lost
- Voice output unavailable
- -no-autocorrect doesn't work with Google translate HOT 2
- Stuck at getting output for RTL languages HOT 2
- Strange bug with some Chinese sentences containg : HOT 3
- gpg public key doesnt seems to be working HOT 1
- not reading .curlrc HOT 7
- Space bar not working on REPL mode HOT 1
- sentence HOT 1
- Inconsistent inclusion of nikud in Hebrew results HOT 2
- Support socks proxy HOT 1
- Add ability to press "up arrow" on the keyboard to set the previous text, like in bash shell HOT 1
- "Voice output isn't available for English" HOT 6
- Separation '══════': now exists only for non-interactive mod, please add to the REPL (-I) also HOT 4
- gawk: fatal: can't open source file `/dev/fd/63' for reading (No such file or directory) HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from translate-shell.