1 (edited by Abir 2012-02-19 10:21)

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 :

http://s15.postimage.org/gx7bd47jf/shot01.png

http://s15.postimage.org/gyh96j9d7/shot02.png

Download Link

post_translate_en.zip

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 big_smile )

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 smile sad sad

Re: [Extension Release] post_translate_en

Hi thanks man for this nice plugin smile Ps: I'm also from india

Re: [Extension Release] post_translate_en

Hi,
does anyone still have a copy of this extension? The download link is dead. I sent a mail to the author yesterday but I don't know if he has received it.