The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
3 posters

    How to translate a post?

    bladeskull@
    bladeskull@
    Forumember


    Male Posts : 33
    Reputation : 3
    Language : English and a little spanish
    Location : U.S.A.

    Solved How to translate a post?

    Post by bladeskull@ March 12th 2014, 11:18 pm

    Does anyone know how you might be able to translate a post without going on Google translate or any translators. Let's say you are a member who can't speak English well is there any code that can make a member have the option to translate the post from their language to English without having to go to another page.
    Thanks for helping
    Neptune-
    Neptune-
    Forumember


    Female Posts : 496
    Reputation : 104
    Language : French (10), English (8), CSS (5), HTML (4), Javascript (4)
    Location : Scotland, UK

    Solved Re: How to translate a post?

    Post by Neptune- March 12th 2014, 11:40 pm

    Hello !!

    A little script found on french support forum
     study  Mettre son forum dans plusieurs langues

    On click, it adds a "toolbar" which can enable translating of whole page in any language you wish.
    bladeskull@
    bladeskull@
    Forumember


    Male Posts : 33
    Reputation : 3
    Language : English and a little spanish
    Location : U.S.A.

    Solved Re: How to translate a post?

    Post by bladeskull@ March 13th 2014, 1:50 am

    Do you have anything that can translate post
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: How to translate a post?

    Post by Ange Tuteur March 13th 2014, 1:54 am

    Hello bladeskull@,

    As Neptune- has mentioned,

    Add this to :
    Administration panel > modules > javascript codes management > create a new script

    title : google translate
    placement : in all the pages
    Code:
    function gT() {
     Â   new google.translate.TranslateElement({pageLanguage:"en",multilanguagePage:!0,floatPosition:google.translate.TranslateElement.FloatPosition.BOTTOM_RIGHT})
    };
    $.getScript("http://translate.google.com/translate_a/element.js?cb=gT");

    This will translate posts.
    bladeskull@
    bladeskull@
    Forumember


    Male Posts : 33
    Reputation : 3
    Language : English and a little spanish
    Location : U.S.A.

    Solved Re: How to translate a post?

    Post by bladeskull@ March 13th 2014, 2:02 am

    Okay thanks for the help appreciate it
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: How to translate a post?

    Post by Ange Tuteur March 13th 2014, 2:04 am

    Topic solved and archived

      Current date/time is September 23rd 2024, 2:28 pm