Hi,
I've developed a Commerce Site using Drupal Commerce. The project is started one year ago.
The Products Types was created using "Term Reference" Field connected to a "Localized" taxonomy vocabulary.
The user create the Products and later translate it using "Entity Translation". When all variants are created and translate this products are connectde to a "View Node" using a "Product Reference" Field.
The view node use Multilingual Support of Internationalization to translate it (there is not enable Entity Translation).
When I've started to develope the project this system was working correctly and translation was showed correctly also inside the "selction form" of product variants. This till the version RC1 of entity API.
When the version of EntityAPI has been update to version RC2 (I've tested it also with the latest dev version) the "Selction Form" of variant product don't translate more the vocabulary terms. I've checked the products and they are translated.
If I configure the "product reference" field to "Render fields from the referenced products when viewing this entity." I see the option into the node correctly translated.
I've create a new clear installation of drupal with "Drupal Commerce" - "Internationalization" - "Entity Translation" - "Entity API" to replace the problem (see the attached image). I've make a lot of test to understand if there was some wrong configuration. Every time I have the same result. If I put on the server EntityAPI - RC1 i see the "selection field" translated, if I put a new version of EntityAPI from RC2 to latest DEV the the "selection field" are not translated.
I've looking for into the drupal site and commerce guy site to find if there was some other issue with the same problem but without result.
Someone have the same problem and he can help me to solve it?
| Comment | File | Size | Author |
|---|---|---|---|
| entityAPI.jpg | 81.58 KB | andrea.brogi |
Comments
Comment #1
rszrama commentedI think you'd be better off posting this to http://www.drupalcommerce.org/questions, but let me help you rephrase the question. Based on your screenshot, what you should be asking is "How do I translate the options in attribute field select lists?" I'm not really sure how it's done myself, but however it works for, say, a field widget on a node edit form, it should work the same way here. Possibly with something like i18n's Field Translation module.
Feel free to link to the Commerce Q&A node from here and I'm happy to try and send people that way. We just don't handle support requests in the issue queue b/c the answers get lost once the issues close out. You might also try asking around in general translation support channels about translating field widget options. It's not specific to Drupal Commerce, so anyone familiar with translating field widgets would be able to help.
Based on this code from commerce_cart.module, I'm 95% sure the i18n_field module would do the trick:
Comment #2
andrea.brogi commentedDiscussion moved on http://www.drupalcommerce.org/discussions/8000/how-do-i-translate-option...