In the interest of full disclosure, my Spaces compatriot Jeffrey brought it to my attention that there is indeed a viable, Spaces-compatible Windows Live Translator gadget available in the flagging WL Gallery. You’re more than welcome to use it instead, as it now redirects to Bing Translator and does practcally the same thing as my solution. And I thought I was being all clever.
Based on an on-going discussion in one of my Windows Live Groups, I decided to write a quick tutorial to show just how easy it is to create a simple translator for your Windows Live Space, powered by Bing Translator.
As with anything related to Spaces, there are a bazillion different ways to accomplish this task, so for the purposes of our tutorial, I elected to go with a custom list, because it’s easy to manage, requires minimal coding, and can easily be placed almost anywhere on your space’s main page.
- Click Lists > Add a list. Choose a custom list, enter a title, and add a description.
- Click Save. The new list is created. Now it’s time to add your language options. Just add each language on a separate line. Since the visitors who’ll use this tool will be non-English readers, it’s a good idea to reference each language in it’s native name. If you’re unsure how to reference the name of the language or use special characters, use a service like Bing Translator, and simply paste the results into your list.
- Click Next. Your custom list is displayed. Of course, the links don’t actually do anything yet.
- Now it’s time to wire up each alternate language in your list. In a separate browser tab or window, navigate to http://www.microsofttranslator.com. Set the “To” language to Spanish and enter your space’s URL.
- Click Translate. Your page is translated, and the results are displayed. We’re really more interested in the URL than in the results. Select the URL in the address bar of the browser and copy it to the clipboard.
Here’s the URL I got from Bing Translator:
- Modify the URL as shown below. You can do this in Notepad, any text editor, or directly in your custom list (although, the editing space is a bit cramped):
Notice the new argument, &lp=en_es, which has been inserted into the query string. Here’s the breakdown:
- The ampersand (&) is used to indicate the start of a new argument.
- The value lp stands for language pair.
- The value en_es stands for English (en) to Spanish (Español, or es). The language code is typically the first two letters of the language’s native name (i.e., French is fr, German is de).
- Make sure the argument precedes the URL of your space, otherwise it won’t work properly.
- Back to our custom list. Click Edit to modify the Español list item.
- Paste the modified Bing Translator URL from step 6 into the Web address field. To help the translator list module fit into a tight space on the space’s main page, we’ll avoid adding a description.
- Click Save. You now have a functional Spanish translator for your space!
- Repeat the process for other languages. Make sure to modify the lp argument for each target language accordingly.
- When you’re finished, return to your space’s main page. The custom list module is added to the page automatically.
- To better fit the translator into your page, you may elect to move the module to a narrow column and possibly suppress the title.
That’s it! Now your international visitors will have a much easier time navigating in your space and reading your blog posts.
Like I said, there are several ways to present your translator links. For extra credit, you can also try using a custom HTML module instead of a list. The principle is the same, but a custom HTML module allows you to spice up the interface a little bit by adding image links (such as these little royalty-free flag icons I got courtesy of FamFamFam). Perhaps I’ll write a follow-up soon about how to accomplish that trick.
That’s all for now. Happy translating!
16 Replies to “Whatchoo talkin’ ‘bout?”
I like custom lists. This is a wicked deviation from what I use them for. And yeah – too right, I’d love to know how to get them icons working. That info would be well nice.Thumbs up, Greg.
Great Clubhouse post, Greg. I got the lucky first vote on it. X
This is nice and good, but 1200 steps later, and already have gadgets, … Just kidding! Nice post buddy.
@ Jeff – Seriously? Is there a "Spaces-compatible" gadget that provides translation of the page? If so, then boy do I feel like a putz.
LOL! Don’t feel like a putz, Greg! I used to have a translator gadget on my Space. Might still be there… Anyway, I think there are some, and I applied for a Bing one a while back, but it wouldn’t work on Spaces as it required scripting. But I was just joshing ya about the Book making comment you left a while back! LOL!
Wow. Don’t know how I missed that. I did notice that it’s classified under Live.com > Web Gadgets instead of under Spaces. That’s probably why I overlooked it. I wonder what you’re supposed to do with it on your Live.com page? Anyway, I don’t feel too bad, as it fits awkwardly into a narrow column (Go button wraps) and requires more space than the one I finally made with the little flag graphics. So, it doesn’t translate RSS feed modules, eh? Wonder why?
I wish it did or would ignore them. Does your method do that? If so, I’ll switch in a heartbeat, but when I try a translate just using Bing directly, it won’t work. Any ideas? I have considered putting the tool or translate options directly on posts, but that’s a lot of work.
Most gadgets can add to Live, Spaces or the soon to be defunct events. Your method automates the link to Bing Translate, right? So, I am wondering if it’ll work on Spaces with feeds. Do you have any feeds? I see lists. Not sure…
Nope, but I can easily add an RSS module to test it out…standby.
Awesome! Thx! :D
Both links are the same now. Go figure! "lab" was "labs". Oh well – free flags for all!
I’m crafty like that. It’s been the busiest Space-hackin’ day I’ve had in a long while. I partially take back all the cage rattling I did in LSB about WL Spaces needing to be put out of its misery. It just needs a good overhaul, but I think it’s still pretty cool down deep inside.
BTW, Google translator does some weird stuff with random user tile icons near the top of the translated page, but I like the fact it doesn’t overwhelm the page with the Google Translate banner. Bing Translators banner is way too large IMHO.
Hey, Greg, Don’t worry. You WERE being all clever. There’s been other times in history that two people thought up the same thing. Is does lessen your craftiness that somebody else thought it up first. X (nice disclaimer)
Hi Greg and to all,Thank you a lot for this very very very USEFUL post… Have a Great and Wonderful Friendship Week everyone ,Bye-Bye and see you!!!…