It seems we always have "Order @id (@count products)"
- products (what if I sale 1 product?)
Perhaps if you're going to release a new version you could take a look at the current code:
$desc = t('Order @id (@count products)',
array('@id' => $order->order_id, '@count' => $order->product_count));
So i can read php but building it the drupal way... i would make a simple if statement but i guess that is not the right way.
Perhaps you have a better idee?
Comments
Comment #1
janton commentedi did not test this code yet.. but i think something like this is what i should do.. but i'm not really a good coder :-)
Comment #2
janton commentedBUT then the issue for translations stays!
So this would be better:
Comment #3
praseodym commentedDrupal has
format_pluralfor this purpose :)Comment #4
praseodym commentedAlso, to fix this the pot and po files need to be updated which is a bit of a hassle.
Comment #5
janton commentedOK sorry I don't quite follow you... should I use format_plural or should "we" use this in the module?
Comment #6
praseodym commentedFeel free to reopen with a patch.
Comment #6.0
praseodym commentedwrong copy