Allow translations also when not on default language.

Created on 13 May 2024, 6 months ago
Updated 21 July 2024, 4 months ago

Problem/Motivation

In a multilingual situation we only see NA.
I think this is related to language settings.

Steps to reproduce

Configure your site with multiple languages. Make dutch your default language.
Enable (configure) the module, you will see only NA where the links should be.

Proposed resolution

If we switch the default language we can get te correct link to appear.
This is not what we wish because we want the default language to be Dutch, not english.

Removing "isDefault Check" in the following piece of code in ChatGPTTranslateForm.php makes the link to show up.

      if (!$isDefault && !$node->hasTranslation($langcode)) {
        $additional = $row_title;
      }
      else {
        $additional = $this->t('NA');
      }

"

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇧🇪Belgium wouters_f Leuven

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024