Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

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!
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Open Source Project
Next Topic: Distance - geodesic - Vincenty - very accurate
Goto Forum:
  


Current Time: Mon Apr 29 10:30:06 CEST 2024

Total time taken to generate the page: 0.02237 seconds