The new i18n module i18n_field takes care of translating the labels of allowed_values of fields and other field properties.
Normally the translations are loaded automatically but since the "Add to cart form" integrates some special logic to create nice variation selectors we have to call i18n_field ourselves to fetch the translated labels.

The attached patch checks if the module is installed and takes the necessary actions to get the translations.
If the module isn't available the behaviour is unchanged.

Comments

rszrama’s picture

Status: Needs review » Fixed

Excellent. Committed. : )

das-peter’s picture

Status: Fixed » Needs review
StatusFileSize
new1.11 KB

Found a possible issue with the integration. Attached patch should fix that.

rszrama’s picture

Status: Needs review » Fixed

Cool, committed. Also, put you in the hot seat. ; )

http://london2011.drupal.org/conference/sessions/developing-drupal-commerce

Automatically closed -- issue fixed for 2 weeks with no activity.