The price components can't be translated. This seems to be a similar issue as this one #1270624: Allow tax titles to be translated through i18n and therefore is a little to complex to fix it right now.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Lukas von Blarer’s picture

Status: Active » Needs review
FileSize
587 bytes

I did this quick and dirty patch to fix the issue temporarily.

Lukas von Blarer’s picture

Status: Needs review » Needs work

Well, it needs work actually...

Lukas von Blarer’s picture

Instead of hacking the module I decided to do this temporary hack in my own module:

/**
 * Implements hook_commerce_price_formatted_components_alter().
 */
function hook_commerce_price_formatted_components_alter(&$components, $price, $entity) {
  foreach ($components as &$component) {
    $component['title'] = t($component['title']);
  }
}