I've created a translate.csv in my theme folder and confirmed working.

However, it's not working for labels that contain special characters.

I'm looking to change the wording for the following labels:

Credit/Debit Card Type
Credit/Debit Card Number
Security Code (CVV)

As mentioned Name on Card and Expiration Date work fine.

I'm assuming it is the special characters causing the issue (the "/" and "()")

Any ideas?



First you have to know how magento translate work. First thing is to actually prepare words for translating. Translations will not work if we don’t use proper string for them. So string will look like this:

<?php echo $this->__('desired word') ?>


<?php echo $this->helper('your_helper_name')->__('desired word') ?>

Magento will only translate anything if written this way.


In order to translate payment blocks (magento default payment) just go to app/locale/your_locale/Mage_Payment.csv and do changes there. I can see they have "Check / Money Order","Check / Money Order" by default, that means it is definitely possible to translate.

Update 2

In-order to avoid editing core files, you can copy this as follow: design/frontend/locale/your_locale/Mage_Payment.csv.

  • Thank you. I understand that. But the string has not been constructed by me. It is output in method.phtml which relates to Mage_Checkout_Block_Onepage_Payment_Methods as it calls the form html with $html = $this->getPaymentMethodFormHtml($_method). So this complicates things. I can't work out the block file so I don't know how to change it from there. Which is why I am trying to use translate. translate.csv works for strings without special characters, which is why I think it does not work, for some reason, for strings containing special characters. – user2565123 Jun 19 '15 at 0:13
  • What is your payment method for this? – Adarsh Khatri Jun 19 '15 at 0:18
  • Check my updated answer too. – Adarsh Khatri Jun 19 '15 at 0:33
  • You're a life saver Adarsh. They were in the app/locale/your_locale/Mage_Payment.csv. So the problem for me was that they were already being translated, so I needed to reference the original string rather than the translation in my new translate.csv. All works, thanks :) – user2565123 Jun 19 '15 at 9:48
  • Glad it helped. In-order to avoid edit core files, you can copy this as follow: design/frontend/locale/your_locale/Mage_Payment.csv. – Adarsh Khatri Jun 19 '15 at 10:05

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.