? .buildpath ? .project ? .settings ? webform_tt.patch Index: webform.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/webform/webform.module,v retrieving revision 1.196.2.38 diff -u -p -r1.196.2.38 webform.module --- webform.module 21 Jun 2010 19:36:25 -0000 1.196.2.38 +++ webform.module 29 Jun 2010 10:03:47 -0000 @@ -1054,7 +1054,11 @@ function webform_node_load($node) { $component['nid'] = $node->nid; $component['cid'] = $c['cid']; $component['form_key'] = $c['form_key'] ? $c['form_key'] : $c['cid']; - $component['name'] = t($c['name']); + if (module_exists('i18nstrings')) { + $i18_identifier = "webform:webform:" . $c['name']; + i18nstrings_update($i18_identifier, $c['name']); + $component['name'] = i18nstrings($i18_identifier, $c['name']); + } $component['type'] = $c['type']; $component['value'] = $c['value']; $component['extra'] = unserialize($c['extra']); @@ -2962,3 +2966,13 @@ function webform_mollom_form_info($form_ return $form_info; } + +/** + * implementation of hook_locale + */ +function webform_locale($op = 'groups', $group = NULL) { + switch ($op) { + case 'groups': + return array('webform' => t('Webform labels')); + } +}