Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-4039 Request assigned languageResources in InstantTranslate in the Frontend
  3. TRANSLATE-4173

InstantTranslate: Move automatically triggered "manual translate" button on resource level

    XMLWordPrintable

Details

    • Critical
    • manual translation button is now shown for each resource, if it's slow

    Description

      Currently, if a request takes longer than

      runtimeOptions.InstantTranslate.maxRequestDuration

      InstantTranslate switches automatically to "manual" mode, that means, the translation requests are not send automatically to the back-end, but only when a user clicks the "translate" button, that appears in manual mode.

      The config should be kept, but moved to resource level.

      That means, if one resource answers slow and the others fast, the others will still be triggered automatically in typing breaks, but for the slow one a "Trigger translation" button appears in the frame of the resource result.

      Next to it an explaining text appears, why this button is there.

      The current JS-message that tells the user "InstantTranslate is deactivated" is completely removed.

      Texts for the UI:

      DE: Übersetzung anfordern

      Die Reaktionszeit [DeepL] ist langsamer als x Sekunden.
      Daher wird die manuelle Auslösung der Übersetzung aktiviert.

      EN: Trigger Translation

      Response time [DeepL] is slower then x seconds.
      Therefore manual translation triggering is activated.

      Also runtimeOptions.InstantTranslate.maxRequestDuration should be set to a default of 10000 ms.

      Please see screen dummy, how it should look:

      Attachments

        Activity

          People

            pavelperminov Pavel Perminov
            marcmittag Marc Mittag [Administrator]
            Axel Becher
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: