The MineGoogleTranslator is a easy way to consume the Google Translation Service.
What is the MineGoogleTranslator?
This project catches the result of Google Translation Page and parses it through Regular Expressions. It contains three ways to consume:
- A small Windows application
- A Web Service
- A Web Control's collection
As the MineGoogleTranslator is in development stage, its releases offer simple version of these features. Their roadmap contains features like a tray icon for the Windows Application and new Web Controls.
Using the WebControl
Add the project's reference to your project. After that you can add a control to your web page.
Note: The project contains a Web Application with a simple sample of the Web Controls usage.
Your page must include the registration for the library:
<%@ Register
Assembly="MineGoogleTranslator.Web"
Namespace="MineGoogleTranslator.Web"
TagPrefix="mgt" %>
After registering the assembly, you just add the Web Control and configure it like this:
<mgt:TranslatorBox
id="myTranslatorBox"
runat="server"
OriginalText="A simple text to translate."
ButtonText="Translate It!"
FromLanguage="en"
ToLanguage="pt">
</mgt:TranslatorBox>
All the languages available in Google Translation Page will be available here. If a language pair isn't valid, the control will throw an exception.
Note: The Web Control has an event named Translate; you can handle it to get the translation result.
And that's all, folks. Now you can add a translation service on your web site! :D
More Informations
You can find more informations about the project here.