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');
      }

"

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

wouters_f created an issue. See original summary.

wouters_f’s picture

Issue summary: View changes

immaculatexavier made their first commit to this issue’s fork.

immaculatexavier’s picture

Status: Active » Needs review
wouters_f’s picture

"The default language is require to make the chatgpt translation available"

frocha’s picture

I've made an update to the patch. Fixed a problem with the moderation state.

anup.sinha’s picture

Status: Needs review » Fixed

Hi Everyone, many thanks for working on it. The latest patch by @developer-rocha has been merged into the 2.0.x branch and tested.

anup.sinha’s picture

Status: Fixed » Closed (fixed)