0 Replies Latest reply on Jun 27, 2014 7:04 AM by samarth.shekhar02

    Adding Google Translate

    samarth.shekhar02

      Hi ,

      Has anyone tried to implement Google Translate in Jive 7.0.1

      I have added the code snippet  in footer.soy

      <script type="text/javascript">

      function googleTranslateElementInit() {lb}

            new google.translate.TranslateElement({lb}

               pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.HORIZONTAL,

               autoDisplay: true, multilanguagePage: true

            {rb},

            'google_translate_element');

         {rb}

         $j(document).ready(function() {lb}

            $j.getScript('//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit');

         {rb});

      </script>

       

      The Translator is working fine. But we have a scenario here.

      Once i load the page and before page is completely loaded click on create menu, the pop up box open but once the page is completely loaded it moves away from its original position.

      Again in i click on create menu it opens correctly.

      I am not able to identify what is causing this movement of pop up box.

       

      In my theme folder i have only footer.soy with the above customization added.

       

      Any help on this is highly appreciated.

       

      Thanks,

      Samarth