------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the
assignee.
http://bug
s.kde.org/show_bug.cgi?id=143944
Summary: no translation: google wrong link
Product: kopete
Version: unspecified
Platform: unspecified
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: Translator Plugin
AssignedTo: kopete-devel kde org
ReportedBy: becheru.petru.ioan gmail com
Version: 0.12.4 (using KDE 3.5.6, Debian Package
4:3.5.6.r1.dfsg.1-2 (4.0))
Compiler: Target: i486-linux-gnu
OS: Linux (i686) release 2.6.18-4-k7
in function TranslatorPlugin::googleTranslateMessage from
translatorplugin.cpp you use this formula to build the link
to google translator:
"h
ttp://translate.google.com/translate_t?text=" +
body +"&langpair=" + lp
where yout lp has the form
"<lang1>_<lang2>".
For examample for text="hello" and
lp="en_it"(english to italian) the link is: http://translate.google.com/translate_t?tex
t=hello&langpair=en_it and IT DOES NOT WORK(click it
to see). KOpete outputs: "Very strange! got a DCOPReply
opcode, but we were not waiting for a reply!
kopete (translator): WARNING: [void
TranslatorPlugin::sendTranslation(Kopete::Message&,
const QString&)] Translated text is empty"
---FIX---
The correct link is : http://translate.google.com/translate_t?text=h
ello&langpair=en|it (click to see).
lp should be constructed
"<lang1>|<lang2>" ("|"
instead of "_": example "en|it" instead
of "en_it") .
_______________________________________________
kopete-devel mailing list
kopete-devel kde.org
ht
tps://mail.kde.org/mailman/listinfo/kopete-devel
|