Bugs item #1004678, was opened at 2004-08-06 18:21
Message generated for change (Comment added) made by ziren
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=491356&aid=1004678&group_id=59548
Category: web ui
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Dawid Weiss (dawidweiss)
Assigned to: Doug Cutting (cutting)
Summary: User locale detection not working
Initial Comment:
I start Nutch (CVS HEAD) on Tomcat 5.0. The first
access to Nutch's search.jsp sets the locale of
subsequent requests, even if the browser has been
changed to prefer a different locale (or even a different
browser was used). Example output below -- notice that
language is 'de' (and so is the top banner) while the
search strings (i18n:bundle) are from the English locale.
<html lang="de">
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8">
<head>
<title>Nutch: search results</title>
<link rel="icon" href="/img/favicon.ico" type="image/x-
icon"/>
<link rel="shortcut icon" href="/img/favicon.ico"
type="image/x-icon"/>
<style type="text/css">
.menuTd {background-color: #F9F7F4; height: 25;
onMouseOver: this.style.backgroundColor='#ECE5DC';}
.menuTdhover {background-color: #ECE5DC; height: 25;
onMouseOver: this.style.backgroundColor='#ECE5DC';}
.menuEntry { font-family: Arial, Helvetica, sans-serif;
font-size: 12px; color: #000000; text-decoration: none}
.body {background-color: #F9F7F4;}
.bodytext { font-family: Arial, Helvetica, sans-serif;
font-size: 12px; color: #000000; text-decoration: none}
.title { font-family: Arial, Helvetica, sans-serif; font-
size: 26px; color: #FF9900; text-decoration: none}
.intro { font-family: Arial, Helvetica, sans-serif; font-
size: 12px; color: #FF9900; text-decoration: none}
.orangeTd {background-color: #FF9900}
ul {list-style-image: url(../img/reiter/ul.gif)}
h3 {font-family: Arial, Helvetica, sans-serif; font-size:
16px; color: #000000;}
h4 {font-family: Arial, Helvetica, sans-serif; font-size:
14px; color: #000000;}
.url {color: #996600;}
</style>
<base href="http://localhost:8080/de/">
</head>
<body>
<?xml version="1.0" encoding="UTF-8"?>
<!--This file is automatically generated. Do not edit!--
><table cellspacing="0" cellpadding="0" border="0"
width="635"><tr><td rowspan="2" width="140"
valign="bottom"><a href="./"><img border="0"
src="../img/reiter/logo_nutch.gif"/></a><img height="1"
width="140"
src="../img/reiter/spacer_666666.gif"/></td></tr><tr><td
align="right" valign="bottom" width="495"><table
width="495" cellspacing="0" cellpadding="0"
border="0"><tr><td width="400"
background="../img/reiter/_bg_reiter.gif"> </td><t
d width="10" valign="bottom" height="28"><img
border="0"
src="../img/reiter/reiter_inactive_le1.gif"/></td><td
nowrap="nowrap" valign="bottom"
background="../img/reiter/_bg_reiter_inactive.gif"><a
href="about.html" class="bodytext">Ăśber</a></td><td
width="10" valign="bottom" height="28"><img border="0"
src="../img/reiter/reiter_inactive_ri.gif"/></td><td
width="10" valign="bottom" height="28"><img border="0"
src="../img/reiter/reiter_inactive_le.gif"/></td><td
nowrap="nowrap" valign="bottom"
background="../img/reiter/_bg_reiter_inactive.gif"><a
href="faq.html" class="bodytext">FAQ</a></td><td
width="10" valign="bottom" height="28"><img border="0"
src="../img/reiter/reiter_inactive_ri.gif"/></td><td
width="10" valign="bottom" height="28"><img border="0"
src="../img/reiter/reiter_inactive_le.gif"/></td><td
nowrap="nowrap" valign="bottom"
background="../img/reiter/_bg_reiter_inactive.gif"><a
href="../en/developers.html"
class="bodytext">Entwickler</a></td><td width="10"
valign="bottom" height="28"><img border="0"
src="../img/reiter/reiter_inactive_ri.gif"/></td><td
width="10" valign="bottom" height="28"><img border="0"
src="../img/reiter/reiter_inactive_le.gif"/></td><td
nowrap="nowrap" valign="bottom"
background="../img/reiter/_bg_reiter_inactive.gif"><a
href="../en/donate.html"
class="bodytext">ĂśnterstĂĽtzen</a></td><td
width="10" valign="bottom" height="28"><img border="0"
src="../img/reiter/reiter_inactive_ri.gif"/></td></tr></tabl
e></td></tr></table>
Hits <b>1-0</b> (out of about 0 total matching pages):
----------------------------------------------------------------------
>Comment By: Sami Siren (ziren)
Date: 2004-09-10 22:59
Message:
Logged In: YES
user_id=59797
Following change worked for me (addition of attribute locale
in search.jsp):
<i18n:bundle baseName="org.nutch.jsp.search"
locale="<%=request.getLocale()%>"/>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=491356&aid=1004678&group_id=59548
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Nutch-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nutch-developers