Contact: Web / Voice / Email / Tips
Simple Thoughts Blog - Java and Web Technologies

Simple solutions for complex problems.

 

How To Display Links Only In Translator Plugin Pro

September 3rd, 2007 by Angsuman Chakraborty

Translator Plugin Pro for WordPress blogs provides automatic machine translation of your blog in 14 languages* - English, German, Spanish, Russian, Arabic, Dutch, Swedish, Greek, French, Italian, Portuguese, Japanese, Korean, Chinese Simplified and Chinese Traditional. It is fully customizable with PHP API & tags. One of the frequent requests is how we can provide only links to translated pages without the associated country flag images. Here’s is a full example how you can easily do it with the API. Please include the following code in your template to use it.


<!--skip translation-->
<?php
if(function_exists('tgGetVisibleLanguages')) { // This ensures that the Translator plugin is active.
    $visibleLanguages = tgGetVisibleLanguages();
    echo '<ul>';
    foreach($visibleLanguages as $language) {
        echo "<li><a href='" . tgGetTranslatedPageURL($language) . "' title='" . tgGetTooltip($language) . "'>" . tgGetTooltip($language). "</a></li>";
    }
    echo '</ul>';
}
?>
<!--end skip translation-->

Feel free to customize the code to your needs. Let me know if you have any questions. You can find the full details about the API here.

*Note: Translator Gold provides translation in 32 different languages.


Tags: Headline News, How To, PHP, Pro Blogging, Programming, SEO, Tech Note, Translator Plugin Pro, Web, Web 2.0, Web Services, WordPress, WordPress Plugin | | RSS 2.0 | Trackback this Article | Email this Article

You may also like to read

»Angsuman's Translator Plugin Pro Increases Web Traffic by 400% in 3 Months
»SEO Goldmine: Translator Plugin Pro 5.0 Supports Automatic Translation of WordPress Blogs in 14 Languages
»Translator Plugin Pro Next Version Roadmap
»How To Get Free Copy of Translator Plugin Pro?
»Angsuman's Translator Plugin Pro Compatible With WordPress 2.1
»Translator Plugin Pro / Gold Fully Compatible With Wordpress 2.5
»Translator Plugin Pro Fully Supported On WordPress 2.x, 2.1.x, 2.2.x & 2.3.x (development)
»Translator 4.0 Plugin Demo
»Translator Plugin Pro 5.0: Guidelines & Notes for Current Customers
»Congratulations WordPress Plugin Contest Winners & Translator Pro Winner
»Angsuman's Translator Plugin Pro / Gold: Statistics
»Alternative Flag Images for Angsuman's Translator Plugin Pro
»WordPress Automatic Machine Translator Plugin 2.0 Beta - Please Test
»Translator Plugin Pro Translating Even Admin Pages: Bug or Feature?
»When You Don't Receive Your Translator Plugin...

Looking forward to hear your thoughts.



Please enter the code shown below ( to verify that you are human ) before you click Submit Comment.

No. 1 method to ethically increase your blog traffic and reach.

Translate

Translate to EnglishÜbersetzen Sie zum Deutsch/GermanPřeložit do Čech/CzechOversætte hen til Dansk/DanishKääntää jotta Finnish/FinnishLefordít -hoz Magyar/HungarianÞýða til Íslenska/IcelandicTraducir a Latinoamericano Español/Latin American Spanishtagapagsalin sa Filipino/FilipinoTłumaczyć wobec Polski/PolishA traduce la spre Român/RomanianPrevesti za Srpski/Serbiantolmačiti v slovenski/SlovenianÖversätta till Svensk/SwedishChyfieitha at Cymraeg/Welshtercüme etmek -e doğru Türk/TurkishPrevesti to Hrvatski/CroatianПревеждам към Българин/BulgarianTraduzca al Español/SpanishTraduisez au Français/FrenchTraduca ad Italiano/ItalianTraduza ao Português/Portuguese日本語に翻訳しなさい /Japanese한국어에게 번역하십시오/Korean中文翻译/Chinese Simplifiedترجمة الى العربية/ArabicVertaal aan het Nederlands/DutchΜεταφράστε στα ελληνικά/GreekПереведите к русскому/RussianOversetter til Norsk/Norwegian中文翻译/Chinese TraditionalTraduzir a Língua portuguesa brasileira/Brazilian PortugueseReddo ut Latin/Latin

Taragana Network

»Ctrl-S
»Enterprise Blog
»Free Book on Eye Care by Natural Therapy
»Health Care Blog
»Hot Computer Jobs Blog
»Pet Care & Grooming News and Tips
»Phil Law Blog
»Taragana - Software Outsourcing
»The Angsuman Chakraborty Blog
»The Diabetes Cure Blog
»The Eye Treatment Blog
»The Stem Cell Blog
»Weblog Hosting Blog
"...one of the strongest motives that lead men to art and science is escape from everyday life with its painful crudity and hopeless dreariness, from the fetters of one's own ever-shifting desires. A finely tempered nature longs to escape from the personal life into the world of objective perception and thought." - Albert Einstein