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.
When the module gets the order status at line 414, it should be wrapped in t() to allow for translation.
line 414:
$values['order-status'] = uc_order_status_data($order->order_status, 'title');
should be:
$values['order-status'] = t(uc_order_status_data($order->order_status, 'title'));
Comments
Comment #1
TR CreditAttribution: TR commentedNope, can't do that. t() is not to be used for variables, only for string literals.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedbugger, didn't know that. Hmm ... guess I need to find where that var comes from :)
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedDoh ... looks like it can't be done since all the statuses are taken from the database ... :(
Comment #4
longwaveDuplicate of #993360: Make order status strings translatable which has more info.