Issues when selecting English; changing to African and then back to English makes it work again

Created on 18 October 2016, about 8 years ago
Updated 12 September 2024, 2 months ago

Select language while select from select box first time English language change to African language(Engles). After that change again then works fine. Anyone please look into that.

🐛 Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

🇮🇳India vishalnigam

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

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.

  • 🇨🇦Canada sseto

    I applied patch#21 and it worked on D9.5.2.

    @pr1859. I had to refresh the cache in order for it to take effect. To confirm that it's working, your "Main language" should be greyed out in the dropdown.

    Good luck!

  • 🇨🇦Canada sseto

    Hello,

    Turns out Ipads/tablets do not work correctly. When you select another language, your "Main" language remains greyed out and unselectable.

  • 🇨🇦Canada sseto

    Hi edo888,

    Tested dev and now I'm getting WSOD. I reverted back to stable and reapplied the patch for now.

    Here's the dblog:
    Undefined array key 1 in Drupal\gtranslate\Plugin\Block\GTranslateBlock->build()(line 385 of /var/www/sseto.ca/web/modules/contrib/gtranslate/src/Plugin/Block/GTranslateBlock.php)
    #0 /var/www/sseto.ca/web/modules/contrib/gtranslate/src/Plugin/Block/GTranslateBlock.php(385): array_values()
    #1 /var/www/sseto.ca/web/core/modules/block/src/BlockViewBuilder.php(171): Drupal\gtranslate\Plugin\Block\GTranslateBlock->build()
    #2 [internal function]: Drupal\block\BlockViewBuilder::preRender()
    #3 /var/www/sseto.ca/web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(101): call_user_func_array()
    #4 /var/www/sseto.ca/web/core/lib/Drupal/Core/Render/Renderer.php(788): Drupal\Core\Render\Renderer->doTrustedCallback()
    #5 /var/www/sseto.ca/web/core/lib/Drupal/Core/Render/Renderer.php(374): Drupal\Core\Render\Renderer->doCallback()
    #6 /var/www/sseto.ca/web/core/lib/Drupal/Core/Render/Renderer.php(446): Drupal\Core\Render\Renderer->doRender()
    #7 /var/www/sseto.ca/web/core/lib/Drupal/Core/Render/Renderer.php(204): Drupal\Core\Render\Renderer->doRender()

  • Status changed to Needs review about 1 year ago
  • Added a variation of the patch which attempt to support D9/D10. May be used in tandem with 📌 Automated Drupal 10 compatibility fixes Closed: duplicate

  • Status changed to Needs work about 1 year ago
  • 🇧🇪Belgium RandalV

    The last patch does not apply for me.
    However, if I understand the issue correctly, it's similar or equal to the issue I'm having.

    Our default language is English, sometimes (I don't know what the trigger is) when changing to a different language, you can't change back to English.
    You have to click on the current language again, and then you can click English again and it'll work.
    When this happens, English is the selected language in the language selector, but the page is still in the translated language.

    No console errors or other measures to know what's going on.

    If what I described matches/corresponds to what the original poster experiences, maybe we can update the issue as such if it's clear enough.

  • 🇧🇪Belgium RandalV

    Bumping again...

    Can the maintainer please take a look at this??
    Is there even still an active maintainer?

  • 🇨🇦Canada hargurpreet Kitchener

    Updated the patch in #21 to make it compatible with the latest version 3.0.2.
    Thanks!

Production build 0.71.5 2024