Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • close the task and go back to the project management tool and optionally finish the task
  • close the task and close the window (works only if translate5 was opened via Javascript window.open from your tool!)
  • to show a dialog where the user can decide if the task should be closed or leaved open use this config: runtimeOptions.editor.toolbar.askFinishOnClose to 1
    • this config is important in editor only mode because this is the way how a user can finish his job

As alternative translate5 provides there fore a simple JavaScript class to interact with translate5:

...

task: evaluates to the currently mentioned task record
app: evaluates to Editor.app
strings: evaluates to a list of commonly used, already translated strings for messages related to the performed tasks

Note

Depending on what should happen in the callback, a destruction of the loaded app may be necessary.
So if the callback contains a

window.location.href = "NEW LOCATION" 

this may not work. Therefore a Editor.app.destroy(); must be prepended:


Editor.app.destroy();
window.location.href = "NEW LOCATION" 


Check if current task is exportable

...