<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body >Dear Tzenk,<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; To give i18n support in JAVASCRIPT files, we have included a js file called <span style="font-weight: bold;">en_us.lang.js</span> under <span style="font-weight: bold;">include/js</span> directory. As we have included this js file in Smarty/templates/Header.tpl file, the javascript array <span style="font-weight: bold;">alert_arr </span>is accessible globally. so you need to put an KEY(label)-VALUE entry in this file and use that label  in the place of hardcoded string in javascript files.<br><br>To remove hardcoded string in MailParse.php, kindly follow given steps here.<br>1)Include entries for hardcode strings in modules/Webmails/language/en_us.lang.php<br>2)Do the global declaration of $mod_strings variable in MailParse.php file.<br>3)Replace all the hardcoded strings with repective labels.<br><br>I hope this will be helpful for you. <br>Kindly get back to me if you need any clarification.<br><br>Thanks &amp; Regards,<br>Minnie.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>----tzenk@gmx.net wrote ---- <br><br><blockquote style="border-left: 2px solid rgb(0, 0, 255); padding: 6px;">
                
                
                                    
                <div>
Hi everybody,<br>i´m working on a way to make all the hardcoded things within the <br>MailParse.php i18n compatible.<br><br>for example the title=" i want to get into variables. As they are inside <br>a javascript string i am quite lost how to do this.<br>First thing i found out is that i can make<br><br>row 67<br>title="Read"&gt; to<br>title="'.$num.'"&gt;<br><br>and it then shows me the content of that $num (the number 2 in this <br>case). Now if i would make a variable called $read it would show me <br>"Read" and it would be okay since i then could add any translated word <br>into the variable. But i wonder and this is my main question from WHERE <br>is it getting the $num variable e.g. where do i have to add new <br>variables? Can anyone tell me where to look at?<br><br><br>After that addition i want to think about how to tell this variable to <br>look in the lang file which is choosen by the user, so one only has to <br>translate the included varibles in the lang file within the webmails <br>module, but that is another step, just wanted to ask if maybe someone <br>else has thought about this too?<br><br>TIA<br><br><br><br><br>_______________________________________________<br>Reach hundreds of potential candidates - <a target="_blank" href="http://jobs.vtiger.com">http://jobs.vtiger.com</a> <br>
</div>

                
                                
          </blockquote></body></html>