Click here to Skip to main content
12,948,130 members (79,082 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


13 bookmarked
Posted 26 Jun 2013

Build a Desktop Online Translator with Bing

, 29 Jun 2013 CPOL
Rate this:
Please Sign up or sign in to vote.
How to build a desktop online translator with Bing


Somebody on Codeacademy wanted a little help building a dictionary application for Windows 8. As a matter of fact, online dictionary/translator function in similar ways. Since I already worked on such functionality, I thought I would try to do it again, let's go!

1. Check Online Translation Services

Nowadays, all online translation services seem to require a key for API use. Since Google Translate became paid only, Bing seems the best free option at the moment.

2. How the BING Translator API Works...

It's much more difficult now that appID no longer works.


  1. Wang Pidong's blog: How to use new Bing translator API
  2. MSDN blog: Bing Translator API, getting started
  3. MSDN Microsoft Translator: Obtaining an access token
  4. MSDN documentation on the protocol: HTTP interface in C#
  5. Microsoft Bing Translator Language Codes and Names: [1], [2]

Basically, you want to copy the C# code from steps 3 & 4, to create classes and functions that will handle:

  • the HTTP requests
  • the data deserialisation from JSON and raw strings
Since we're using the WPF template for the project, you will probably need to add references to:
  • System.Configuration
  • System.Runtime.Serialization
  • System.Net
  • System.Web

3. Verify the Registration Process

The registration process for the translation service is a bit painful. You must have something like this in your Azure Marketplace account for it to work:

Windows Azure Marketplace data

Notice the two rows for both Bing Search API & Microsoft Translator.

4. Build a WPF Interface

If we want to get fancy, we can create two ComboBox controls databounds to the languages lists (checks links in section 2.5).

WPF interface

5. Implement Custom Configuration

Obviously, I can't give out my personal Bing keys. You will have to fill both the ClientID and the ClientSecret in exe.config.

Windows Azure Marketplace application registration


You will find the sample application at WPFOnlineTranslator. Have fun! =)


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Victor Rene
Software Developer Self-employed
France France
No Biography provided

You may also be interested in...


Comments and Discussions

PraiseThanks . You saved my time. Pin
Stephin Francis8-Apr-16 2:12
memberStephin Francis8-Apr-16 2:12 
Questionsource File is Corrupted Pin
ashokrogan6-May-15 0:26
memberashokrogan6-May-15 0:26 
Question[My vote of 2] Out dated article Pin
Dirkster9915-Nov-13 23:21
memberDirkster9915-Nov-13 23:21 
QuestionResources not found Pin
Caiser Mahmood14-Sep-13 15:37
memberCaiser Mahmood14-Sep-13 15:37 
GeneralThat is not completely free, but very nice Pin
va_dev2-Jul-13 4:43
memberva_dev2-Jul-13 4:43 
GeneralMy vote of 5 Pin
Volynsky Alex29-Jun-13 8:41
memberVolynsky Alex29-Jun-13 8:41 
QuestionRe: My vote of 5 Pin
Victor Rene30-Jun-13 0:31
professionalVictor Rene30-Jun-13 0:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170524.1 | Last Updated 29 Jun 2013
Article Copyright 2013 by Victor Rene
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid