Не могу перевести отдельные фразы в ubercart. На русском они есть, на английском тоже, а мне нужно еще на третий язык. Делаю в переводах интерфейса - не помогает. Когда сайт на третьем языке, то мне выходит текст сообщения на русском.
Я нашла переменные этих сообщений в файле uc_cart.module. Вот так они там записаны:
/**
* Implementation of hook_uc_message().
*/
function uc_cart_uc_message() {
global $user;
$messages['checkout_instructions'] = '';
$messages['review_instructions'] = t("Your order is almost complete. Please review the details below and click 'Submit order' if all the information is correct. You may use the 'Back' button to make changes to your order if necessary.");
$messages['completion_message'] = t('Your order is complete! Your order number is [order-id].');
$messages['completion_logged_in'] = t('Thank you for shopping at [store-name]. While logged in, you may continue shopping or view your current order status and order history.');
$messages['completion_existing_user'] = t("Thank you for shopping at [store-name]. Your current order has been attached to the account we found matching your e-mail address.\n\nLogin to view your current order status and order history. Remember to login when you make your next purchase for a faster checkout experience!", array('!user_url' => url('user')));
$messages['completion_new_user'] = t("Thank you for shopping at [store-name]. A new account has been created for you here that you may use to view your current order status.\n\nLogin to your new account using the following information:\n\nUsername: !new_username\nPassword: !new_password", array('!user_url' => url('user')));
$messages['continue_shopping'] = t('Return to the front page.');
return $messages;
}
Каждое сообщение состоит в t-функции. Почему же не они не переводятся, не пойму. Переводила в Переводе интерфейса так же как все. Всё перевелось, а они не перевелись. И главное на странице с третьим языком выходят не на английском, а на русском.
Может кто-то сталкивался с подобной проблемой? Отзовитесь!..
Комментарии
Язык по умолчанию какой?
Язык по умолчанию Русский