instantTranslate

This add-on is used to translate selected and/or clipboard text from one language to another. This is done using an external service.

Talen instellen

To configure source, target and in case swap language, go to: NVDA Menu >> Preferences >> Instant Translate Settings.

There are two comboboxes labeled "Source language" and "Target language", and a checkbox to decide if it must copy the translation to clipboard.

In addition, if you selected auto option (the first choice) from "Source language" combobox, there are also a combobox labeled "Language for swapping" and a checkbox about the auto-swap.

The meaning of two first comboboxes and checkbox for copy is clear, but some words about the rest are necessary. Remember always that the explanations below assume the source language set on the auto option.

The "Language for swapping" combobox is useful when you swap via script (see below) the source and target language; in fact, a target language set on the auto option has no sense, so the addon sets it to value of combobox above.

So, imagine this situation: you usually translate into English (your main language), but sometimes (for example, when you write a document) you need to translate into Italian (your second language, suppose); you can set "Language for swapping" combobox to Italian, so you will translate from English to Italian without accessing directly to the addon settings. Obviously this function has a major or minor utility according to your more frequent needs.

Now, the auto-swap checkbox: it appears if and only if you set the auto option in "Source language" combobox, and is directly connected with "Language for swapping" combobox. If you activate it, then the addon tries to commute automatically from your source and target configuration to a configuration where target becomes the source language, and language selected in "Language for swapping" combobox is the new target language; extremely useful if the source language of the text you want translate is the target language.

A simple example: take again in mind the situation imagined previously; if you translate a text in a language different from English, there is no problem, you get the correct translation in English. But if you need to translate a text from English, normally you get a translation into English identical to original text, and this is a bit useless. Thanks to auto-swap function, however, assuming that you want to know how your text sounds into Italian, the addon commutes automatically the target language to Italian, so it returns a valid translation.

Anyway, this is a temporary configuration; if this option has no effect (it's experimental), try to commute manually to a stable configuration, using the gesture for swapping described below. It's experimental because in some situations (with short texts, tipically), Google does not recognize the real source language correctly, and you have to swap languages manually via script, so to force the source language to be the previous target language (English in our example).

Using

You can use this add-on in two ways:

  1. Select some text using selection commands (shift with arrow keys, for example) and press associated key to translate. translation result willbe read with synthesizer which you are using.
  2. You can also translate text from the Clipboard.

Shortcuts

All following commands must be pressed after modifier key "NVDA+Shift+t":

  • T: Translate selected text,
  • Shift+t: translate text from the Clipboard,
  • S: swap source and target languages,
  • A: announce current configuration,
  • C: copy last result to clipboard,
  • I: identify the language of selected text,
  • H: announces all available commands to user.

Changes for 4.1

  • InstantTranslate is working again, now with Yandex translator service instead of Google.

Changes for 4.0

  • Translation is automatically performed after swapping.
  • Cache bug fixed.

Veranderingen in 3.0

  • Change way how Shortcuts are used, now you can press instantTranslate modifier key "NVDA+Shift+t", and then single letter key to perform some action (see all Commands in the "Shortcuts" section).
  • De mogelijkehid voor het omwisselen van talen is toegevoegd.
  • Changed configuration format, now we can change instant translate settings if we are in readonly pane, but remember that this will work before first restart of NVDA.
  • Er is geen beperking meer op de lengte van de te vertalen tekst.
  • Sneltoets t toegevoegd aan het menu-item Instellingen voor Instant Translate
  • De keuze Auto staat nu bovenaan in de lijst met brontalen en is verwijderd uit de lijst doeltalen.
  • Selectievakje toegevoegd voor het configureren van het kopiëren van vertaalresultaten.
  • Het configuratiebestand wordt opgeslagen in de root van de instellingenmap.
  • Source and target languages syncronized with what Google Translate currently exposes (22 Apr 2015).

Veranderingen in 2.1

  • De add-on kan nu tekst vertalen van het klembord als u nvda+shift+y drukt.

Veranderingen in 2.0

  • Gui configurator toegevoegd waar u de bron- en doeltaal kunt kiezen.
  • U vindt de add-on nu in het menu onder Instellingen.
  • De instellingen worden nu opgeslagen in een apart configuratiebestand.
  • De vertaalresultaten komen automatisch op het klembord zodat u er verder mee kunt werken.

Veranderingen in 1.0

  • Eerste versie.