आप इसे टेम्पलेट फ़ाइल yourfile.phtml में कर सकते हैं। जावास्क्रिप्ट स्क्रिप्ट जेएस/mage/translate.js को आपके एचटीएमएल हेडर में शामिल किया जाना चाहिए (Magento डिफ़ॉल्ट रूप से करता है)।
<script type="text/javascript">
Translator.add('You should take care of this confirmation message!','<?php echo Mage::helper('yourmodule')->__('You should take care of this confirmation message!')?>');
</script>
संपादित: आप Magento 1.7 के बाद से आदि/फ़ोल्डर के तहत अपने मॉड्यूल में एक फ़ाइल jstranslator.xml जोड़ सकते हैं और इस तरह निम्नलिखित स्ट्रिंग सेट कर सकते हैं:
<jstranslator>
<!-- validation.js -->
<validate-no-html-tags translate="message" module="core">
<message>HTML tags are not allowed</message>
</validate-no-html-tags>
<validate-select translate="message" module="core">
<message>Please select an option.</message>
</validate-select>
</jstranslator>
फिर स्ट्रिंग का अनुवाद जैसा कि आप PHP के लिए ऐसा करते हैं, सीएसवी फ़ाइल यह धन्यवाद, निम्नलिखित var Translator = new Translate(...)
स्रोत
2011-10-13 08:32:35
यह जवाब है: http://stackoverflow.com/questions/1450294/magento- अनुवाद-सत्यापन-त्रुटि-संदेश # उत्तर -3839423 – wormhit