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

rszrama’s picture

Title: Missing t() function in uc_order.admin.inc » Missing check_plain() function in uc_order.admin.inc
Assigned: johanneshahn » Unassigned
Status: Active » Fixed

Actually, 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.