diff --git uc_attribute/uc_attribute.module uc_attribute/uc_attribute.module index 2dbc0ad..c8dca79 100644 --- uc_attribute/uc_attribute.module +++ uc_attribute/uc_attribute.module @@ -577,10 +577,10 @@ function uc_attribute_load($attr_id, $nid = NULL, $type = '') { $attribute->display = $attribute->default_display; } if (isset($attribute->default_label) && is_null($attribute->label)) { - $attribute->label = $attribute->default_label; + $attribute->label = t($attribute->default_label); } if (empty($attribute->label)) { - $attribute->label = $attribute->name; + $attribute->label = t($attribute->name); } } else { @@ -590,6 +590,7 @@ function uc_attribute_load($attr_id, $nid = NULL, $type = '') { if ($attribute) { $attribute->options = array(); while ($option = db_fetch_object($result)) { + $option->name = t($option->name); $attribute->options[$option->oid] = $option; } } @@ -877,6 +878,6 @@ function _uc_attribute_get_name($attribute, $title = TRUE) { return NULL; } else { - return (empty($attribute->label) || ($attribute->label == '' && $title) ? $attribute->name : $attribute->label); + return (empty($attribute->label) || ($attribute->label == '' && $title) ? t($attribute->name) : t($attribute->label)); } }