(Above is public photo taken by user "jciv" at flickr.com http://flickr.com/photos/jciv/)
This weblog is about web technologies and news. Welcome to exchange your thoughts about the web. I am hoping to invite some guest and partner writers for this site. Therefore you may see multiple writers blogging here.
wmseto | 27 January, 2009 00:38
First happy (lunar) new year!
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 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 or my personal blog here.
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="ja">Japanese</option>
<option value="ko">Korean</option>
<option value="pt">Portuguese</option>
<option value="es">Spanish</option>
</select><br/>
(there are other resources about widget development, for example here, so I am not going into that here.)
That is really, now here is the link in to download and install the widget:
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 track 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
W. Seto, Web API |
Next |
Previous |
Comments (18) |
Trackbacks (0)
wmseto | 27/01/2009, 20:34
@fparri, thanks for your comments. It should not be hard to do the same on Java ME. There is actually Java sample in here; http://code.google.com/apis/ajaxsearch/documentation/index.html#fonje_snippets It just the matter of someone (or me) to make time to do it. :) I will try...
In the mean time, I have put the index.html on my web:
http://camelot.net/stage/gtranslator/index.html
It should work too, I don't have a S40 phone to test this, S60 browser and Firefox are working though.
fparri | 29/01/2009, 11:03
Cool, pity I think Java ME doesn't support JSON natively. But I found this:
https://meapplicationdevelopers.dev.java.net/mobileajax.html
Do you think a java me port could be feasible? :)
fparri | 01/02/2009, 18:58
I tried and make a php version of your index.html, so even people with other browser supporting html will be able to use google translate ;)
Thanks again for the info and the links ;)
wmseto | 01/02/2009, 21:25
@fparri thanks! Is your php change online some where? Please post the link if so! :)
bugmenup | 04/02/2009, 02:09
Great job wmseto, tnx :)
Btw, can you add "Copy to clipboard" button?
Thanks in Advance
wmseto | 04/02/2009, 20:03
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!
wmseto | 12/02/2009, 21:18
Just want to report back here, clipboarddata function is not supported in S60 WRT. Therefore the "copy" button cannot be implemented. If anyone has good suggestion on how to do this, please let me know.
korsun14 | 22/02/2009, 14:24
"I was suprised no one (at least I couldn't find) had created a Google Translate version for S60."
i see nothing surprising in it, s60 is commercial...
"So I had done the engineer's way, write it myself"
great think, thanks! real enthusiast))
Sir Pulse | 02/04/2009, 09:07
Great use of Google API!
P.S. window.clipboarddata works only in Internet Explorer on Windows Mobile system :)
Lili_22 | 11/08/2009, 05:58
Cool.Realy good idea! I would not think about it
f000h | 18/08/2009, 16:45
Hi! I often visit the Chinese forums. And I have a problem. When using the "Google-Translator" instead of hieroglyphs appear on the screen squares. How to make localize the interface of the widget? I need hieroglyphs and not squares in the widget. Help me. How to it make.
wmseto | 18/08/2009, 20:08
I think that might have to do with some encoding or fonts limitation of the devices. Not all fonts or characters are stored in the phone. I think the squares are displayed when the characters are not found in the phone. May be if you have a screen shot or the sample string you are trying to tranlslate, we can look deeper into the problem.
Cheers!
f000h | 19/08/2009, 09:32
Links to the photo.
Here are the photos that you have requested.
http://img-fotki.yandex.ru/get/3704/f000h.0/0_f5a2_6cd022ac_L.jpg
http://img-fotki.yandex.ru/get/3009/f000h.0/0_f5a3_303aec1e_L.jpg
http://img-fotki.yandex.ru/get/3702/f000h.0/0_f5a4_e7c2447_L.jpg
http://img-fotki.yandex.ru/get/26/f000h.0/0_f5a5_39c574f_L.jpg
I tried to solve the problem himself. I have not succeeded.
I changed this string code
>
f000h | 19/08/2009, 09:34
>
f000h | 19/08/2009, 09:36
I tried to solve the problem himself. I have not succeeded. I changed this string code ** google.load("language","1","language":"jp","base_domain":"google.cn")) **
wmseto | 21/08/2009, 09:02
@f00h hi i have found a cool sw named crystal chinese locatization. Search for it, install it. I think then font problem will be fixed. They have a lot of languages to choose from
f000h | 27/08/2009, 10:37
Thank you bro! Your advice really helped me! "Psiloc Crystal Chinese Localization v1.5x" is the only correct solution.
Re: Google Translator Widget for S60 WRT
fparri | 27/01/2009, 14:19
Great! :)
Would it be difficult to port it to Java ME, so that other people can use it on their phones, too? ;)
As you see from my request, I'm not a developer :p
Jokes apart, again compliments for the great app,
Fabio from Italy