Closed (fixed)
Project:
Ubercart
Version:
6.x-2.2
Component:
User Interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Dec 2009 at 16:22 UTC
Updated:
21 Dec 2009 at 19:00 UTC
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 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.