Page Index Toggle Pages: 1 Print
Adding Web page Translation Widget (Read 3094 times)
Captain John
Ex Member


Adding Web page Translation Widget
Feb 18th, 2008 at 3:17am
Print Post  
<id>
Web page translation selection
</id>

<version>
1.0
</version>

<mod info>
This is inserting a Google Translation Selection widget on the Main Index page of a YaBB Forum Y2.2
reference page http://google.com/translate_tools?hl=en&sl=en

           in string to be inserted replace language=en
           
           Arabic = ar
           Chinese (Simplified) = zh-CN
           Chinese (Traditional) = zh-TW
           Dutch = nl
           French = fr
           German = de
           Greek = el
           Italian = it
           Japanese = ja
           Korean = ko
           Portuguese = pt
           Russian = ru
           eSpaneol = es

Above language is the default language of the forum.
           
</mod info>



<edit file>
Templates/default/default.html
</edit file>

<search for>
           
Code
Select All
<td class="rightbox" width="160" valign="top"><div style="float: left; width: 160px; height: 21px; text-align: center; padding-top: 3px; display: inline;">{yabb searchbox}</div></td> 


</search for>

<replace>
Code
Select All
		<td class="rightbox" width="160" valign="top"><div style="float: left; width: 160px; height: 75px; text-align: center; padding-top: 3px; display: inline;"><script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/translatemypage.xml&up_source_language=en&w=160&h=60&title=&border=&output=js"></script>
 

</replace>
« Last Edit: Feb 23rd, 2008 at 12:40am by »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Print
 
  « Board Index ‹ Board  ^Top