Story: This morning I wanted to send some Chinese SMS msgs from my phone, because today was the Lunar New Year. However, I couldn’t find a way to give me easy translated strings… I searched a bit on the Internet; there were some S60 WRTs already, but none seemed to let me cut and paste the results… I was suprised no one (at least I couldn’t find) had created a Google Translate version for S60. So I had done the the engineer’s way, write it myself; here I go… I wrote the whole thing in less then 20 min. Believe me, it took more time to upload the widget to MOSH, create the preview pictures, and write this post to tell you about it.
Comments and suggestions are welcome. If there are updates, I will post the links in this post.
Some tips:
1) If you interested in reading more about Google AJAX Lanaguage API, here is the link: http://code.google.com/apis/ajaxlanguage/documentation/#Examples
2) If your favorite language(s), are not there you can change the code your self. Go into the widget index.html and change this section
<select id=”tlang”>
<option value=”zh-TW”>Chinese Trad</option>
<option value=”zh-CN”>Chinese Simpl</option>
<option value=”en”>English</option>
<option value=”fi”>Finish</option>
<option value=”fr”>French</option>
<option value=”de”>German</option>
<option value=”it”>Italian</option>
<option value=”ko”>Korean</option>
<option value=”pt”>Portuguese</option>
<option value=”es”>Spanish</option>
</select><br/>
(there are other resources about S60 widget development, for example here, so I am not going into that here.)
That is really, now here is the link in MOSH to download and install the widget:
(MOSH download) Here is the first (0.1) version: GoogleTranslator0.1.wgz
Update 01: I have put the index.html on my web, you can use any browser to use this web app (S40 and others):
http://camelot.net/stage/gtranslator/
Update 02, 2009.02.01:
Symbian Freak site has reported this widget, thanks guys! link
Update 03, 2009.02.25:
This widget has made top 10 freeware for Samsung over at AllAboutSymbian.com, thanks Steve! link
Update 04, 2009.04.06:
Since MOSH will be closing shortly, I have moved the widget file to this site. The link above is updated. Unforunately, I will not have the capability to trakc how many people have downloaded the widget…
My last count of user download from MOSH is… 

Update 05: 2009.04.18
If you are a developer and enjoy reading this, you might also be interested in my new article on Turn my S60 WRT into an iPhone app: http://blogs.forum.nokia.com/blog/forum-nokia-web-talks/2009/04/19/turn-my-s60-wrt-widget-to-an-iphone-app
Update 06: 2009.08.28
I suddenly decided to make a demo video… for no reason… kinda fun
- Wai Seto
Fabio
January 27, 2009
Compliments!Would it be possibile to have a port to Java Me, for the people who doesn’t have WRT on their phones?
W. Seto
January 27, 2009
I will look into Java ME app. I have move the html to my web server too, so you can use that for now from your normal phone browser.URL: http://camelot.net/stage/gtranslator/(also updated in the post)
Fabio
January 27, 2009
Great!
If you happen to have a working jave ME, that’d be totally great
Meanwhile, thanks for the html port
VIP
January 27, 2009
Great idea/widget
Can you add “Copy to Clipboard” button?Thanks in Advance
RANKAWATSURESH
January 29, 2009
great job ” my dear
Felipe J. Zárate M.
February 3, 2009
Esta aplicación está realmente muy útil e interesante, la he probado en mi N95 y funciona a la perfección. Lo felicito desde Costa Rica.De verdad muchísimas gracias!
W. Seto
February 4, 2009
@VIP, I will find some time to check that out. I have read about window.clipboarddata function in javascript, but not sure if S60 WRT support it. It is a good suggestion!@Felipe, LOL I actually had to use my app to know what your comment was. :p Thanks!
W. Seto
February 12, 2009
Just want to report on the Clipboarddata function. S60 WRT does not seem to support this. Therefore it will be difficult to implement the copy button. If anyone has a suggestion on doing this, please let me know.
mehrdad
April 20, 2009
hi, thanks for your efforts writing this widget, yet nothing happens when I click on GO on my Nokia E90 !!! What should I do?
W. Seto
April 21, 2009
@mehrdad Interesting… would you do me a favor and enter this URL, http://camelot.net/stage/gtranslator/, in your browser? This page has the same code as the widget. You can check this url with Firefox, IE, or Safari also. See, if the browser in your E90 has the same behavior. I cannot offer you more then saying this may be a bug in the browser. Cheers!
mehrdad
April 22, 2009
hi again and thanks for your attention:-) i tried the link and i could translate a text once but after testing the widget again (which failed) the translator on the browser also disactivated!So now both the widget and the link have the same problem: nothing happens after clicking on GO!!!
mehrdad
April 23, 2009
Update: I tried the URL in Camelot again with all my browsers in E90:Native browser which is the most complete has no response to the GO command. The same is for my OPERA.Fortunately the firefox brwoser does the job but for some reasons I see double identical texts in input and out put boxes!!!
W. Seto
May 2, 2009
@mehrdad sorry for getting back so late. I am not sure what is happening to your E90. I have tried N95, iPhone, and 5800 XpressMusic. They all work fine…BTW, you have firefox for E90? That’s news to me.
Un
May 19, 2009
Hi, great little widget. Can you please post more details into how the languages menu can be customized. I am not that familiar with the WRT or the widget structure but once I find the HTML to edit I can do that. Please tell us where to look for it.Thanks again!
Un
May 19, 2009
Hi again,I have managed to read up on widgets and realized they are basically a ZIP archive. I have now modified the widget to display all google languages, not just a subset.Thank you !
Un
May 20, 2009
I have made my own version based on your original idea and google’s demo code.I named it GoogleTrans2, so that it is not mistaken for your version.My features:1. full language list in source and destination dropdowns2. support for autodetection of input language3. confirmation of source/destination languages (including detected language)4. clean interface sized for the 5800XM screenIt can be downloaded here: http://www.rmx.ro/GoogleTrans2.wgzIt can be tested here:http://www.rmx.ro/GT.htmlI plan on trying to make it scale to any screen but I didn’t have the time to test that code yet.I would also like to add that I have virtually no JavaScript or AJAX experience whatsoever.
W. Seto
May 20, 2009
@Un awesome!
S@m
June 4, 2011
well plxx tell me how to add ur own language???
W
June 8, 2011
If you download the .wgz file, you can unzip it. Then you will find index.html there. The languages are listed in the select elements. To find the enum of the language you are looking, you can check out this page: http://code.google.com/apis/language/translate/v1/getting_started.html
Lee
June 7, 2011
The program sucks. I put in Czech text to translate to English and get Czech text back. I’ll carry a dictionary
W
June 8, 2011
Sorry to hear that. Would you mind providing your text here as a comment, so I can check it out.
W
June 8, 2011
You can check out the Google API output of our text with the Google Code Playground here: http://code.google.com/apis/ajax/playground/#translate
W
June 8, 2011
I have added the same translator code online: http://stage.camelot.net/gtranslator/
When I enter “Když mne stará matka zpívat”
I got “My Mother Taught Me singing”
Chinese works as well “我母親教我唱歌”
If for some reason the program still fails, you can use your browser in you phone and enter the URL above. Same thing really