The Taragana Translator Plugin is the best translation software I have found for WordPress . Not only is it easily customizable but for only $30 you can have your entire blog translated into 13 languages in less than 15 minutes. It is however beneficial to customize some of the settings and especially to add a bit to the design. I prefer having the flags appe ar at the top of the center column of a three column WordPress layout. Below I have listed some tips on how to easily customize the display of the flags.

The first thing to do is have display the actual flags. The major holdup I had was the home flag, in my case the English or US flag, was not displaying the correct link. No matter what I did it would display the URL of the translation I was currently using. So if I was viewing a German translation page then the US flag would display / de . I finally figured out that you have to wrap your flag display with text to not translate a section of co de . The text to use for not translating is shown below in an example.

<?php
echo "<!--skip translation--><div style='padding: 5px 2px 2px 2px; text-align: center; background: #eeeeee';>";
if(function_exists('tgGetVisibleLanguages')) { // This ensures that the Translator Plugin Gold is active.
    $visibleLanguages = tgGetVisibleLanguages();
foreach($ visibleLanguages  as $language) {
         echo " <a href='" .  tgGetTranslatedPageURL ($language) . "' title='" .  tgGetTooltip ($language) . "'>< img  width='27px' height='27px' style='padding-right: 2 px ; border:0;'  src ='" .  tgGetFlagImage ($language). "' alt='" .  tgGetTooltip ($language) . "' /></a> ";
    }
}
echo "</div><!--end skip translation-->";
?>

Note the “skip translation” comment and the “end skip translation” comment. Originally I was not using that and could not figure out how to make the URL for the US flag display properly.

Some of the other modifications include breaking out the display of the flags also shown in the example above. This allows you to modify the size, background, padding, etc. Once split out like this you can apply any CSS modifications to the display you choose. This will allow for larger flag images, more spacing in between flags, etc. We opted for square flags on question defense to provide a bit more detail and we were able to find some free sets of world flag images by searching Google images.

Using the example above you could easily modify this code to display one flag as well. Below is an example of display just one flag with a link to that translation.

 <? php
echo "<!--skip translation--><div style='padding: 5px 2px 2px 2px; text-align: center; background: #eeeeee';>";
 if(function_exists('tgGetVisibleLanguages')) { // This ensures that the Translator  Plugin  Gold is active.
    echo " <a  href ='" .  tgGetTranslatedPageURL ( ar ) . "' title='" .  tgGetTooltip ( ar ) . "'>< img  width='27px' height='27px' style='padding-right: 2 px ; border:0;'  src ='" .  tgGetFlagImage ( ar ). "' alt='" .  tgGetTooltip ( ar ) . "' /></a> ";
    }
echo "</div><!--end skip translation-->";
?>

This example would also allow you to change the alt text, image, or image title easily if you wanted to. Below we show an example of changing all three to something custom but still use the translation URL from the Translator Pro plugin.

 <? php
echo "<!--skip translation--><div style='padding: 5px 2px 2px 2px; text-align: center; background: #eeeeee';>";
 if(function_exists('tgGetVisibleLanguages')) { // This ensures that the Translator  Plugin  Gold is active.
    echo " <a  href ='" .  tgGetTranslatedPageURL ( ar ) . "' title='"CUSTOM TITLE HERE"'>< img  width='50px' height='50px' style='padding: 5 px  5 px  5 px  5 px ; border:2;'  src ='"CUSTOM IMAGE SOURCE URL"' alt='"CUSTOM ALTERNATE TEXT"' /></a> ";
    }
echo "</div><!--end skip translation-->";
?>
 

Some other things that you need to understand when using the Taragana Translator package is how the translator engines work and how the caching for the package works. Caching is probably the most important part of this WordPress plugin as the more traffic you get the more important serving these pages quickly to your visitors will become. Some of the engines used, as explained by Taragana , can permanently or temporarily reject traffic from your site if you are using these translation engines to often. After playing around with a couple of the engines Google appears to be the best to use. Below is a view of the WordPress admin page relating to the translation engine configuration for Translator Pro.

Translator Pro Translator Engine Configuration

Make sure when Google is available you use the following settings:

First Column: Active: Checked

Second Column: Translation Engine: Google Radial Active

Third Column: Translation Method: URL Radial Active

Fourth Column: Data Processing: Checked

Below is a view of the WordPress admin for the Translator Pro plugins cache management. In most cases you do not ever want to delete all of the cache. Instead use the “Delete Page From Cache” section if you are having problems with one page you can cle ar it from the cache to see if it resolves the problem.

Translator Pro Cache Management

I am looking forward to eventually trying the Translator Gold plugin and will eventually write an article relating to the traffic benefits that Translator Pro has provided to this site.

DeliciousStumbleUponDiggTwitterFacebookRedditLinkedInEmail
Tags: , , , , , , , , ,
Leave a Reply

*Type the letter/number combination in the abvoe field before clicking submit.

*