I'm building a custom page.
I add breadcrumbs like this (and it works well).
<brand_brand_index translate="label">
<reference name="breadcrumbs">
<action method="addCrumb">
<crumbName>Home</crumbName>
<crumbInfo>
<label>Home</label>
<title>Home</title>
<link>/</link>
</crumbInfo>
</action>
<action method="addCrumb">
<crumbName>All Brands</crumbName>
<crumbInfo>
<label>All Brands</label>
<title>All Brands</title>
</crumbInfo>
</action>
</reference>
[[...]]
</brand_brand_index>
The problem is label not translated in front-end. It shows Home / All Brands instead of translated version.
The things I made sure:
- Added
translate="label"to handler - Cache cleared (acctually I turned off caching)
- Translation syntax is correct (I put in Mage_Core.csv)
- Label is translated properly by php code (eg:
$helper->__('All Brands');
Help me to figure it out, please.
Thank you.
translate="label"did you also includemodule="brand_brand"(or whatever it should be in your case)? – pspahn Jun 18 '14 at 08:09<crumbInfo translate="label" module="brand_brand">- See: http://stackoverflow.com/questions/7550429/about-translate-label-attribute-in-magento-how-does-it-work – pspahn Jun 18 '14 at 08:24If the module attribute is not present, the core module is used.I add translate term in Mage_Core.csv in the beginning, so why doesn't still work? I just add module name (and module translation file as well) but it still doesn't work.I keep inspecting. A minute.
– Tran Dinh Khanh Jun 18 '14 at 08:31