| Project: | Ubercart Contributions |
| Component: | Code |
| Category: | |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Hi
I've found a translation missing when the message that finishes the checkout is shown. In the function uc_cart_complete_sale of uc_cart.module, the $show_message variable (line 1824 or so) is assigned this way:
$show_message = check_markup(variable_get('uc_msg_order_'. $message_type, uc_get_message('completion_'. $message_type)), variable_get('uc_msg_order_'. $message_type .'_format', 3), FALSE);
But the variable should be translated:
$show_message = check_markup(t(variable_get('uc_msg_order_'. $message_type, uc_get_message('completion_'. $message_type))), variable_get('uc_msg_order_'. $message_type .'_format', 3), FALSE);
Without the t call, the locale translation for checkout messages is not used and the translation is duplicated.

.