Hi
I've just updated to beta 6, and I've seen a small issue with the cart behavior: It always says that I have 1 Item in the cart even when it is empty.
I've found the gap in uc_cart.module on line 380
$item_text = format_plural($item_count, '1 Item', '@count Items');
This always returns 1 Item when $item_count is 0.
I've modified that line for including the 0 option, if somebody has a better suggestion I'd like to see it!!!
if ($item_count == 0) {
$item_text = '0 '.t('Items');
}
else {
$item_text = format_plural($item_count, '1 Item', '@count Items');
}_Pedro




(maybe because I've updated the .po file from the translation server?)
Joined: 01/23/2008