Topic: [Extension Release] post_translate_en
<id>post_translate_en</id>
<title>Translate Each Post to English</title>
<description>This will allow you to translate any post(Topic or Reply) to english.</description>
<author>Abir Sarkar</author>
<version>1.0.0</version>
<minversion>1.4</minversion>
<maxtestedon>1.4.2</maxtestedon>
Version : 1.0.0 (First Release)
Instructions and Information :
This Extension let you translate any post (Topic or Reply) to English. Wrap your post (other than english) with a brand new bbcode [tr][/tr] , and let post readers to translate it to English.
Screen-Shots :
Download Link
A Request to Administrators
If its possible I would like to have this extension installed here , as too many people here who use to post topics in their native languages, I hope this extension will make it possible to read those easily for others. Thanks in advance.
Well Its so easy to customize this extension
(though I will publish a new version with customize option located at Administrator Panel )
Manually Customization Instruction :
Open manifest.xml
Locate following :
<hook id="hd_template_loaded">
<![CDATA[
$abir_tpl =
"<script type='text/javascript'>
function googleSectionalElementInit() {
new google.translate.SectionalElement({
sectionalNodeClassName: 'translate',
controlNodeClassName: 'translate_control',
background: '#f4fa58'
}, 'google_sectional_element');
}
</script>
<script type='text/javascript' src='http://translate.google.com/translate_a/element.js?cb=googleSectionalElementInit&ug=section&hl=en'></script>
";
$tpl_main = str_replace('</head>', $abir_tpl.'</head>', $tpl_main);
]]>
</hook>
More specifically :
<script type='text/javascript' src='http://translate.google.com/translate_a/element.js?cb=googleSectionalElementInit&ug=section&hl=en'></script>
Change 'hl=en' to 'hl=fr' for french or 'hl=es' for Spanish or 'hl=bn' for Bengali etc as according to your preferred language.
Well , I think I deserve at least one feedback