[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug 358459: Simple patch (was: The problem could be solved on Debian's side)



tags 358459 patch
tags 358459 upstream
reassign 358459 kdelibs 4:3.5.9.dfsg.1-6
thanks

Hi,

I finally took some professional time (...) to analyse this bug. The result of 
these two hours is the attached patch.

The idea is to simply add ";q=0.1" (exact value to be discussed maybe) at the 
end of the "Accept-Language" header. With this patch, the "default" language 
(always "en") is given a lower priority. Note that the patch is to be applied 
on kdelibs (3.5.9.dfsg.1) and not on kdebase.

It is no perfect solution, but at least provides a way to read debian.org 
translated !

Best regards, 

OdyX
-- 
Didier Raboud, proud Debian user.
CH-1802 Corseaux
didier@raboud.com
diff -Naur kdelibs-3.5.9.dfsg.1.o/kioslave/http/http.cc kdelibs-3.5.9.dfsg.1/kioslave/http/http.cc
--- kdelibs-3.5.9.dfsg.1.o/kioslave/http/http.cc        2008-10-13 18:05:37.000000000 +0200
+++ kdelibs-3.5.9.dfsg.1/kioslave/http/http.cc  2008-10-13 18:06:39.000000000 +0200
@@ -2453,7 +2453,7 @@
       header += "Accept-Charset: " + m_request.charsets + "\r\n";

     if (!m_request.languages.isEmpty())
-      header += "Accept-Language: " + m_request.languages + "\r\n";
+      header += "Accept-Language: " + m_request.languages + ";q=0.1\r\n";

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: