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.
i18n_string_variable_info() defines variables to Variable API. This allows 'multiple' variables, which group several variables together, such the ones for each node type. Here we have the variable 'i18n_string_translate_langcode_[language]' defined, which covers all the languages on the site.
However, the type of this is not declared properly. The code where this is used shows that this is expected to be a boolean, but when you use Variable API's admin UI at admin/config/system/variable/edit/i18n_string_translate_langcode_[language] to edit it, it shows textfields.
Patch coming.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2675562.i18n.variable-multiple-boolean.patch | 636 bytes | joachim |
Comments
Comment #2
joachim CreditAttribution: joachim commentedHere's a patch.
I'm assuming that the 'multiple values' property is a leftover from an older version of this module or Variable API, as I can't find anything in either module that works with it.