Community Forums 

Main Content

Languages

    Mar 09 2012 01:20:42

    #1

    Nigel B

    Join date : 2009-10-14      Posts : 64

    Has anyone tried using the Google multi language widget thing on Mals?

    I gave it a try by installing the google code on a .js page but it didnt work.

    To send it to my page I used

    <script type="text/javascript" src="http://www.giftsnz.com/freight.js"></script>;;

    and then the code on the page was

    <div id="google_translate_element"></div><script>
    function googleTranslateElementInit() {
    new google.translate.TranslateElement({
    pageLanguage: 'en',
    includedLanguages: 'zh-CN,zh-TW,da,nl,fi,fr,de,el,is,ga,it,ja,ko,no,pt,es,sv,cy,yi',
    layout: google.translate.TranslateElement.InlineLayout.SIMPLE
    }, 'google_translate_element');
    } </script>
    <script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>



    Mar 09 2012 06:38:41

    #2

    GT

    Join date : 2008-09-18      Posts : 3207

    Your script is this Nigel:

    var msg = '';
    msg += '<b>Int Courier Tracked</b> can only be sent to the following countries...<br>';
    msg += 'Australia, Austria, Belgium, Canada, China, Croatia, Czech Republic, Denmark, Finland, France, Germany <br>Greece, Hungary, Hong Kong, Ireland, Italy, Japan, Malaysia, Netherlands, Norway, Philippines, Portugal, <br>Singapore, South Korea, Spain, Sweden, Switzerland, Taiwan, Thailand, UK, USA and Vietnam. (No P.O. Boxes)<br><br>';
    msg += '<b>International Air</b> can go to all countries<br><br>Delivery Days are indicative only.';
    document.write(msg);

    I do not see any mention of your Google script.

    Having trouble with a form or need one building?
    Fast turnaround, but I do charge :)

    Mal's Forms / Scripts and the syntax are here.




    Mar 09 2012 20:13:02

    #3

    Nigel B

    Join date : 2009-10-14      Posts : 64

    Hi GT thanks for replying.

    No I removed it from the site until I get it right.

    Im starting to thing using a .js page is wrong and I should be calling up a .css page?

    So should I use

    <link href="www.giftsnz.com/languages.css"; rel="stylesheet" type="text/css">

    and googles css on my stylesheet page.

    <div id="google_translate_element"></div><script>
    function googleTranslateElementInit() {
    new google.translate.TranslateElement({
    pageLanguage: 'en',
    includedLanguages: 'zh-CN,zh-TW,da,nl,fi,fr,de,el,is,ga,it,ja,ko,no,pt,es,sv,cy,yi',
    layout: google.translate.TranslateElement.InlineLayout.SIMPLE
    }, 'google_translate_element');
    } </script>
    <script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>


    Ill give it as go.



    Mar 09 2012 20:23:08

    #4

    Nigel B

    Join date : 2009-10-14      Posts : 64

    No that hasnt worked either.

    I have left the css live on the site as it doesnt interupt any customers.