Magento – Translating attribute on different store views

attributesstore-view

In the backend I have given my attribute label different names, but on the frontend both store views use the admin label.
The code that gets the label;

echo $_attribute->getLabel()

How do I make this store view specific?

Best Answer

Go to

app\design\frontend\base\default\template\catalog\product\view\type\options\configurable.phtml

find

<dt><label class="required"><em>*</em><?php echo $_attribute->getLabel() ?></label></dt>

replace with

<dt><label class="required"><em>*</em><?php echo $_attribute->getProductAttribute()->getStoreLabel() ?></label></dt>