Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

google Language translate


rajaacpl

Recommended Posts

@@rajaacpl

Try this in your catalog/includes/header.php find:

 

 if ($messageStack->size('header') > 0) {
   echo $messageStack->output('header');
 }

 

Add thereafter:

 

<div id="google_translate_element" style="vertical-align:middle;"></div>
<span>
< script type="text/javascript">
function googleTranslateElementInit() {
 new google.translate.TranslateElement({
   pageLanguage: 'sv',
   includedLanguages: 'no,da,fi,is,nl,fr,it',
   multilanguagePage: true,
   layout: google.translate.TranslateElement.InlineLayout.SIMPLE
 }, 'google_translate_element');
}
</script>< script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
</span>

 

Adjust the languages id's according to your needs.

 

And, you can find more info using Google... :)

 

Sara

Link to comment
Share on other sites

Have you found that Google does a good job of translation? I have found when using the Google translator page to do online support that I get many complaints that the English-to-X translations are unreadable. Presumably the translator API would use the same engine as the page, and produce similar results.

Link to comment
Share on other sites

@@MrPhil

Hi Phil, honestly Google translation is horrible most of the time. I have found that the outcome is very much dependent on which langugae is the original. Translating from Swedish to German, for instance, gives a better result than from English to German. It could be that Swedish and German share a number of words and phrases, which may not be the case for English. So, conclusively you are quite right, it's far better to make the translations self.

 

Cheerio

 

Sara

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...