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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

joachim created an issue. See original summary.

joachim’s picture

Status: Active » Needs review
FileSize
636 bytes

Here'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.