Translate Widget

Update! Version 2.0 is here: Translate Widget 2.0

Translate WidgetSo, I’ve completed my first bona-fide Wordpress Plugin :)
It’s one of those newfandangled widgets, and it adds little flags to your sidebar, which will take you to a translation of the current blog page. It uses google translate, but removes the frame, so it looks quite nice! Once you’re in one language, you can browse around the blog, and everything stays translated. You can just click on the English flag to get back to the original language. You should see it on my sidebar now, and you can give it a trial run. Then, if satisfied, download it here:
Translate Widget
The zip includes a /flags/ folder, and a translate.php file. Both need to be placed in the /wordpress/wp-content/plugins/widgets/ folder. If you want to change the English language flag from the default American to either the British or Canadian (as I have!) flags, they are included, just rename flag_ca.gif, or flag_uk.gif to flag_en.gif. Now you can just go to the widget’s options.

Donations

If you appreciate my plugins, and feel compelled to spread some love, I would certainly appreciate it. No obligation though, of course.


Comments, tips, or problems are welcome, just leave a comment here, or send me an email (Address is in the sidebar.)

Do enjoy!

Update on June 14, 2006: The plugin now supports Arabic, since Google has added that to their list of supported translations. This brings the total to 9 languages.
To those not familiar with Wordpress Widgets, you need to have the Widgets plugin installed before you can use my widget.

