Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
missing the translate function in the
users order table.
function uc_order_history() near line: 1046
...
}
$rows[] = array(
array('data' => format_date($order->created, 'custom', variable_get('uc_date_format_default', 'm/d/Y'))),
array('data' => $link, 'nowrap' => 'nowrap'),
array('data' => $order->title),
array('data' => (!is_null($order->products) ? $order->products : 0), 'align' => 'center'),
array('data' => uc_price($order->total, $context), 'align' => 'right'),
);
}
...
the $order->title is missing t()
}
$rows[] = array(
array('data' => format_date($order->created, 'custom', variable_get('uc_date_format_default', 'm/d/Y'))),
array('data' => $link, 'nowrap' => 'nowrap'),
array('data' => t($order->title)),
array('data' => (!is_null($order->products) ? $order->products : 0), 'align' => 'center'),
array('data' => uc_price($order->total, $context), 'align' => 'right'),
);
}
array('data' => t($order->title)) will fix language problem
Comments
Comment #1
rszrama CreditAttribution: rszrama commentedActually, you can't use t() with variables, only string literals. In this case, I think check_plain() would be appropriate, but translation of strings stored in the database isn't really possible here.