This was, surprisingly, an easier task than I had anticipated. If you will examine the sidebar, you will observe my multi-lingual translator, courtesy of Google Translator. It provides on the fly translation of the currently displayed web page, and whatever web pages that are subsequently loaded from following any links. It provides translation from English, to any of(as of 12/01/2009) 54 different languages. You can see the enumeration of the available languages below, in the code, or you can move the mouse over each flag, and check out the popup tags.
The translator applet code is surprisingly compact, and expandable with additional languages. It's well defined too - "<form ... > ... </form>" is the entire package. Stretch the browser window widely enough, so you can see all of the text, please. And be very careful of anygratuitous line breaks.
Get Code Here
This entry requires just 3 unique elements.
- When you hover the mouse over the flag, you see
العربية / Arabic
- The definition of English to Arabic translation is
en|ar
- The picture of the Arabic flag, resized to 30px x 20px, in 1600 pixels resolution, is
http://photos1.blogger.com/x/blogger2/
6075/564571464515337/1600/z/358406/gse_multipart12399.png
Each of the other language entries, similarly, require another corresponding 3 unique elements. The array of flags are universal language symbols, that are obvious to the inhabitants of the various countries, so they need no captions.
If you want your blog to reach the world, I can't think of an easier way to encourage that to happen.
- Add a new HTML / JavaScript gadget.
- Highlight, Copy, then Paste the code ("<form ... > ... </form>"), exactly as presented above, directly into the Content window in the new HTML / JavaScript gadget. Do not copy anything into Notepad, or any other word processor that might have trouble with the UTF-8 character set. The code above includes UTF-8 characters, in the Asian language labels - if you try to save anything as ANSI, you will get a warning, and possible code corruption.
- Make one simple change - correct the blog URL, to identify your blog (in this example, "myblog.blogspot.com").
<noscript><input value="http://cumulus.nitecruzr.net/" name="u" type="hidden"/></noscript>
change to<noscript><input value="http://myblog.blogspot.com/" name="u" type="hidden"/></noscript>
- Save.
- Test, and admire, your new world ability.
It took me several hours to write (and rewrite) this. It took me 10 minutes to set up the gadget on this blog, and 5 minutes to add this to PChuck's Network.
Having said all of that, I will note that je parle un peu de francais, and yo hablo un poco de espanol. And briefly examining (5 minutes of each) various translated pages in those two languages, I can note what I will discretely call "oddities". Both PChuck's Network and The Real Blogger Status are techie blogs, and I will bet quite heavily that not all technical terms that I use will be properly translated. But this is a start.
And next, I will note that the setup described above translates from English into other languages. If your blog is written in, let's say, French, you'll want Cumulus In Your Language. Additional languages are in progress.
For a more detailed discussion about this exciting blog accessory, see Roberto's Report:Language Translator Set-up.
For the official Google Translated Language Pairs list, see Google Translate FAQ: Language Pairs, and for a description of the language codes, see WikiPedia: ISO 639-1. Be advised that my applet above won't always be 100% up to date; but if you spot a new language in the Google list, that isn't in my applet, and let me know, I'll do my best to add it.
0 comments:
Post a Comment