#119103 (followup) - update theming example accordingly
authorYves Chedemois
Mon, 5 Mar 2007 22:20:42 +0000 (22:20 +0000)
committerYves Chedemois
Mon, 5 Mar 2007 22:20:42 +0000 (22:20 +0000)
theme/template.php

index 1fa2dd4..4acc458 100644 (file)
@@ -17,7 +17,7 @@ function phptemplate_field(&$node, &$field, &$items, $teaser, $page) {
     'field_name' => $field['field_name'],
     'field_type_css' => strtr($field['type'], '_', '-'),
     'field_name_css' => strtr($field['field_name'], '_', '-'),
-    'label' => $field['widget']['label'],
+    'label' => t($field['widget']['label']),
     'label_display' => isset($field['display_settings']['label']['format']) ? $field['display_settings']['label']['format'] : 'above',
     'field_empty' => $field_empty,
     'items' => $items,