Public bug reported:
Source package: libtranslate
in Karmic
apt-cache policy libtranslate0 gives
libtranslate0:
Installed: 0.99-0ubuntu6
Candidate: 0.99-0ubuntu6
Version table:
*** 0.99-0ubuntu6 0
500 http://us.archive.ubuntu.com karmic/universe Packages
100 /var/lib/dpkg/status
To reproduce:
$ sudo apt-get install libtranslate-bin
$ echo 'Sitting and thinking' | translate-bin -s babelfish
[ ]
(translate-bin:22932): libtranslate-WARNING **: unable to translate chunk using
Babel Fish: unable to parse server data
(translate-bin:22932): libtranslate-WARNING **: unable to translate
chunk using Babel Fish: unable to parse server data
(translate-bin:22932): libtranslate-WARNING **: unable to translate chunk using
Babel Fish: unable to parse server data
translate-bin: unable to translate: no service could translate chunk
data/services.xml.in needs to be changed to reflect the new URLs used by Babel
Fish:
--- libtranslate-0.99.orig/data/services.xml.in
+++ libtranslate-0.99/data/services.xml.in
@@ -48,12 +48,11 @@
- http://babelfish.altavista.com/babelfish/tr?urltext=${text:escape}&lp=${from}_${to}&enc=utf8";>
- http://www.altavista.com/web/results"/>
-
+ http://babelfish.yahoo.com/translate_txt?ei=UTF-8&doit=done&fr=bf-home&intl=1&tt=urltext&trtext=${text:escape}&lp=${from}_${to}&btnTrTxt=Translate";>
+
- http://babelfish.altavista.com/babelfish/trurl_load?url=${url:escape}&lp=${from}_${to}&enc=utf8"/>
+ http://babelfish.yahoo.com/translate_url?doit=done&tt=url&intl=1&fr=bf-home&trurl=${url:escape}&lp=${from}_${to}&btnTrUrl=Translate"/>
After applying this patch I get the result:
$ echo 'Sitting and thinking' | translate-bin -s babelfish
Se reposer et penser
ProblemType: Bug
Architecture: amd64
Date: Mon Nov 16 00:48:56 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: libtranslate0 0.99-0ubuntu6
ProcEnviron:
LANGUAGE=
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-15.50-generic
SourcePackage: libtranslate
Uname: Linux 2.6.31-15-generic x86_64
XsessionErrors:
(polkit-gnome-authentication-agent-1:2449): GLib-CRITICAL **:
g_once_init_leave: assertion `initialization_value != 0' failed
(:4036): Gdk-CRITICAL **: gdk_window_get_origin: assertion
`GDK_IS_WINDOW (window)' failed
** Affects: libtranslate (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug
--
Babel Fish service uses wrong URL, search strings
https://bugs.launchpad.net/bugs/483423
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs