Briefing Magento Knowledge

which is the correct option for translating JavaScript …

Using Magentos JavaScript translator object, which is the correct option for translating JavaScript strings within
a.phtml file?

A.
Translator.newTranslation({“To be translated”:”Translated Copy Here”});

B.
Translator.add(“To be translated”);

C.
Translate({“To be translated”,”<?php echo $this->__(‘To be translated’); ?>”});

D.
Translator-add({“To be translated”:”<?php echo $this->_(‘To be translated’); ? >”});