You Are Here:

Community: Blogs

Who am I?

wmseto

(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.

Twitter: http://www.twitter.com/waiseto

 

Calendar

« January 2009 »
Mo Tu We Th Fr Sa Su
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
 

Forum Nokia Web Talks

Google Translator Widget for S60 WRT

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... Cry My last count of user download from MOSH is... Smile

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 Tongue out

- Wai Seto

RSSComments

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

HTML Alternative

wmseto | 27/01/2009, 20:34

wmseto

@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.

Re: Google Translator Widget for S60 WRT

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? :)

PHP port

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 ;)

Re: Google Translator Widget for S60 WRT

wmseto | 01/02/2009, 21:25

wmseto

@fparri thanks! Is your php change online some where? Please post the link if so! :)

Re: Google Translator Widget for S60 WRT

bugmenup | 04/02/2009, 02:09

Great job wmseto, tnx :)

Btw, can you add "Copy to clipboard" button?

Thanks in Advance

Re: Google Translator Widget for S60 WRT

wmseto | 04/02/2009, 20:03

wmseto

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!

Re: Google Translator Widget for S60 WRT

wmseto | 12/02/2009, 21:18

wmseto

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.

Re: Google Translator Widget for S60 WRT

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))

Re: Google Translator Widget for S60 WRT

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 :)

Re: Google Translator Widget for S60 WRT

Lili_22 | 11/08/2009, 05:58

Cool.Realy good idea! I would not think about it

Re: Google Translator Widget for S60 WRT

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.

Can you send a link to a screenshot?

wmseto | 18/08/2009, 20:08

wmseto

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!

Links to the photo.

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
>

Re: Google Translator Widget for S60 WRT

f000h | 19/08/2009, 09:34

>

Links to the photo.

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")) **

install extra languages

wmseto | 21/08/2009, 09:02

wmseto

@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

well done

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.

You must login to post comments. Login
 

Rate This

 
 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2010 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fblogsE2eforumE2enokiaE2ecomE2fblogE2fforumE2dnokiaE2dwebE2dtalksE2f2009E2f01E2f27E2fgoogleE2dtranslatorE2dwidgetE2dforE2ds60E2dwrtX qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfnTypeZBlogContentQ qdcZtypeQUqfnTypeZBlogE45ntryQ qdcZtypeQUqfnTypeZCommunityContentQ qdcZtypeQUqfnTypeZE52esourceQ qdcZtypeQUqfnTypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZseriesE5f60Q qfnZtypeQUqfnTypeZBlogContentQ qfnZtypeQUqfnTypeZBlogE45ntryQ qfnZtypeQUqfnTypeZCommunityContentQ qfnZtypeQUqfnTypeZE52esourceQ qfnZtypeQUqfnTypeZWebpageQ qfnZuserE5ftagQSxs60X qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfnTypeZBlogContentQ qrdfZtypeQUqfnTypeZBlogE45ntryQ qrdfZtypeQUqfnTypeZCommunityContentQ qrdfZtypeQUqfnTypeZE52esourceQ qrdfZtypeQUqfnTypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ
User Rating: qfnZuserE5FratingQNx5E2E0000X