Display the enabled language pairs on settings page

Created on 7 November 2022, over 1 year ago
Updated 19 June 2023, about 1 year ago

Problem/Motivation

It would be nice to see the enabled language pairs from MemoQ instance on the settings page of the translator. As there are a lot of options for the languages (English has multiple options, Portugese, German, ...). Settings page should show which pairs are enabled, so that the configuration of translator would be easier, in particular to set correct mappings.

Proposed resolution

Use endpoint /memoqservercmsgateway/v1/swagger/ui/index#!/Client/Client_GetConnectionLanguagePairs to get the enabled Language Pairs and display them on settings page.

Remaining tasks

Create patch or MR

User interface changes

Have a block on settings page that will display enabled language pairs.

API changes

None

Data model changes

None

✨ Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany a.dmitriiev

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¨πŸ‡­Switzerland Berdir Switzerland

    I'm unsure about this as this might also list a lot of options that you can't actually use. Specifically, it might not tell you which of the many english or german options are the one you should enable as your service provide kind of needs to tell you that.

  • πŸ‡©πŸ‡ͺGermany a.dmitriiev

    There are two sets of languages: supported by MemoQ (this one is very huge) and the ones that are enabled for this instance. This issue is about the ones that are enabled for particular instance that you are connected to. This will be a limited list of pair, not all that MemoQ supports, but the ones that are available for translation by user, I think this is exactly the languages that your service provider will tell you. At least it was like that with the instance I tested with.

  • πŸ‡¨πŸ‡­Switzerland Berdir Switzerland

    Noted, Ben Miller also gave me the same feedback. We could consider making the getLanguages() method then be based on the language pairs, in that case this should actually automatically switch to a select and only show available options.

  • πŸ‡©πŸ‡ͺGermany a.dmitriiev

    While checking deeper I have noticed that there is some confusing in the supported language pairs and supported remote languages. That is why I have removed memoq_languages configuration option because it is kind of a duplicate for remote_languages_mappings that is already a part of Translator entity and if plugin implements method getSupportedRemoteLanguages the provider settings form looks like this:

  • πŸ‡©πŸ‡ͺGermany a.dmitriiev

    Attaching the updated patch

  • πŸ‡©πŸ‡ͺGermany a.dmitriiev

    @Berdir, is there anything else that I can do here? Please let me know.

Production build 0.69.0 2024