2

my xml code:

<customer_account>
    <reference name="customer_account_navigation">
        <action method="addLink" ifconfig="example/general/enabled" module="example" translate="label">
            <name>example</name>
            <path>example/list/</path>
            <label>My Example</label>
        </action>
    </reference>
</customer_account>

I m using translate="label" but its not working i dont know why but in admin side its working

  • Is there a definition for example as helper alias in your config.xml? And does the default helper Namespace_Module_Helper_Data exist? – Fabian Schmengler Jul 5 '15 at 15:19
  • yes its exist.. – ND17 Jul 6 '15 at 5:07
  • same issue here did you find anything for this? – MageLerner Jul 7 '17 at 13:02
  • For addcrumb action method in xml to translate this Here – MageLerner Jul 7 '17 at 13:45
2

Make sure you have this in the config.xml of your module under the <config> tag.

<frontend>
    <translate>
       <modules>
            <[Namespace]_[Module]>
                <files>
                    <default>[Namespace]_[Module].csv</default>
                </files>
            </[Namespace]_[Module]>
        </modules>
    </translate> 
</frontend>

and make sure your text exists in the [Namespace]_[Module].csv file like this

"My Example","Translation goes here"

If this is the last line in your csv file make sure your have a new line at the end of it.

  • Not working...:( – ND17 Jun 29 '15 at 12:32
  • Strange. That usually works for me. Did you clear the cache? – Marius Jun 29 '15 at 12:33
  • yup,i did it... – ND17 Jun 29 '15 at 12:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.