Home » Extra libraries, Code snippets, applications etc. » Applications created with U++ » Google Translator
Re: Google Translator [message #21450 is a reply to message #21184] |
Thu, 21 May 2009 10:56 |
|
Hello everyone!
I was improve a little this project with the following changes:
- Possibility for send to google corrected translation by user.
- Parse translated terms and other specific characters
- Handle global shortcut [Ctrl]+[C]+[C] events for translate copied text, as in Abby Lingvo (only for win32). In this case will translate in baloon from trayicon.
- Save and restore more settings, as: language from, language to, source text.
- Separated core google translate by GUI which named "GoogleTranslator" but demo package I named GoogleTranslatorDemo.
- Corrected errors on mingw and linux (ubuntu 9.04) GCC build
- Correct other errors.
- Added a simple console example to demonstrate google translator
#include <GoogleTranslator/GoogleTranslator.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
String str_status = "";
GoogleTranslator g_instance;
Cout() << "Set proxy: 172.16.0.65 , port 3128" << "\n";
Cout() << "Translate \"translator\" word" << "\n";
g_instance.SetProxy("172.16.0.65", 3128);
if(g_instance.Translate("translator", String("en"), String("ro"))){
Cout() << "Translation: " << g_instance.GetFormatedText() << "\n";
if(g_instance.GetCorrectionText()!="translator"){
Cout() << "Send corrected translator if not correct: \"translator\"" << "\n";
if(g_instance.SetCorrectionText("translator", str_status))
Cout() << str_status;
}
}
}
I was attached the latest version!
In future I would like to add:
- Multilingual interface!
- finish global shortcut for x11 and improve for win32.
Ballon message is only for win32, if somebody can add for x11 too I will be glad.
If anybody have other ideas or want to contribute, I would be glad!
|
|
|
|
|
Google Translator
By: tojocky on Mon, 16 March 2009 13:06
|
|
|
Re: Google Translator
By: tojocky on Tue, 17 March 2009 22:54
|
|
|
Re: Google Translator
By: tojocky on Wed, 18 March 2009 10:00
|
|
|
Re: Google Translator
By: mrjt on Wed, 18 March 2009 10:37
|
|
|
Re: Google Translator
By: tojocky on Wed, 18 March 2009 10:55
|
|
|
Re: Google Translator
By: forlano on Wed, 06 May 2009 13:01
|
|
|
Re: Google Translator
By: mrjt on Wed, 06 May 2009 13:12
|
|
|
Re: Google Translator
By: forlano on Wed, 06 May 2009 20:22
|
|
|
Re: Google Translator
By: koldo on Thu, 07 May 2009 01:10
|
|
|
Re: Google Translator
By: tojocky on Thu, 07 May 2009 21:09
|
|
|
Re: Google Translator
By: tojocky on Thu, 21 May 2009 10:56
|
|
|
Re: Google Translator
|
|
|
Re: Google Translator
By: tojocky on Fri, 22 May 2009 08:09
|
|
|
Re: Google Translator
By: tojocky on Sat, 23 May 2009 08:48
|
|
|
Re: Google Translator
By: forlano on Sat, 23 May 2009 12:41
|
|
|
Re: Google Translator
By: tojocky on Sat, 23 May 2009 13:29
|
|
|
Re: Google Translator
By: tojocky on Wed, 27 May 2009 08:40
|
|
|
Re: Google Translator
|
|
|
Re: Google Translator
By: tojocky on Thu, 28 May 2009 10:10
|
|
|
Re: Google Translator
By: Didier on Wed, 27 May 2009 21:04
|
|
|
Re: Google Translator
By: koldo on Wed, 27 May 2009 22:03
|
|
|
Re: Google Translator
By: tojocky on Sat, 30 May 2009 05:32
|
|
|
Re: Google Translator
By: koldo on Mon, 01 June 2009 12:13
|
|
|
Re: Google Translator
By: tojocky on Mon, 01 June 2009 12:59
|
|
|
Re: Google Translator
By: koldo on Mon, 01 June 2009 13:57
|
|
|
Re: Google Translator
By: tojocky on Mon, 01 June 2009 15:20
|
|
|
Re: Google Translator
By: koldo on Mon, 01 June 2009 16:42
|
|
|
Re: Google Translator
By: tojocky on Thu, 26 November 2009 10:48
|
|
|
Re: Google Translator
By: masu on Thu, 26 November 2009 14:21
|
|
|
Re: Google Translator
By: tojocky on Fri, 27 November 2009 09:53
|
|
|
Re: Google Translator
By: koldo on Fri, 27 November 2009 12:31
|
|
|
Re: Google Translator
By: tojocky on Fri, 27 November 2009 13:30
|
|
|
Re: Google Translator
By: masu on Fri, 27 November 2009 14:05
|
|
|
Re: Google Translator
By: koldo on Fri, 27 November 2009 14:16
|
|
|
Re: Google Translator
By: tojocky on Fri, 27 November 2009 16:08
|
|
|
Re: Google Translator
By: tojocky on Fri, 27 November 2009 19:53
|
|
|
Re: Google Translator
By: koldo on Mon, 30 November 2009 08:50
|
|
|
Re: Google Translator
By: mirek on Tue, 01 December 2009 08:27
|
|
|
Re: Google Translator
By: tojocky on Sun, 13 December 2009 10:40
|
|
|
Re: Google Translator
By: tojocky on Sun, 27 December 2009 18:37
|
|
|
Re: Google Translator
|
|
|
Re: Google Translator
By: tojocky on Sun, 27 December 2009 21:58
|
|
|
Re: Google Translator
By: koldo on Sun, 27 December 2009 22:15
|
|
|
Re: Google Translator
|
|
|
Re: Google Translator
By: tojocky on Sat, 30 January 2010 15:33
|
Goto Forum:
Current Time: Mon Apr 29 10:30:06 CEST 2024
Total time taken to generate the page: 0.02237 seconds
|