? .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 09:49:48 -0000
@@ -1054,7 +1054,10 @@ 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')) {
+      i18nstrings_update("webform:webform:" . $c['name'], $c['name']);
+      $component['name'] = i18nstrings("webform:node/$node->nid:label", $c['name']);
+    }
     $component['type'] = $c['type'];
     $component['value'] = $c['value'];
     $component['extra'] = unserialize($c['extra']);
@@ -2962,3 +2965,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'));
+  }
+}
