The default language is set to English with the settings set to "Show English". When English is selected in the translate dropdown, the language switches to Afrikaans. The only way to switch back is to select any other option then choose English again. The related issue has a patch that does not seem to correlate to the latest version of GTranslate.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Bjornbreck created an issue. See original summary.

Bjornbreck’s picture

Title: Default Language When Clicked Changes Translates to Afrikaans » Default Language When Clicked Translates to Afrikaans Instead of Actual Default
joshua.boltz’s picture

Related to this is this issue:
https://www.drupal.org/project/gtranslate/issues/1982656

Which has a patch that doesn't seem to address the issue, at least in the latest version of the module.

There is also some code added into a few comments, but after trying adding the code to the module, it didn't help.

I think there's still room for a working patch that follows this logic:
- when the page loads the first time, the options are `Select a language`, followed by all the enabled languages in the gtranslate module configuration, which is how it works currently
-- if a user chooses English, it translates the text into some weird non-English language, which is essentially the basis for this entire issue.
-- English should NOT be an option at that point since English is already being used since it's the default, so there should be a check (if currently-used-language == default-language)
- once a user chooses a non-default language, so anything besides English, it should translate as it does, but in this scenario, the default language (English) should be provided as an option, so the user can navigate back to their default language
- OR instead of making English a conditional option like that, change the `Select a language` option to instead trigger a reset of the language back to the default language, rather than doing nothing like it currently does. Maybe call it `Reset language` or something.

lns’s picture

Is this bug going to be fixed? I am experiencing this issue in the Drupal 8 version as well.

roxy317’s picture

Same problem here with Drupal 8 version. Any pointers would be appreciated.

apaderno’s picture

Version: 7.x-1.14 » 7.x-1.x-dev

Bugs are fixed in the development snapshots (the releases created from branches).