title: Magento :: Translate text from javascript files
body: <p>Magento uses a system for translating text in the template files using: </p>
  
  <p><code>$this-&gt;__('text to be translated.');</code> </p>
  
  <p>or </p>
  
  <p><code>Mage::helper('modulename')-&gt;__('text to be translated.');</code>.</p>
  
  <p>This works quite well.
  But when I add text to a javascript file I can't use these two methods. </p>
  
  <p>Is there a way I could do a similar thing with the translations for javascript files?</p>