Forums / All Other Contributions/Addons / Google Language Translator Sidebox

Google Language Translator Sidebox

Locked
Results 1 to 6 of 6
This thread is locked. New replies are disabled.
26 Apr 2008, 20:34
#1
charmedbytina2 avatar

charmedbytina2

Totally Zenned

Join Date:
Mar 2007
Posts:
1,890
Plugin Contributions:
0

Google Language Translator Sidebox

I have installed this add-on thru the downloads section, and as mentioned in the details listed, there is a bug (minor I hope).

The dropdown box to select the language you want to translate to is ABOVE the sidebox it should be in. The side box shows a ;

The dropdown works fine and pages are translated.

Any help fixing this would be appreciated.

Here's a screen shot of what I'm talking about - I hope it is clear enough to show the problem.

Attachment #3848

Thanks
27 Apr 2008, 16:00
#2
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Posts:
1,075
Plugin Contributions:
5

Re: Google Language Translator Sidebox

The dropdown box to select the language you want to translate to is ABOVE the sidebox it should be in. The side box shows a ;


I think it's how it was used in the sidebox code. It should have been contained in $content .= ' instead of out in plan html.

I didn't use the sidebox, but I do use the code in my header. I contained it in a ID tag and used relative position in my Style sheet. Side boxes tend to move so relative position wouldn't work.

Try this to fix the side box idea;

delete this $content .=';' ?>

Add $content .=' to the front of each html line and add '; to the end of each line.

At the last line remove the <?php and that should do it.
27 Apr 2008, 16:26
#3
charmedbytina2 avatar

charmedbytina2

Totally Zenned

Join Date:
Mar 2007
Posts:
1,890
Plugin Contributions:
0

Re: Google Language Translator Sidebox

Dave,
Thanks for the response.
I uninstalled this add-on because today - nothing was working! GEEZ. :frusty:
I'll incorporate your suggestions and install it again.

Thanks,
Tina
12 Feb 2009, 04:16
#4
nsanford avatar

nsanford

New Zenner

Join Date:
Dec 2007
Posts:
69
Plugin Contributions:
1

Re: Google Language Translator Sidebox

Hi Tina,
Did you manage to get this working? I need some help with the coding.

This is the tpl_languages.php file included in the download:


<?php
/**
* Side Box Template
*
* @package templateSystem
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_languages.php 12/10/2007 18:51:15 sn0ut $
*
*
* Updated language settings by Paul Christy www.element-9-design.com
*/

$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';

$content .=';' ?>

