| 
     
      
      
      From: Gilles D. <gr...@sc...> - 2002-01-03 22:09:17
      
     
   | 
According to Gabriele Bartolini: > I have a reasonable request. First of all, it is not hard to do and I > think I could do it quickly. It is just that I don't wanna do it without > your opinion. > > I think it could be handy to configure the digger to accept a language > of a list of languages as the HTTP says for the 'Accept-Language' directive. > > What do you think of issuing a new configuration attribute called > 'accept_language'? By default it is empty, but it could be set for instance > to 'it' or 'en' or also 'it, en, en-us' and so on. > > So: > > Proposed attribute name: 'accept_language' > Program: htdig > Type: string > Default: empty > Example: en-us, en, it > Description: - I will work it out with the best english I can produce! - :-) > > I wanna modify the HtHTTP code to handle this and put it into > ht://Check and, as long as this class is now synchronised with ht://Dig > one, I would like to do it for our dear search engine too. What do you think? > > I think this configuration attribute could have a URL and Server scope > as well. Sure, if you're willing to implement this, I give it my +1 However, shouldn't the attribute type be "string list"? Also, for consistency with other string list attributes, it might make sense if the commas weren't needed, e.g. "accept_language: en-us en it" -- Gilles R. Detillieux E-mail: <gr...@sc...> Spinal Cord Research Centre WWW: http://www.scrc.umanitoba.ca/~grdetil Dept. Physiology, U. of Manitoba Phone: (204)789-3766 Winnipeg, MB R3E 3J7 (Canada) Fax: (204)789-3930  |