Giter VIP home page Giter VIP logo

Comments (3)

soimort avatar soimort commented on June 16, 2024

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.

Dominiquini avatar Dominiquini commented on June 16, 2024

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.

soimort avatar soimort commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.