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 offending line of code is '#default_value' => in_array($lang, $languages_flags) ? 2 : 1,
, whereas '#default_value' => variable_get("gtranslate_$lang", in_array($lang, $languages_flags) ? 2 : 1),
seems to work.
Comments
Comment #1
duozerskThis fix worked for me.
Comment #2
edo888 CreditAttribution: edo888 commentedThanks!!! Fixed in the repository, will be included in the 6.x.-1.3
Comment #3
edo888 CreditAttribution: edo888 commented