I would like to be able to create internationalized and localized webforms. There's no 'translations' tab for webform nodes and looks like the form text elements (field labels etc.) are not fed thru t() when they are displayed. I have not looked into code yet, but I assume this, because those texts do not appear to administer --> localization --> manage strings.
By far the only solution i have figured out is to create one webform per language and alias them as 'langcode/formname' and create menu entry to 'formname'. The (deep) downside is that submissions go to separate pools. Are translated webform nodes supposed to be done like this? If, I dare to suggest either supporting webform node translations or more aggressive usage of t(). If not, then how?
I have
- drupal 4.7.3
- i18n module (4.7.0, 06/08/2006 - 01:15, 38.92 KB)
- webform module (4.7.0, 26/09/2006 - 04:16, 58.69 KB)
Comments
Comment #1
terotil commentedForgot to mention that my 'solution' includes manually inserting translation relationship to database. In the example below nodes 9 and 12 assigned to new translation group (
max(trid)+1gives a yet-unused trid), 9 as english translation and 12 as finnish. (Schema fordrupal_tuotanto_i18n_nodeis given as a reference.)Comment #2
terotil commented...and as I later found out (the hard way) also
{i18n_node_trid}entry in{sequences}table must be updated accordingly. In the previous example correct queries to do next trid retrieval and sequence entry update are the following.Comment #3
klance commentedI've been using webforms with the i18n module for nearly a year. If you haven't done so, go into administer->settings->content types and enable multilingual support for the webform content type. This will make the "translation" tab appear in the "stock" version of webform.
Comment #4
quicksketch