This question already has an answer here:

I have Magento- ce installed in one of my client's site along with module Scommerce CashBack.

Now when I place an order which has cashback amount applied to it, I want to translate the label Discount (%s) to Discount124 (%s) in the Transactional Email generated for New Order. I am able to do translation for Discount in Order review in frontend and also in Cart page, but the same translation doesn't work in transactional email. What could be the reason for this ?

Moreover, how to put a debug line (also, what line should I put ?) to find out when label "Discount" is found in email template by mailer object, it's translation is done by exactly which csv file ?

I tried some debugging in overrided app/code/core/Mage/Core/Model/Translate.php after line 401 as per below:

if (stripos(strtolower($text), 'Discount') !== false) {
                $translationData[] = array('code' => $code, 'module' => $module, 'text' => $text, 'translated' => $translated);
                echo "<pre/>";print_r($translationData);

But even this throws me off instead of giving me the exact csv file from where the word 'Discount' is translated, how to find it as it is very crucial for me.

marked as duplicate by Fabian Schmengler, Raphael at Digital Pianism, Amit Bera, 7ochem, Rakesh Jesadiya Sep 1 '16 at 5:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


checkout the app/design/ frontend/namespace/yourtheme/locale

OR app/design/frontend/base/default/locale

  • Already did that but no luck with it so far. Also I want to find a key to getting the translation cs responsible for specific word translation, once and for all. – Vicky Dev Aug 29 '16 at 21:09

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