In other languages

Namespaces

Variants

Views

Actions

Search

Contents

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Hamishwillee - Cool!

Pretty cool (not reviewed "fully" yet, but on scan I like the idea a lot). I am assuming Microsoft/Bing have translation services too - any reason to concentrate on the google service?

Regards

H

hamishwillee
02:40, 22 April 2013 (EEST)

Somnathbanik - Cool!

Hi Hamish,

Yes you are right, we have Bing translate API, but after the update in Bing service with Azure, my existing Bing Keys are not working.
Also this article is created to find an alternate of Google translate API (Paid version), with some tips and tricks.

Regards

Somnath

somnathbanik
12:24, 22 April 2013 (EEST)

Hamishwillee - Thanks for clarification

Hi Somnath

Thanks.

I've edited the introduction a little because it wasn't clear to me that you were using the free service web service to get around having to use a paid service. You should probably check there are no explicit terms and conditions prohibiting this (if you haven't already).

W.r.t Bing translate, thanks for clarifying. YOu might want to add a note explaining that there are also Bing services but these are not covered in this article.

Regards

Hamish

hamishwillee
10:15, 25 April 2013 (EEST)

Somnathbanik - Thanks for clarification

Hi Hamish,
I have added a note in the introduction regarding MS Translate API.

Regards

Somnath

somnathbanik
14:23, 25 April 2013 (EEST)

Hamishwillee - Slight modification

Thanks very much. I've modified this note a bit. It wasn't "wrong", but I figure the most important think is to let people know that you're not making any judgements on the relative value of APIs - good is just the one you happened to try.

Next time I come here I'll delete the comments, since you've addressed them.

Cheerio and thank!

regadrs

H

hamishwillee
08:46, 26 April 2013 (EEST)

Gagn - google translator....

sir the code is not working.....
please could you update me with the code????

Contents

Introduction

Google provides a paid translation service: Google Translate API. This article uses the free Google Translate web service to get the response in HTML format and parse the actual translated text using RegularExpressions.

Note: There are other translation services including Microsoft Translate API (free). These have not been tried, and may offer different or better translation results than Google.

English To Finnish

Language List

English To Spanish

Implementation

Create a standard Windows Phone Project

Let’s create a standard Windows Phone Application Project

Launch Visual Studio

Click on File

Click on New Project

Select Windows Phone Application (Visual C# Template)

Add Name and Location of the project

Click OK to create the project.

Adding UI controls on application page

We create two ListPicker which is a part of Windows Phone Toolkit to select To and From of the language. Two TextBox to write and display our text. And a submit Button to process the web request.

Summary

There is nothing big in this example other than simple tips to get the text translated. Most of the code are called from a PhoneClassLibrary which is a part of the project reference. Please download the source code for better understanding of the code flow.