There is sometime we need this translation to translate it globally. I have spend lot of time to find this solution so I thought may someone can save sometime to get rid from this.
Hope someone can take help from this.
and enjoy his time to developed new thing 🙂
Here is how translation work for layout file.
<checkout_cart_index> <reference name="breadcrumbs"> <action method="addCrumb" translate="crumbInfo.label crumbInfo.title"> <crumbName>Beregn pris</crumbName> <crumbInfo> <label>Beregn pris</label> <title>Beregn pris</title> <link>/beregn-pris</link> </crumbInfo> </action> <action method="addCrumb" translate="crumbInfo.label crumbInfo.title"> <crumbName>Cart</crumbName> <crumbInfo> <label>Indkøbskurv</label> <title>Indkøbskurv</title> </crumbInfo> </action> </reference> </checkout_cart_index>
in the above example you have notice that crumbInfo.label crumbInfo.title this is because it label and title is child of crumbInfo so you have to define it using dot(.)
for parent element tab you just need to write translate=”label title” only here you can write multiple attribute with (Space) separated. It will translate each element.
Now you just need to add translate.csv in you locale folder with you locale code folder.