From nobody@FreeBSD.org  Mon Feb  2 19:51:17 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id CDBB31065698
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <pieter@thedarkside.nl>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Update to misc/translate to make it work
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         131305
>Category:       ports
>Synopsis:       Update to misc/translate to make it work
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mich
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 02 20:00:11 UTC 2009
>Closed-Date:    Thu Feb 26 00:49:41 UTC 2009
>Last-Modified:  Thu Feb 26 00:50:01 UTC 2009
>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 style=padding:10px;.*?>(.*?)<\/div>/si) { 
+if($content =~ /<div style="padding:0.6em;".*?>(.*?)<\/div>/si) { 
     $lort = $1; 
     $lort =~ s/\n//g;
 }


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->mich 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Feb 2 20:00:22 UTC 2009 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131305 
State-Changed-From-To: open->closed 
State-Changed-By: mich 
State-Changed-When: Thu Feb 26 00:49:01 UTC 2009 
State-Changed-Why:  
Committed, thanks (I updated the source directly instead of patching) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=131305 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/131305: commit references a PR
Date: Thu, 26 Feb 2009 00:48:40 +0000 (UTC)

 mich        2009-02-26 00:48:30 UTC
 
   FreeBSD ports repository
 
   Modified files:
     misc/translate       Makefile distinfo 
   Log:
   - update to -> 1.11
   
   PR:             ports/131305
   Submitted by:   Pieter de Boer <pieter@thedarkside.nl>
   
   Revision  Changes    Path
   1.9       +1 -1      ports/misc/translate/Makefile
   1.5       +3 -3      ports/misc/translate/distinfo
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
