FreeBSD Bugzilla – Attachment 93411 Details for
Bug 131305
Update to misc/translate to make it work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 855 bytes, created by
Pieter de Boer
on 2009-02-02 20:00:11 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Pieter de Boer
Created:
2009-02-02 20:00:11 UTC
Size:
855 bytes
patch
obsolete
>--- 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; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 131305
: 93411