2

Follow the examples of magento, normal text translates correctly, but this links does not translate.

Csv

"Click <a href=""%s"" onclick=""this.target=\'_blank\'"">here</a> and register for free.","Clique <a href=""%s"" onclick=""this.target=\'_blank\'"">aqui</a> e cadastre-se grátis."

Samples that tested

Mage::helper('mymodule')->__('Click <a href="%s" onclick="this.target=\'_blank\'">here</a> and register for free.', $url);

Mage::helper('core')->__('Click <a href="%s" onclick="this.target=\'_blank\'">here</a> and register for free.', $url);

$this->__('Click <a href="%s" onclick="this.target=\'_blank\'">here</a> and register for free.', $url);

1 Answer 1

8

Take a look at Magento: Single Quotes in Translation Files Void Translation

Should be in .csv file:

"Click <a href=""%s"" onclick=""this.target='_blank'"">here to print</a> a copy of your order confirmation.", "Click <a href=""%s"" onclick=""this.target='_blank'"">here to print</a> a copy of your order confirmation."

without the backslashes, otherwise the string won't get translated. As usual double-quotes in the .csv have to be escaped with another double-quotes.

2
  • check success.phtml and Mage_Checkout.csv, follows the pattern of them, then I believe that is not the (",')
    – Dexxtz
    Sep 30, 2014 at 18:54
  • removed the slashes as your example and it worked, thanks
    – Dexxtz
    Sep 30, 2014 at 19:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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