title: inline translation not working in magento
body: <p>inline translation in magento is not working for the data which is loaded from ajax.</p>
  
  <p>I had used following for installation:
        <a href="http://blog.chapagain.com.np/magento-language-translation-for-custom-module-step-by-step-guide/" rel="nofollow">http://blog.chapagain.com.np/magento-language-translation-for-custom-module-step-by-step-guide/</a></p>
  
  <p>I have created following template file for the display of my product details.</p>
  
  <p><code>magento\app\design\frontend\default\default\template\catalog\product\view.phtml</code></p>
  
  <p>it has following code:</p>
  
  <pre><code>&lt;?php $_helper = $this-&gt;helper('catalog/output'); ?&gt;
  &lt;?php $_product = $this-&gt;getProduct(); ?&gt;
  &lt;?php echo $this-&gt;__('desired word') ?&gt;
  </code></pre>
  
  <p>I have created a custom module for inline translation to load csv file for all my custom modules.
    <code>\magento\app\code\local\Translations\Inline\etc\config.xml</code></p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;config&gt;
    &lt;modules&gt;
      &lt;Translations_Inline&gt;
        &lt;version&gt;0.1.0&lt;/version&gt;
      &lt;/Translations_Inline&gt;
    &lt;/modules&gt;
     &lt;frontend&gt;
          &lt;translate&gt;
              &lt;modules&gt;
                  &lt;translations&gt;
                      &lt;files&gt;
                          &lt;default&gt;Translations.csv&lt;/default&gt;
                      &lt;/files&gt;
                   &lt;/translations&gt;
              &lt;/modules&gt;
          &lt;/translate&gt;
      &lt;/frontend&gt;
      &lt;adminhtml&gt;
          &lt;translate&gt;
              &lt;modules&gt;
                 &lt;translations&gt;
                      &lt;files&gt;
                          &lt;default&gt;Translations.csv&lt;/default&gt;
                      &lt;/files&gt;
                  &lt;/translations&gt;
              &lt;/modules&gt;
          &lt;/translate&gt;
      &lt;/adminhtml&gt;
    &lt;global&gt;
      &lt;helpers&gt;
        &lt;inline&gt;
          &lt;class&gt;Translations_Inline_Helper&lt;/class&gt;
        &lt;/inline&gt;
       &lt;/helpers&gt;
    &lt;/global&gt;
  &lt;/config&gt; 
  </code></pre>
  
  <p>To activate module,
      \magento\app\etc\modules\Translations_Inline.xml</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
    &lt;config&gt;
       &lt;modules&gt;
          &lt;Translations_Inline&gt;
            &lt;active&gt;true&lt;/active&gt;
            &lt;codePool&gt;local&lt;/codePool&gt;
            &lt;version&gt;0.1.0&lt;/version&gt;
          &lt;/Translations_Inline&gt;
        &lt;/modules&gt;
   &lt;/config&gt;
  </code></pre>
  
  <p>I have added Translation.csv in following folders:</p>
  
  <p>\magento\app\locale\en_US</p>
  
  <p>\magento\app\locale\zh_HK</p>
  
  <p>So,after enabling inline translation from admin side for English as well Chinese storeview,its working well but my question is what if my data in view.hmtl is loaded from ajax not like 
       __('desired word');?></p>
  
  <p>fox exmaple if view.phtml is as follows:</p>
  
  <pre><code> &lt;script type="text/javascript"&gt;
  var url_magento = '&lt;?php echo        Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB); ?&gt;';    
  
    var j = jQuery.noConflict();
    j(document).ready(function()
    {
  getcontent();
  
   });
   function getcontent()
   {
  
  jQuery.ajax({
      url:url_magento+'hi.php',
      type:'POST',
      beforeSend: function(){
                  jQuery('#product_app').html('loading');
                  },      
      ajaxError : function() {                
                  jQuery('#product_app').html('Error: Can not load page');
              },
      success: function(data){
                  //alert(data);
                  jQuery('#product_app').html(data);          
              }
          }); 
  
      }
  &lt;/script&gt;
  &lt;div id='product_app'&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Now hi.php is as follows:</p>
  
  <pre><code> &lt;?php  
     echo "hi.This is the page that gives product's detail";
   ?&gt;
  </code></pre>
  
  <p>so,I want inline translation working for this data too.or is there any other way to load data of ajax in php in form of echo.
    You are free to ask more details.i try to add most of the needed data to configure inline translation.hoping for the answer asap.thank you in advance</p>