197 Comments

  1. MichelH

    Nice job. Added link to your Translate Widget in this Codex article:
    http://codex.wordpress.org/Plugins/WordPress_Widgets#Third_Party_Widgets

  2. […] Trevor Creech did a fine and stylish job creating this widget for translating your blog with Google. […]

  3. […] Trevor from Trev’s Travels (a smart kid) made a cool Wordpress Translate Widget that you see displayed on the right side of this blog, it uses Google translate and is the first “widget” I have installed today. To get the widget plugin working with custom templates simply follow the provided instruction in the readme.txt This is great. I will have to put Trev’s Translate on my handful of blogs and welcome the world to join in the conversation. Thank you Trevor! Posted by admin Filed in WP Widgets […]

  4. Nice work, Trevor. Widgets are cool. If Google Translate was faster, I’d put your widget on my site. As it is now, the service is slow as molasses! Not your fault, of course, but still a reason to wait.

  5. That’s fantastic, Trev! Wow, really.

    …and I love that Chinese is an option… ;)

  6. […] I’ve just added a clever widget to my sidebar that enables readers to “translate” Davos Newbies into a variety of languages, courtesy of Google’s automated translation algorithms (the widget was devised by Trevor Creech). For the languages I know reasonably well, Italian and French, it does a slightly comical but minimally serviceable job. I don’t expect there will be enormous demand for the service, at least on Davos Newbies, but it’s enjoyable to explore the still-mythical kingdom of machine translation. […]

  7. fhu

    Very nice.
    But - I’m german, and Google solves only translations like de-en or de-fr.
    I’ve simplified your code for german users (i hope its ok?).
    You can find it here.

    Frank

  8. […] Translate Widget??????????Wordpress Blog???????????Google?????????????????????????????Blog???????????????????????????????????????????????????????????? […]

  9. Wow! Nice.. That’s pretty kewl… ;) :)


    Daniel J. Weber - Cahind Linx 13:47

  10. […] Este translate widget  usa el traductor de Google como motor para traducir el blog completo, al igual que tengo montado yo arriba pero usando google en lugar de wordlingo. […]

  11. No fair, your first plugin and it got better press than anything I’ve done! ;) j/k. Maybe I should look into widgets ;) Haven’t seen them at all yet cause they didn’t seem all that brilliant… just plugins that generate content meant for the sidebar… maybe FreshTags should be reformulated as a widget?

    By the way, did you find it annoying with your new layout or something? FreshTags seems to be bye-bye from your blog just now…

  12. […] Sitiio oficial de translate widget Sitio Oficial Widgets Wordpress via: aNieto2k En: WordPress — Abril 28, 2006 […]

  13. And I just installed AltaVista’s script lol. This is way better because there is no big box and 9 vs 8 flags; Y!’s translator (big box too) has no flags. Don’t they understand that if you don’t read that language, you can’t understand their drop down list? True, flags aren’t language specific but each country does have a main language… so thx. Hopefully it will be easier for me to implement than another certain WP plugin that I never did get the flags to display for.

  14. I placed in my site but i have this error when activate the widget:

    Warning: call_user_func_array(): First argumented is expected to be a valid callback, ‘widget_translate_noframes’ was given in /home/t610yz60/public_html/juanpi/wp-includes/functions.php on line 1279

    Any solution please?

  15. Hey Trev,

    Looks great. Nice job.

    Can I ask you a question? How do I get the flags in a Horizontal position like yours? By defualt, my flags are vertical.

  16. I also didn’t think “widgets” had any value but if people keep making them as useful as Trev’s more people will surely use them. Thank You!

  17. Stahn

    Hi! Nice widget, it works without problems.

    I need a little customization, a (Line Break) between “Translate” and the flags. How can I do it?

  18. yauheni

    hi, is it too much to ask to add the Russian language to the list? i am a newbie in this, but having a Russian translation on my blog will be very very appreciated
    thanks

  19. […] The Translate Widget, by Trevor Creech, is sitting in my sidebar.  It’s an image button, with clickable flags, that translates (using Google Translate) your Web page into the applicable language.  Use the English flag to get back to English.  Try it out! […]

  20. Zac

    My blog is in French and I would like to set the default language as French to get a translation from French to another language.
    Can you help me further.

  21. Wilco

    Hi Trevor,

    It looks like a very good thing to have on my weblog, but I’m a rookie with plugins. I was able to activate it, but how can I add it to my sidebar?

    thanks in advance for your help.

  22. I am master of Techpush:)

    I am pleased to see your comment about changing Translate Widget to meet Chinese blog, I am looking forward to the next version.

  23. Translate shows the flag vertically and not hortizally

  24. Stahn

    You should modify the plugin to work as the Search default widget.

    So the only thing we must do is add a Text widget with the text that we want.

  25. […] For now, I will explain the headline here: This is how Google translates the title of my site– my name is Shawn Rider, yet French Google thinks “rider” should be translated. I love it. Thanks to Trevor Creech, who created the Translate widget for Wordpress. You can click the flags in the sidebar and get this site in your preferred language (well, of the few that are readily translated online, but that’s not Mr. Creech’s fault). […]

  26. […] El blog en varios idiomas. Con lo que nos gustan las banderitas! Translate Widget rockea. […]

  27. Geoff Green

    I also was having problems with the flag images appearing vertically. I solved the problem by adding the following CSS definition:
    #translate img {display: inline;}

  28. Wow, talk about a response!
    Thanks to all of you for the comments, suggestions, and links! My traffic doubled over the past week. Not that I have a lot of traffic, but that’s still awesome. I believe I got back to everyone who needed a response by email. If you still have a question outstanding, let me know.
    Geoff, thanks for the easy CSS fix.

  29. Sam

    Works great and less filling!

    I did get some complaints while auditing my pages about undefined width and height for the flag images, so I went in and added them e.g.;
    echo "” ?>’);

  30. leopardy

    Looks like a cool and useful widget. Have some of the little bugs mentioned above been corrected? Is the downloadable version up-to-date? I downloaded the file but there was no text file, no instructions.

  31. Leopardy,
    There are really no urgent changes needed to the widget, just the CSS styling to make sure the flags are horizontal, and the width/height attributes on the images. All the instructions you should need to install the widget are in the post above. As I mentioned in my latest post, I\’m not going to work on web stuff until July, so I\’ll make those changes, and hopefully some bigger ones then. Some things I hope to implement then:

    • Translation starting from other langauges, not just English
    • Correct conversion of the Wordpress fancy quotes and such
    • Add a readme file to the zip

    Anyone have any other suggestions?

  32. pol

    Hi
    Im spanish, and to use this widget I couldnt change the language to spanish, because the widget tried to translate my text from english (my text is spanish) to english, and it didnt do nothing.

    the solution is that i changed in translate.php this:

    echo "<a title=\"$langname\" style=\"margin-left:1px; margin-right:1px;\" href=\" http://www.google.com/translate?hl=en&ie=UTF8&langpair=en%7C$langcode&u=$url\"><img src=\"$image\" alt=\"$langname\" /></a>";

    to this:


    echo "<a title=\"$langname\" style=\"margin-left:1px; margin-right:1px;\" href=\"http://www.google.com/translate?hl=es&ie=UTF8&langpair=es%7C$langcode&u=$url\ "><img src=\"$image\" alt=\"$langname\" /></a>";

    changing the language coming from and translating from Google. I think it should be explained in a Readme file.

    I also changed
    $langname='English';
    $langcode='en';

    to:
    $langname='Español';
    $langcode='es';

    and
    $languages = Array('Francais' => 'fr', 'Deutsch' => 'de', 'Español' => 'es', 'Italiano' => 'it', 'Portugese' => 'pt', 'Japanese' => 'ja', 'Korean' => 'ko', 'Chinese' => 'zh-CN');
    to:
    $languages = Array('Francais' => 'fr', 'Deutsch' => 'de', 'English' => 'en', 'Italiano' => 'it', 'Portugese' => 'pt', 'Japanese' => 'ja', 'Korean' => 'ko', 'Chinese' => 'zh-CN');

    and then there’s no need to change the .gif flag’s names, you know? i could’nt repair my problem changing the .gifs names

    well i hope this is usefull to you, and explained in future versions. kind regards!

  33. […] Widgets allow you to edit blog sidebars without having to tinker with the code—a wonderful solution for amateurs like me. I organized the layout of both of these sidebars in a matter of minutes using widgets. (This is what the Sidebar Widgets screen looks like.) And thanks to developers like Trevor Creech I’m able to add features like the translate function on the left in a matter of minutes. […]

  34. Thomas

    great widget trevor! works perfectly! is there anyway to have it NOT display the google translating page after clicking on a flag? i’d rather the page stay static and then display the translated page when it’s done. surely someone here can solve this. thanx!

  35. James Choung

    Hi , I’m just a beginner at Wordpress — and I was wondering where you put that command:

    #translate img {display: inline;}

    so that the flags are drawn horizontally?

  36. That’s CSS, so you need to put it in your theme’s CSS file. You can get at this from the Wordpress admin screen, click the presentation tab, then the Theme Editor tab. If you’re not editing style.css, click stylesheet on the right. Then add it to the bottom and click Update File.

  37. Trev, thanks for the speedy reply. I did that, and it didn’t work. Is it because I’m using the Regulus 2.1.3 theme?

  38. Ok, I’ve got it. For the Regulus theme, you need to change what you’re adding to this:
    #translate a {display: inline;}

    That should work.

  39. James Choung

    Hi Trev — thanks! That worked — now the flags are a bit large so that it goes to the second row, but this will do! Thanks again!

  40. James Choung

    Hi trev — thanks again. Yes, now it works perfectly!

  41. […] I have added a really cool translate widget from here. […]

  42. Hi I think this widget is really nice! Is there a way to remove the english flag in the widget? I have one extra flag and it appears in the next row alone. I think this is ugly… You do not have it here.

  43. […] Although it was released in late April, I wanted to remark about Trevor Creech's Translate plugin. This is a nice plugin that adds a simple way for non-english readers to read your site. I noticed some validation complaints concerning a lack of width/height that concerned me because without width/height parameters a page has to wait until an image is loaded to 'format' the rest of the page. I changed the following in wp-content/plugins/translate.php: […]

  44. para que version de wordsprres esta hecho este plugin?

  45. My Translate Widget requires the Widget Plugin, which only runs on Wordpress 2.0+.

  46. Hi

    Your language toolbar is excellent. Please could you do me a big favour??? And add Arabic (Google has an Arabic Beta).

    Mm, I guess the flag should be Saudi Arabia.

    BIG THANKS

  47. Haf

    Thanks for this cool widget, I’ll implement the german version to my site as soon as I find the time to add widget support to my theme.

  48. Christopher, I have added Arabic to the plugin :)
    I’ve updated the whole thing, so you can get it from the same place.
    It’s nice to know that google is updating their translation service.

  49. You are a star. Thank you v v much // Christopher

  50. great plugin, but when i checked my site from a different machine, none of the flags showed…….any suggestions?

  51. Mike,
    That is strange…
    The only thing I can see that’s different on your site is that google analytics is injecting this into the links:

    onclick="javascript:urchinTracker('/outbound/www.google.com');

    I have google analytics running on this site too, but that doesn’t show up for me.
    Maybe try disabling analytics, and see what happens? It’s up to you.

  52. This plugin intrigued me and I thought I’d give it a go. I encountered a pretty major problem though and that is when i click on one of the flags to get my page translated it loads up google translator okay but it doesn’t result in a translated page (just blank). And yes, i know it’s supposed to be pretty slow. Any suggestions as to what the problem might be? I’ve left the widget activated (as of the date this is posted and prolly for a few more days unless I get no response). You can click on my name to visit my blog.

  53. […] Et voici mon deuxième Widget: Translate_fr. Il s’agit d’un Widget pour Wordpress qui permet de traduire une page Web écrite en français vers d’autres langues. L’idée Originale vient de Trevor Creech qui a créer le Widget initial pour les site en anglais uniquement. […]

  54. […] Oh, before I forget, you can get a free WordPress plugin that does the same thing from Trevor Creech - enjoy! […]

  55. Hi, I really like this widget, using it along with babelfish to give readers as many options as possible. I have one question/request though.

    I\’m using the King Text widget (found here) with most of the items in my sidebar so that I have better control over php and html surrounding widgets as well as an easy way to make the menu items collapsible (see the right sidebar on my site http://www.ttancm.com). With most plugins/widgets there is a function call or tag that is placed so that the to determine where the plugin/widget is displayed (with the theme switcher widget for example the code is
    < ?php if (function_exists(\'wp_theme_switcher\')) { ?>
    < ?php wp_theme_switcher(); ?>
    < ?php } ?>
    and so I am usually able to just paste this function call/tag into the king text widget in order to sort of embed other widgets into the king text widget in order to make them collapsible.

    With your widget however I can\’t figure out what I would need to enter into the king text widget to embed this widget or if this is even possible.

  56. […] Trevor has added Arabic to his Translator Widget. […]

  57. […] Ho reso il plugin di Travor, Translate Widget nella versione italiana: in quella originale cliccando sulla bandiera italiana, la pagina veniva tradotta da inglese in italiano, mentre cliccando su quella inglese non avveniva affatto una traduzione. Cosa ragionevole se gli articoli sono in inglese (lingua nativa di Trevor, appunto), ma cosa che rende il plugin inutile per gli “scrittori” in italiano. […]

  58. Hi Trevor! Just wanted to drop you a note to let you know your widget is perfection! Installed with no problems the first time and works like a charm. Thanks for sharing your hard work!

  59. Looks very nice. Now if google only would translate to or from dutch :(

  60. Great plugin Trev! Using it on my site and works like a charm!

    I do have one quick question for you though, is it at all possible to center the flags?
    They’re currently left aligned in the widget, how would I go about making them centered?

    Thanks!
    Parm

  61. great plugin! Thnk you very much. I installed it and it works flawless.

    Is there a posibility you can make a standard plugin instead of a widget?

  62. Ray

    That’s exactly what I am looking for. :-D

  63. Just to echo what ttancm wrote above. I never really got widgets to do what I want them to; is there a non-widget way / call to integrate it? Cos apart from relying in widgets (which still doesn’t work universally), it looks excellent!

  64. Thanks for the great widget. Works great here at http://vorpal.us

    The only bug I see is that the translated page can’t find the flags.

  65. […] Translate (Add translate widget on your sidebar) Bookmark to:           […]

  66. […] Home site adds little flags to your sidebar, which will take you to a translation of the current blog page. It uses google translate, but removes the frame, so it looks quite nice! Once you’re in one language, you can browse around the blog, and everything stays translated. You can just click on the English flag to get back to the original language. […]

  67. Nice!

  68. […] Thanks to the Translate widget by Trevor Creech, you can read this blog in more languages than ever (and it doesn’t matter it’s a new blog and ‘than ever’ referes to like 2 hours time ). To get back to English version, just click on UK flag. […]

  69. Jef

    Trev:
    I was wondering if you could go through the thread and answer a few of the questions within it. There were a few questions that you said you answered via email, but others are probably coming looking for the same answers (i.e. I want to know how to but a break after the title so the flags go below it). It would be good if you could put an FAQ in the Original Post here.

    Great widget by the way!

  70. Really great; simple, elegant, functional, and worth the wait for google to do it’s thing…Seriously…great , great job!

  71. Nice widget Trevor.

    Now my girlfriend who is learning english can more or less understand my blog :-)

    Cheers

    Carlos

  72. Wonderful plugin, I love it, great job!

  73. I use the Andreas-09 2.1 theme and the flag pictures are not shown, when I include the widget and activate it. The flag folder and its contents are in the right place (/plugin/widget folder), but it still doesn’t work. Do I have to set any attributes to the folders? I host with dreamhost. What can I do? Thanks! ;-)

  74. Olivier

    Nice work Trev!

    Is there a bug on line 58, where we can read “.gif.png” ?
    $image = get_settings(’siteurl’).”/wp-includes/images/flags/flag_$langcode.gif.png”;

  75. Hi Trevor, this plugin is very interesting… no words…
    But, I got a problem… the default idiom (of my blog) is spanish, for this reason, the plugin don’t translate the page in other idioms.
    ¿What I do?
    Thanks!

  76. […] Translate_me is an evolution of the Translate_fr Widget. Initialy it was designed by Trevor Creech to translate a web page from english to other languages. I, then, adapted it to French with Translate_fr. […]

  77. […] Hace un tiempo, revisando las estadisticas, encontré que muchos usuarios usaban la herramienta de traducción de Google para leer los artículos publicados en este blog. Decidí instalar un plugin para automatizar esta tarea y únicamente encontré un plugin y un widget sin costo. Para que funcione el widget hay que instalar unos widget-plugins, así que decir probar el plugin, encontrando que éste solo traducía del inglés a otros idiomas. Lo he modificado para conseguir que traduzca del español a otros idiomas, usando los servicios proporcionados por Altavista Babelfish y Worldlingo. Actualmente funciona con 5 idiomas: inglés, alemán, francés, italiano y ruso. […]

  78. […] Translate Widget […]

  79. Simply Brilliant!!!

  80. Tim

    This is a great and stylish plugin. I’ve been amazed looking at the site stats just how many people are making use of it.

  81. Well done Trev! great little widget and easy to use!

    Clickionaire

    http://www.Clickionaire.com

  82. Trev. Thank you so much! I have been in much need of a good translate widget for my blog. Have downloaded and will add it some time soon. Look forward to many more of your tips!

    Holiday Cheers!

  83. […] Translate Widget ?wietnie t?umaczy nasze posty na francuski czy angielski. […]

  84. […] Translate - Author: Trevor Creech. Adds a sidebar widget to display languages into which you can translate your blog using Google translate. Currently Google supports 11 languages and so does your blog […]

  85. Implemented your widget. Worked like a charm! http://www.joshpglane.com

  86. Excellent plugin - Its very use ful for my unix blog at http://unix.vc/unixblog. thanks for your plugin and time

    -Ravi

  87. I’d clicked on your translator… but it’s not work!!!

  88. lu

    love the idea of this plugin, it will be useful. have it installed and activated, but i don’t want it to replace everything i already have in my sidebar, i just want to add it to the sidebar. is there a way to drag and drop it into the sidebar without having my other info over ridden? i suppose i’m asking if there is a css code for it so i can add it into the sidebar under my themes.

  89. AHP

    Nice Job!

  90. Hi, we have a free online translation tool which supports 16 languages: English, French, German, Spanish, Italian, Portuguese, Russian, Dutch, Polish, Ukrainian, Japanese,
    Chinese, Korean, Hebrew, Arabic, Farsi. You can see it at http://www.gts-translation.com/freetranslation.asp. We also have code which you can use to translate your website or blog into 12 languages. See it at http://www.gts-
    translation.com/webtranslation.asp.

  91. the download link doesn’t seem to be working, I would love to have this plugin widget..

    Thanks
    Richard

  92. […] Il s’agit d’un Widget pour Wordpress qui permet de traduire une page Web écrite en français vers d’autres langues. L’idée Originale vient de Trevor Creech qui a créer le Widget initial pour les site en anglais uniquement. […]

  93. […] Posted by zetrotinet at November 13th, 2006 Translate_me is an evolution of the Translate_fr Widget. Initialy it was designed by Trevor Creech to translate a Wordpress page from english to some other languages. I, then, decided to adapt it to French with Translate_fr since my pages are mainly writte in french. Today, the release of Translate_me comes from the need for other users around the world. It now supports almost all languages that are made available on Babelfish or Google Translate. […]

  94. this plugin is very cool, but unfortunately my blog doesn’t support widgets without changing the theme, but I really want it. Decisions Decisions.

  95. Matt

    How do I get this to work with subdomains? Everything works great except the url output is http://www.domain when it should be http://sub.domain.

    Thank you for your great script.

  96. […] Translate deTrevor Creech permet de traduire le blog en d'autres langues, mais la traduction est absolument horrible !   « SolidWorks Macro to resize the model view for screen captures | Test Politique » […]

  97. Yotsume

    Hi, I am trying your translation widget on my site. I have a problem. My site is for registered members to view only. So I login and pick a new language from your widget and it sends me to a login screen again in a new language. Once I log back in the page is back to english. Any help would be great thanks!

  98. Yotsume,
    This plugin will not work for your site, because it basically sends the URL of your page to Google. Google looks up that page, and since they are not registered at your site, they get the login page. There are a couple of other translate plugins out there for Wordpress which might work better for you.

  99. I just installed this yesterday. It was working perfectly. I upgraded to Wordpress 2.1 today and it isn’t working, now. Is this a known issue? That is being upgraded.

    I think I love the widget though. I was going to post that here in a few days.

    Thanks so much for your time. It must be hard being so famous while still going to school.

  100. Hi Jennifer,
    My blog will hopefully be updated to WP 2.1 in the next few days. I’ll look into the issue then.

    Wow, this post now has 100 comments!

  101. […] am proud to announce the arrival of my second wordpress plugin! My first was a translate widget, which was very popular, but this one is of a different family. As users of […]

  102. Polishing up my blog…

    I am on a roll! Today is WP Mod Craze day. It’s about time, because I’ve been planning to customize a whole lot of things on this site for a long time now. Here’s what I’ve done to my blog so far today:

    WordPress 2.1: I especia…

  103. Great widget. Thanks!

  104. […] Podfeet.com translated into 9 languages using the Google Translate Wordpress widget from trevorcreech.com. Parallels takes it up a notch with release candidate 3120 with improvements in coherence and added […]

  105. Dude, simply an awesome job :D

    Keep up your great plugins

  106. How can I implement this on my blog that is hosted on wordpress.com site?

  107. […] got the plugin here. It does work for Wordpress […]

  108. […] have just finished a major update to my Translate Widget. This widget plops into you sidebar, using the Wordpress Widgets plugin. To quote my younger self: […]

  109. Thank you for a splendid work.
    I write Japanese news in blog.
    This plug in translates a Japanese sentence into English.
    And I send information to the world.
    Thank you once again

  110. […] Creech explains you how to use a nice looking translate widget for your blog. January 12th 2007 Posted to Blogging Business, How […]

  111. Thank you Trevor :) Its brilliant!

  112. Hi Trevor

    Thanks for the translate widget. I discovered that about a quarter of the hits on Vorpal.us were from outside the US, and figured that I should have a translation on the site.

    Nice Job!

    Ted Schober (aka marcus)

  113. […] Translate: […]

  114. marc

    Hi Trevor, Thanks for the cool widget.
    On my blog (new install of 2.1) for some reason, your widget puts each flag on its own line in the sidebar. I’d like to have them grouped like on your site. Is this possible? Also, there is a think black border around each flag, I don’t know what is causing this.

    FYI: I am trying to use the 3 column Vertigo Electried theme
    http://www.briangardner.com/themes/vertigo-electrified-wordpress-theme.htm

    I notice that this theme also has trouble displaying the del.iou.us plugin (nothing appears). A few other quarky things happen such as links appear automatically on seperate lines if I just type in a <a href rel=”nofollow”>type of code in a widget text box. Is it the theme that has problems with your code? Any ideas?

    Thanks again for your time and effort. - marc

  115. Hi Trevor,
    Do you know if is possible to add portuguese language to the plugin list?
    Your plugin looks great…
    Thanks for you effort!
    Thanks for sharing!

  116. Hi Mirella,
    Portuguese is already in the list.

  117. Do you reckon we can get this for wordpress.com? It would be a great widget i think!

  118. Hi Christos,
    You’d have to take that up with the developers of wordpress.com.

  119. […] Traducir Widget 2.0 : Es tracta d’un plugin per a Wordpress que jo no he provat perquè no és això el que pretenc en aquest bloc, però l’he vist en altres blocs i sembla que va prou bé. La mala notícia és que no he vist que inclogui el català. […]

  120. Hey there, i’ve never used a widget or word press before however i do want to install this to a website that is not a blog, or worpress thing. just a standard html webiste. will I be able to?

    please let me know asap as i’d love to use this.

  121. […] be taken to a Google translation of my blog. Cool or wot?! This translation widget is courtesy of Trev’s Travels, a blog of a talented 18 year old. I love that instead of asking you to insert the webpage address […]

  122. […] This translation widget is courtesy of Trev’s Travels. […]

  123. Thanks Trev,

    I am going to have a look at how I can integrate this into my travel site. Should be just what I have been looking for.

    Cheers!

  124. […] Translate 1.0 By Trevor Creech. Adds a sidebar widget to display languages into which you can translate your […]

  125. Max

    Its installed and quite nice to have translation for my readers. The only problem is that each flag is surrounded by a colored border (red linking color) and I was wondering if there way I could fix this and have it look normal. Great plugin, appreciate your good work.

  126. Max

    Never mind Trev - I moved the widget down a bit and the red borders vamoosed - thanks again for the solid work!

  127. This is what I am looking for. Thanks Trev. I will give it a try.

  128. […] El Hack original es de Trevorcreech […]

  129. […] Translate: This Wordpress plugin widget allows users to read this site in multiple languages by using Google’s software translation tool. […]

  130. Hi,

    I would like to know if I can put it on Blogger.com ??

    Thanks

  131. […] For Different Languages I have gone ahead and installed Translate Widget created by the talented Trevor Creech. Readers can now select a different language to read this […]

  132. Ben

    I installed the Widget, and when I hover over a flag, it lists the URL of the site as: http://googletranslateinfo=http://sitename/blogurl/blogurl

    instead of: http://googletranslateinfo=http://sitename/blogurl

    It double posts the blogurl and that obviously returns an invalid URL. Thanks in advance!

  133. Ben

    I changed lines 22 and 33 for my specific site from:

    $full_url = ‘http://www.google.com/translate?hl=’.$orig_lang.’&ie=UTF8&langpair=’.$orig_lang.’%7C’.$langcode.’&u=’.$url;

    and replaced the “‘&u=’.$url;” with “‘&u=http://nameofmyblogsite.com/’.$url;”

    It’s a hack and slash, but it works for the moment. Thanks for the cool translation tool.

  134. Hi Trev,

    This is an awsome plug, and makes my site look great! Thanks for creating and sharing this!…

    I was wondering ,is there a line of code I can use to call the translation manually as opposed to the widget? only I would like to put the flags underneath my search box in the header, so I would need to put the code in the header, I just dont know how to call the function or what code to use?

    Many Thanks

    Martin

  135. Wordpress 2.2 breaks your plugin and widget.

  136. Great.
    I’ll look into it.
    Thanks for letting me know :)

  137. about the widget not working with wordpress2.2: my problem seems to be that Sidebar Widgets 1.2.1.20070210b causes a fatal error. therefore i can’t use your awesome widget. i hope the answer is easy … i love your widget!

  138. Apparently 2.2 comes with widgets as part of the core now, so you shouldn’t need to have them installed.

  139. Thanks for the bup reports, guys!
    The widget now works with Wordpress 2.2.

  140. oops, found another bug Trevor. It seems google change something with their translate page code. if you click on any flag it goes to an error page.

  141. Actually, that would be me botching up a search and replace in the plugin! Fixed now.
    Thanks again.

  142. If I replace the small flags with bigger flags (like 30×20) will it break the plug-in? Just wanted to check before I messed anything up. Thanks much & I *love* this plug-in. Great work!

  143. Mandy,
    That should work just fine. Just replace the images in the flags folder, making sure to name them the same as the old ones.

  144. First off, thanks for the great translation widget, Trevor!

    I only recently downloaded the widget and noticed a slight problem.

    When the code calls google:

    http://www.google.com/translate?hl=‘.$orig_lang.’&ie=UTF8&langpair=’.$orig_lang.’%7C’.$langcode.’&u=’.$url; widget_trc_translate_print_flag($langcode,$full_url,$en_flag);

    … it refers to a redundant url, causing a “error 404″.

    For example, and for the sake of simplicity: on my site, if I wanted to translate english-to-english, the widget calls: http://johnddugan.com/document/document/, instead of just http://johnddugan.com/document/ .

    I’m sure this is an easy fix, but I am not versed in .php … any suggestions on how to correct this?

    I, also noticed this error is occurring on your home-page as well.

    Thanks for your time,

    _john

  145. Wow, great plugin! You wouldn’t believe how long it took me to find a translation plugin/widget that was 2.2 compatible.

    Good Work!

  146. Ohad

    I have the same problem as Ben and John have, but Ben’s solution didn’t work for me.

  147. […] Translate Widget Das Plugin fügt kleine Länderflaggen in den Blog ein, über diese kann der Besucher die Homepage mit einen einfachen Klick in seine Sprache übersetzen lassen. […]

  148. Trevor,

    I saw your translate widget on someone’s blog and loved it. I was wondering if there is a way to get it to work with Blogger.com?

  149. CAL

    Trevor,

    Your plugin worked great with WordPress 2.2 but after I upgraded to version 2.2.1 today, it triggers a fatal error when I try to activate the Translate plugin.

  150. blah

    Yep, I get an error too. The plugin doesn’t work with 2.2

  151. Hey Trevor,

    GREAT work!! I have one small issue..under the translate bar I am getting “–>” showing up underneath. Any ideas why..? You can view it at http://www.palmettoculebra.com/

    Thanks,

  152. thanks a lot :D

  153. hi trevor ,..

    i have mi blog in spanish ,… so when i put the plugin in spanish, only two flags show me ,.. but if i put in english,.. their load the another flags ,…. can i put in spanish with all the flags?

    look http://www.gonzas.net

    great widget .,.,.,
    bye

  154. Hi Gonzalo,
    That’s because Google only supports translating from Spanish to English. So, that’s why only the English flag is showing up.

  155. ok , thks ,….i see your pic in my bloglog ,… chau!!

  156. rd

    hi trevor,

    i was using your very cool widget until it broke with the update to WP 2.2 :-(

    are you planning to upgrade it for compatibility with 2.2, or, is there any way to make it work with 2.2 ? i don’t know PHP, so I’d greatly appreciate any info.

    thanks,

    rd

  157. WOWzer this is what I was looking for.

    Thanks a lot for taking the time and coding such a wonderful plugin.

  158. michael

    Any plans on making this compatible with 2.2?

  159. ty for the translation widget.

  160. […] what you write in another language)Here is the information on this plugin. Plugin Name: Translate Plugin URI: Description: Adds a sidebar widget to display languages into which you can translate your blog. […]

  161. Hey Trev,
    Very great plugin, can you by any chance add “Traditional Chinese” because a lot of the Asian communities use that instead of Simplified Chinese.

  162. Hola,
    I have updated the plugin. I fixed the double url bug, and it should work fine. Get it from the same download location. I’ll be writing a post announcing the new version soon.

  163. thanks for the update

  164. Hello Trevor

    I just updated to wordpress 2.2, downloaded your plugin all went well, Now when I go to my site all I see is the word translate but no pictures of the flags are there, what could be my problem? any help would be appreciate Thanks.

  165. TravisBest

    Hello Trevor,

    Very nice widget! Unfortunately It’s not working correctly in my wordpress 2.2.1.

    Two things.
    One: The downloaded zip files only contains blank.gif and flags.png. I don’t see a flags folder ?
    Two: How should I install this? Should the files go under “widgets” folder or the “plugins” folder ?

    Please help!

    Thanks!

  166. Miqu

    I have the same problem as clifton

  167. jg

    How/where can I force a newline after the Title? I’m sure it’s very basic, I was just hoping you could point me to the necessary line. On your site you have the Title, a horizontal dotted line then the flags. On mine it has the TitleFlagFlagFlag with no break or BR tag.

    Very nicely done, btw. Thank you for the updates. :)

  168. […] Visit […]

  169. […] night, I found the coolest widget and inserted in the right sidebar. It’s called “Translate this Site.” There are […]

  170. Dear Brother,

    I installed your translate plug-in and Flags are not displaying on the sidebar. Please let me know the solution if you have time. Thanks a lot.

    Union

  171. Tim

    I have the same Problem: No flags! (WP 2.2.1)
    I hope you have no big problem with that.
    I look back later.