Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
Screen Shot 2016-10-26 at 12.00.40 PM.png | 109.63 KB | Bjornbreck |
Comments
Comment #2
Bjornbreck CreditAttribution: Bjornbreck commentedComment #3
joshua.boltz CreditAttribution: joshua.boltz commentedRelated 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.
Comment #4
lns CreditAttribution: lns commentedIs this bug going to be fixed? I am experiencing this issue in the Drupal 8 version as well.
Comment #5
roxy317 CreditAttribution: roxy317 as a volunteer commentedSame problem here with Drupal 8 version. Any pointers would be appreciated.
Comment #6
apadernoBugs are fixed in the development snapshots (the releases created from branches).