-
Type:
Bug
-
Resolution: Unresolved
-
None
-
Affects Version/s: None
-
Component/s: InstantTranslate
-
Medium
-
Fix the problem where default instant translate pre-selected languages config was not evaluated correctly.
-
Emptyshow more show less
Problem
- In InstantTranslate for new users languages will be selected as defined in runtimeOptions.InstantTranslate.user.defaultLanguages, however, this is not respected for file translation if multi-languages is activated.
- After first use, the selected languages of the user should be persistent, but they are not. Languages fall back to the default languages defined in the config or to alphabetical first language.
- A user can have multiple clients available (for different document types, processes, company departments etc.). The selected user is not remembered.
Solution
- Change existing config runtimeOptions.InstantTranslate.user.defaultLanguages Info text:
Default pre-selected languages for first login in InstantTranslate (text translation)
Default search languages for InstantTranslate which will be pre-selected when it is loaded for the first time. If languages are not available for the user/client combination, this will fallback to alphabetical first.
Create a new config for preselected languages for first login in the file tab and add info text:
Default pre-selected languages for first login in InstantTranslate (file translation)
Default search languages for InstantTranslate which will be pre-selected when it is loaded for the first time. If languages are not available for the user/client combination, this will fallback to alphabetical first.
Note: The file translation config should work for multi-languages activated and not activated.
- Any selection of languages after the first login should be remembered separately for text/ file translation tab:
When a user selects languages for text translation and logs out OR moves to file translation tab, and then goes back to text field tab (or logs in again), the selected languages should stay. The language or languages selected in the file translation tab should be persistent, too. No matter if user logs out or just moves to text translation tab.
- When a user selects a client in the file translation tab, this should be persistent, when leaving the tab.
Summary
First login to InstantTranslate:
- selected languages according to runtimeOptions.InstantTranslate.user.defaultLanguages and new config for file translation
- selected client according to default logic (lowest ID)
Afterwards:
- remember selected client (switching between text/file translation tab, logout, browser close etc.)
- remember selected source and target language or multiple target languages (switching between text/file translation tab, logout, browser close etc.)
- when changing the client leads to no longer available languages, this will fallback to alphabetical first
- relates to
-
TRANSLATE-5119 pre-selected languages in InstantTranslate always alphabetical first
- Done