translation in file frontend/base/default/template/email/productalert/stock.phtml is not working?
-
16-10-2019 - |
문제
i am trying to translate
<p> $this->__('You are receiving this notification because you subscribed to receive alerts when the following products are back in stock:') </p>
in frontend/base/default/template/email/productalert/stock.phtml
. but it is not working and still in english in product alert email.
does anyone knows it?
해결책
How do you try to translate the string? If it is in locale.csv
in your theme directory it should work. If it doesn't, check for typos.
If you added your own module and added there a translation file, please check whether dev mode is on. In dev mode magento only translates string in the correct files to prevent, that you deliver modules with missing translations.
If all of this doesn't fix your problem, please hook with xdebug into your translation and have a look into Mage::getTranslator()->getData()
there should be all strings which are translated and you can compare whether it is correct. Maybe it is prefixes with Mage_CatalogInventory::
다른 팁
First of all, i want's to explain how translation works for different locale. Below are the sequence translation loads while rendering page.
1- Module translation files under app/locale/[locale]/*.xml
2- Theme translations in the translate.csv file located in the theme
locale/[locale]/ directory
3- Translations stored in the DB table core_translate
So now according to above sequence check the text and you can able to resolve your issue with translation.