Languages:
<form name="languages" id="lang">
<select name="languages" onchange="MM_jumpMenu('parent',this,0)">
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Caf&hl=en&ie=UTF-8' ?>">Afrikaans</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Csq&hl=en&ie=UTF-8' ?>">Albanian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cam&hl=en&ie=UTF-8' ?>">Amharic</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Car&hl=en&ie=UTF-8' ?>">Arabic</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Chy&hl=en&ie=UTF-8' ?>">Armenian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Caz&hl=en&ie=UTF-8' ?>">Azerbaijani</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Ceu&hl=en&ie=UTF-8' ?>">Basque</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cbe&hl=en&ie=UTF-8' ?>">Belarusian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cbn&hl=en&ie=UTF-8' ?>">Bengali</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cbh&hl=en&ie=UTF-8' ?>">Bihari</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cxx-bork&hl=en&ie=UTF-8' ?>">Bork, bork, bork!</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cbs&hl=en&ie=UTF-8' ?>">Bosnian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cbr&hl=en&ie=UTF-8' ?>">Breton</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cbg&hl=en&ie=UTF-8' ?>">Bulgarian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Ckm&hl=en&ie=UTF-8' ?>">Cambodian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cca&hl=en&ie=UTF-8' ?>">Catalan</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Czh-CN&hl=en&ie=UTF-8' ?>">Chinese (Simplified)</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Czh-TW&hl=en&ie=UTF-8' ?>">Chinese (Traditional)</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cco&hl=en&ie=UTF-8' ?>">Corsican</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Chr&hl=en&ie=UTF-8' ?>">Croatian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Ccs&hl=en&ie=UTF-8' ?>">Czech</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cda&hl=en&ie=UTF-8' ?>">Danish</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cnl&hl=en&ie=UTF-8' ?>">Dutch</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cxx-elmer&hl=en&ie=UTF-8' ?>">Elmer Fudd</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cen&hl=en&ie=UTF-8' ?>">English</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Ceo&hl=en&ie=UTF-8' ?>">Esperanto</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cet&hl=en&ie=UTF-8' ?>">Estonian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cfo&hl=en&ie=UTF-8' ?>">Faroese</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Ctl&hl=en&ie=UTF-8' ?>">Filipino</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cfi&hl=en&ie=UTF-8' ?>">Finnish</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cfr&hl=en&ie=UTF-8' ?>">French</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cfy&hl=en&ie=UTF-8' ?>">Frisian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cgl&hl=en&ie=UTF-8' ?>">Galician</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cka&hl=en&ie=UTF-8' ?>">Georgian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cde&hl=en&ie=UTF-8' ?>">German</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cel&hl=en&ie=UTF-8' ?>">Greek</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cgn&hl=en&ie=UTF-8' ?>">Guarani</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cgu&hl=en&ie=UTF-8' ?>">Gujarati</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cxx-hacker&hl=en&ie=UTF-8' ?>">Hacker</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Ciw&hl=en&ie=UTF-8' ?>">Hebrew</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Chi&hl=en&ie=UTF-8' ?>">Hindi</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Chu&hl=en&ie=UTF-8' ?>">Hungarian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cis&hl=en&ie=UTF-8' ?>">Icelandic</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cid&hl=en&ie=UTF-8' ?>">Indonesian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cia&hl=en&ie=UTF-8' ?>">Interlingua</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cga&hl=en&ie=UTF-8' ?>">Irish</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cit&hl=en&ie=UTF-8' ?>">Italian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cja&hl=en&ie=UTF-8' ?>">Japanese</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cjw&hl=en&ie=UTF-8' ?>">Javanese</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Ckn&hl=en&ie=UTF-8' ?>">Kannada</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Ckk&hl=en&ie=UTF-8' ?>">Kazakh</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cxx-klingon&hl=en&ie=UTF-8' ?>">Klingon</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cko&hl=en&ie=UTF-8' ?>">Korean</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cku&hl=en&ie=UTF-8' ?>">Kurdish</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cky&hl=en&ie=UTF-8' ?>">Kyrgyz</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Clo&hl=en&ie=UTF-8' ?>">Laothian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cla&hl=en&ie=UTF-8' ?>">Latin</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Clv&hl=en&ie=UTF-8' ?>">Latvian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cln&hl=en&ie=UTF-8' ?>">Lingala</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Clt&hl=en&ie=UTF-8' ?>">Lithuanian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cmk&hl=en&ie=UTF-8' ?>">Macedonian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cms&hl=en&ie=UTF-8' ?>">Malay</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cml&hl=en&ie=UTF-8' ?>">Malayalam</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cmt&hl=en&ie=UTF-8' ?>">Maltese</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cmr&hl=en&ie=UTF-8' ?>">Marathi</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cmo&hl=en&ie=UTF-8' ?>">Moldavian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cmn&hl=en&ie=UTF-8' ?>">Mongolian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cne&hl=en&ie=UTF-8' ?>">Nepali</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cno&hl=en&ie=UTF-8' ?>">Norwegian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cnn&hl=en&ie=UTF-8' ?>">Norwegian (Nynorsk)</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Coc&hl=en&ie=UTF-8' ?>">Occitan</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cor&hl=en&ie=UTF-8' ?>">Oriya</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cps&hl=en&ie=UTF-8' ?>">Pashto</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cfa&hl=en&ie=UTF-8' ?>">Persian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cxx-piglatin&hl=en&ie=UTF-8' ?>">Pig Latin</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cpl&hl=en&ie=UTF-8' ?>">Polish</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cpt-BR&hl=en&ie=UTF-8' ?>">Portuguese (Brazil)</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cpt-PT&hl=en&ie=UTF-8' ?>">Portuguese (Portugal)</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cpa&hl=en&ie=UTF-8' ?>">Punjabi</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cqu&hl=en&ie=UTF-8' ?>">Quechua</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cro&hl=en&ie=UTF-8' ?>">Romanian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Crm&hl=en&ie=UTF-8' ?>">Romansh</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cru&hl=en&ie=UTF-8' ?>">Russian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cgd&hl=en&ie=UTF-8' ?>">Scots Gaelic</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Csr&hl=en&ie=UTF-8' ?>">Serbian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Csh&hl=en&ie=UTF-8' ?>">Serbo-Croatian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cst&hl=en&ie=UTF-8' ?>">Sesotho</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Csn&hl=en&ie=UTF-8' ?>">Shona</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Csd&hl=en&ie=UTF-8' ?>">Sindhi</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Csi&hl=en&ie=UTF-8' ?>">Sinhalese</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Csk&hl=en&ie=UTF-8' ?>">Slovak</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Csl&hl=en&ie=UTF-8' ?>">Slovenian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cso&hl=en&ie=UTF-8' ?>">Somali</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Ces&hl=en&ie=UTF-8' ?>">Spanish</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Csu&hl=en&ie=UTF-8' ?>">Sundanese</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Csw&hl=en&ie=UTF-8' ?>">Swahili</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Csv&hl=en&ie=UTF-8' ?>">Swedish</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Ctg&hl=en&ie=UTF-8' ?>">Tajik</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cta&hl=en&ie=UTF-8' ?>">Tamil</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Ctt&hl=en&ie=UTF-8' ?>">Tatar</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cte&hl=en&ie=UTF-8' ?>">Telugu</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cth&hl=en&ie=UTF-8' ?>">Thai</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cti&hl=en&ie=UTF-8' ?>">Tigrinya</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cto&hl=en&ie=UTF-8' ?>">Tonga</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Ctr&hl=en&ie=UTF-8' ?>">Turkish</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Ctk&hl=en&ie=UTF-8' ?>">Turkmen</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Ctw&hl=en&ie=UTF-8' ?>">Twi</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cug&hl=en&ie=UTF-8' ?>">Uighur</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cuk&hl=en&ie=UTF-8' ?>">Ukrainian</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cur&hl=en&ie=UTF-8' ?>">Urdu</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cuz&hl=en&ie=UTF-8' ?>">Uzbek</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cvi&hl=en&ie=UTF-8' ?>">Vietnamese</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Ccy&hl=en&ie=UTF-8' ?>">Welsh</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cxh&hl=en&ie=UTF-8' ?>">Xhosa</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cyi&hl=en&ie=UTF-8' ?>">Yiddish</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Cyo&hl=en&ie=UTF-8' ?>">Yoruba</option>
<option value="<?php echo 'http://translate.google.com/translate?u='. HTTP_SERVER . DIR_WS_CATALOG .'&langpair=en%7Czu&hl=en&ie=UTF-8' ?>">Zulu</option>
</select>
</form>
<?php $content .= '</div>'; ?>



I get that $content .=' has to be added to the start of each line, and '; to the end, but when I get to each <option value=" line, the code breaks.

Can anyone please help me?

Thanks!
12 Feb 2009, 07:18
#5
getsome avatar

getsome

New Zenner

Join Date:
Dec 2008
Posts:
12
Plugin Contributions:
0

Re: Google Language Translator Sidebox

That sidebox gives errors in SSL...

This is what I did...

Used html code for Google Translator from Google.com widgets. Put the code into an "Advertisement side box" (I use it only for Translator, and disabled the side box in SSL mode, so you dont get an error on customer end... Nonssl ...blah...

:smile:
12 Feb 2009, 08:37
#6
nsanford avatar

nsanford

New Zenner

Join Date:
Dec 2007
Posts:
69
Plugin Contributions:
1

Re: Google Language Translator Sidebox

Cool, thanks for the heads up, getsome. I'll give your suggestion a go!

Cheers! :smile: