From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Feb 2 20:00:12 2009 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2153F10656BF for ; Mon, 2 Feb 2009 20:00:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CA3A98FC25 for ; Mon, 2 Feb 2009 20:00:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n12K0BbD099561 for ; Mon, 2 Feb 2009 20:00:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n12K0Bso099560; Mon, 2 Feb 2009 20:00:11 GMT (envelope-from gnats) Resent-Date: Mon, 2 Feb 2009 20:00:11 GMT Resent-Message-Id: <200902022000.n12K0Bso099560@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Pieter de Boer Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDBB31065698 for ; Mon, 2 Feb 2009 19:51:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id BAF748FC1B for ; Mon, 2 Feb 2009 19:51:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n12JpHiw030456 for ; Mon, 2 Feb 2009 19:51:17 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n12JpHBY030455; Mon, 2 Feb 2009 19:51:17 GMT (envelope-from nobody) Message-Id: <200902021951.n12JpHBY030455@www.freebsd.org> Date: Mon, 2 Feb 2009 19:51:17 GMT From: Pieter de Boer To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/131305: Update to misc/translate to make it work X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Feb 2009 20:00:12 -0000 >Number: 131305 >Category: ports >Synopsis: Update to misc/translate to make it work >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Mon Feb 02 20:00:11 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Pieter de Boer >Release: Irrelevant >Organization: >Environment: Irrelevant >Description: misc/translate stopped working because Babelfish is now hosted by Yahoo instead of Altavista. >How-To-Repeat: Try to use misc/translate. >Fix: Apply the patch. Patch attached with submission follows: --- translate.orig Mon Oct 16 13:04:47 2006 +++ translate Mon Feb 2 20:42:33 2009 @@ -94,14 +94,14 @@ my $convert_text = $ARGV[0]; my $request=POST -'http://babelfish.altavista.com/babelfish/tr',[doit=>"done",intl=>"1",tt=>"urltext",Submit=>"Translate",lp=>$convert_code,urltext=>$convert_text]; +'http://babelfish.yahoo.com/translate_txt',[ei=>"UTF-8",doit=>"done",fr=>"bf-home",intl=>"1",tt=>"urltext",btnTrTxt=>"Translate",lp=>$convert_code,trtext=>$convert_text]; $request->content_type('application/x-www-form-urlencoded'); my $do_browser=LWP::UserAgent->new; my $answer=$do_browser->request($request)->content; # let us see these results my $content = $answer; -if($content =~ /
(.*?)<\/div>/si) { +if($content =~ /
(.*?)<\/div>/si) { $lort = $1; $lort =~ s/\n//g; } >Release-Note: >Audit-Trail: >Unformatted: