Fully translating a D7 site (interface, nodes, entities, etc) is really hard, and requires various additional modules (i18n, entity_translation, title, etc).
Hence, it is also really hard to fully translate a Commerce site.
In the previous year, various dependencies (entity_translation, title) have become more stable, and Commerce has been fixing internationalization bugs and adding / improving various integration (i18n, entity_translation) with every single release.
It's time to finish the job, and make sure there are no issues around this.
This meta issue is here to track all related issues.
Patches to supporting modules
Commerce needs i18n_string and i18n_field. However, i18n 1.8 has a broken i18n_field module.
I've supplied two patches to fix that:
#1904368: [7.x-1.8 regression] Field translation fails in numerous situations
#2015749: Extend support for contrib field types (adds support for commerce_price fields)
Entityreference and taxonomy_term_reference fields don't return localized data from their option list callbacks, which means
that taxonomy attributes on the add to cart field, and search api facets aren't translated.
#2013985: Title replacement doesn't happen for taxonomy term references
#2013849: Term names are not translated
With these two patches the add to cart form can be fully translated.
Commerce patches - (almost) ready
The first two issues contain patches that provide the basic i18n integration, so they are a dependency for all other issues.
#1196488: Allow checkout completion message to be translated
#1121722: Improve DX of instance translation
#2015425: Allow the order creation help text to be translated
#1946302: Allow attribute field titles to be customizable / translatable
Commerce patches - needs work
These patches need to be rebased on the issues above, and completed.
#1270624: Allow tax titles to be translated through i18n
Comments
Comment #1
bojanz commentedClosed the following issues (old, irrelevant, duplicates, etc):
#1451132: Translation issue "Billing information" + "Shipping information"
#1046702: Product and Product display node translation status/technique
#1886204: Can't translate custom content type's Label when in Cart Form/Line item
#1261012: Add Variable module integration for custom checkout completion messages
We need to see if this is still an issue:
#1942900: On checkout page, ajax breaks translation of billing and shipping field labels
I've also talked with Josh Miller, we will be preparing documentation for drupalcommerce.org about how to fully translate a Commerce site, step by step.
Also note that this is Commerce only. Kickstart will need additional work, starting from adding Entity Translation integration to Inline Entity Form:
#1545896: Add Entity Translation integration
Comment #2
bojanz commentedIncreasing priority.
It is my strong belief that this is one of the main priorities for Drupal Commerce at this moment.
Comment #3
webdrips commentedAnyone know how to translate currency codes for commerce Price for node add/edit form? I also noticed Chinese ¥ symbol is not shown on the node view page whereas the dollar sign ($) is.
Comment #4
rszrama commentedCurrency codes are not translatable via the interface, but we do cache price info per language. Setting the default currency formatting is out of scope for this issue.
Comment #5
5n00py commentedGreat work, thank you, Commerce Guys!!
Comment #5.0
5n00py commentedExpand summary.
Comment #6
Anonymous (not verified) commentedSo I have to install i18n just to translate 3 field labels?
Comment #7
bojanz commentedNo, you have to install i18n to translate a wide variety of Drupal objects.
You are free to use Drupal 8 or create a time machine and make Drupal 7 translatable without i18n.
Comment #8
Anonymous (not verified) commentedI don't have a wide variety of Drupal objects, I only have 3 labels to translate: Order total, Shipping information, Billing information. That's all that's keeping me from having a fully functional e-commerce site in my language. i18n is a rather high price to pay for these 3 labels... But never mind, I hacked the database.
And thanks for your work on this project. I understand the constraints of Drupal 7 and didn't mean to criticize.
Comment #9
rszrama commentedNo worries, Edith. I know it can be frustrating as well. Hopefully these problems will be fully solved in core for Drupal 8 so we don't have to depend on third party translation modules. : )
Comment #10
giorgoskI think this needs to be addressed as well
#2045405: Line items do not utilize translated titles