We have multilingual site that uses entity_translation and title modules to translate taxonomy term labels.

Webform references module doesn't support taxonomy translations now.

Comments

sinn created an issue. See original summary.

sinn’s picture

Status: Active » Needs review
StatusFileSize
new623 bytes

Patch is attached

Status: Needs review » Needs work

The last submitted patch, 2: webform_references-taxonomy_translations-2778941-2-D7.patch, failed testing.

sinn’s picture

Status: Needs work » Needs review
jrochate’s picture

With i18n you can translate terms better way. Check the patch in attach.

Status: Needs review » Needs work

The last submitted patch, 5: webform_references-taxonomy_translations-2778941-2-D7.patch, failed testing.

thomas.wardin’s picture

Suspect the behaviour to be caused by my site to hold taxonomy in de and en.

When I add a term ref component to my webform, I get this error:

Warning: Illegal offset type in isset or empty in taxonomy_get_tree() (Zeile 1123 von ../modules/taxonomy/taxonomy.module).
Warning: Illegal offset type in taxonomy_get_tree() (Zeile 1124 von ../modules/taxonomy/taxonomy.module).
Warning: Illegal offset type in taxonomy_get_tree() (Zeile 1125 von ../modules/taxonomy/taxonomy.module).
Warning: Illegal offset type in taxonomy_get_tree() (Zeile 1126 von ../modules/taxonomy/taxonomy.module).
PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ')) AND (t.language IN ('de', 'und')) ORDER BY t.weight ASC, t.name ASC' at line 2: SELECT t.*, h.parent AS parent FROM {taxonomy_term_data} t INNER JOIN {taxonomy_term_hierarchy} h ON h.tid = t.tid WHERE (t.vid IN ()) AND (t.language IN (:db_condition_placeholder_0, :db_condition_placeholder_1)) ORDER BY t.weight ASC, t.name ASC; Array ( [:db_condition_placeholder_0] => de [:db_condition_placeholder_1] => und ) in taxonomy_get_tree() (Zeile 1138 von ../modules/taxonomy/taxonomy.module).

and the component is not added to the form.

Patch (manually applied) did not help.

ludo.r’s picture

I'm having the exact same issue with nodes.

arnaud-brugnon’s picture

Like not everyone have translated website, i would like to purpose a better patch

arnaud-brugnon’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work
berramou’s picture

#9 works for me.
Thanks @arnaud-brugnon.