When you are dealing with multiple translations then some times you want to know the location, from where this translation is coming, so there are steps to debug it:-
1. Go to app/code/core/Mage/Core/Model/Translate.php
2. Find function translate()
and then write the below code before "return $result":-
$logModule = str_pad($module, 25, "-",
STR_PAD_RIGHT);
$logInString = str_pad($text, 150,
"-", STR_PAD_RIGHT);
$logOutString = str_pad($result, 200, "
", STR_PAD_RIGHT);
Mage::log($logModule . '>' . $logInString .
'>' . $logOutString, null, 'translate.log');
Now check translate.log file under
/var/log.
After debugging rollback the whole code in core file "Translate.php"
No comments:
Post a Comment