Index: conf/nutch-default.xml
===================================================================
--- conf/nutch-default.xml	(wersja 783140)
+++ conf/nutch-default.xml	(kopia robocza)
@@ -227,7 +227,16 @@
   If true, use HTTP 1.1, if false use HTTP 1.0 .
   </description>
 </property>
+<property>
+  <name>http.accept.language</name>
+  <value>en-us,en-gb,en;q=0.7,*;q=0.3</value>
+  <description>Value of the "Accept-Language" request header field.
+  This allows selecting non-English language as default one to retrieve.
+  It is a useful setting for search engines build for certain national group.
+  </description>
+</property>
 
+
 <!-- FTP properties -->
 
 <property>
Index: src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java
===================================================================
--- src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java	(wersja 783140)
+++ src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java	(kopia robocza)
@@ -92,6 +92,8 @@
                         "NutchCVS", null, "Nutch",
                         "http://lucene.apache.org/nutch/bot.html",
                         "nutch-agent@lucene.apache.org");
+  /** The "Accept-Language" request header value. */
+  protected String acceptLanguage = "en-us,en-gb,en;q=0.7,*;q=0.3";
 
     
   /**
@@ -162,6 +164,7 @@
         this.maxThreadsPerHost = conf.getInt("fetcher.threads.per.host", 1);
         this.userAgent = getAgentString(conf.get("http.agent.name"), conf.get("http.agent.version"), conf
                 .get("http.agent.description"), conf.get("http.agent.url"), conf.get("http.agent.email"));
+        this.acceptLanguage = conf.get("http.accept.language", acceptLanguage);
         this.serverDelay = (long) (conf.getFloat("fetcher.server.delay", 1.0f) * 1000);
         this.maxCrawlDelay = (long)(conf.getInt("fetcher.max.crawl.delay", -1) * 1000);
         // backward-compatible default setting
@@ -325,6 +328,13 @@
     return userAgent;
   }
   
+  /** Value of "Accept-Language" request header sent by Nutch.
+   * @return The value of the header "Accept-Language" header.
+   */
+  public String getAcceptLanguage() {
+         return acceptLanguage;
+  }
+
   public boolean getUseHttp11() {
     return useHttp11;
   }
@@ -469,6 +479,7 @@
       logger.info("http.timeout = " + timeout);
       logger.info("http.content.limit = " + maxContent);
       logger.info("http.agent = " + userAgent);
+      logger.info("http.accept.language = " + acceptLanguage);
       logger.info(Protocol.CHECK_BLOCKING + " = " + checkBlocking);
       logger.info(Protocol.CHECK_ROBOTS + " = " + checkRobots);
       if (checkBlocking) {
Index: src/plugin/protocol-httpclient/src/java/org/apache/nutch/protocol/httpclient/Http.java
===================================================================
--- src/plugin/protocol-httpclient/src/java/org/apache/nutch/protocol/httpclient/Http.java	(wersja 783140)
+++ src/plugin/protocol-httpclient/src/java/org/apache/nutch/protocol/httpclient/Http.java	(kopia robocza)
@@ -185,7 +185,7 @@
     // Set the User Agent in the header
     headers.add(new Header("User-Agent", userAgent));
     // prefer English
-    headers.add(new Header("Accept-Language", "en-us,en-gb,en;q=0.7,*;q=0.3"));
+    headers.add(new Header("Accept-Language", acceptLanguage));
     // prefer UTF-8
     headers.add(new Header("Accept-Charset", "utf-8,ISO-8859-1;q=0.7,*;q=0.7"));
     // prefer understandable formats
