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.
I have translated all the strings for the e-mail customers get after checkout (Your Order at ...), but the e-mails that are sent out are still all English. All of the strings on site are translated as expected, except for a few words (Order comments, Add to cart, Remove, Image, Back). I checked the files manually and re-imported several times.
The real problem is with the e-mail, though, since it cant' be translated using localization client.
Comments
Comment #1
perandre CreditAttribution: perandre commentedThe output of some strings come out in english where they should come out translated. Some of them are translated on other pages.
Misbehaving strings (that I've found so far):
CHECKOUT PAGE:
Qty.
Products
Payment method
Continue with checkout to complete payment.
Order comments
Order comments:
REVIEW ORDER PAGE
Review Order
Payment method
Back
INVOICE E-MAILS
...all content
Comment #2
rszrama CreditAttribution: rszrama commentedThese strings are being stored in the variables table and cannot be translated through t(). There's discussion in the forums on this for possible fixes, but I think they boil down to having to use the i18n module. I haven't done this myself, but you should be able to find support on it in their issue tracker or in our forums.
Comment #3
perandre CreditAttribution: perandre commentedI'm re-opening this, since I could not find the discussion in the uc forum or the issue tracker giving the solution on how to translate the mentioned strings (I also updated to beta1).
I also should mention that some of the strings on /admin/cart (Remove, Products, Qty. and Subtotal) are wrapped in t(), but are still not translatable. They can however easily be translated by hardcoding it into core. Unfortunately, that's not the case with all of the other strings, which leaves the non-php savvy drupalist with zero possibilities for using a non-english version of uc (unless a documented fix using i18n/l10n is provided).
Comment #4
rszrama CreditAttribution: rszrama commentedIf you could not find a relevant thread on Ubercart.org, please open a new one there. There are dozens of people dealing with internationalization issues lurking about there, whereas the people here are focusing on fixing bugs. The strings you found were defaults that are overridden in settings form, which is why they're not being translated as expected. If you don't get help on Ubercart.org, search drupal.org for information on translating variables.