i18ngurus.com - Open internationalization resources directory
directorydirectory   add a linkadd a link   searchsearch   mapmap   recentrecent   syndicatesyndicate   encyclopedia <font color=Red><b>Beta</b></font>encyclopedia Beta   feedbackfeedback   faqfaq  
 
   
border
This enclycopedia is a work in progress. Please do not hesitate to email me if you disagree with this article or found an any error in this page.
border
border border border
 
back to index


accept-language

Field of the HTTP request-header reflecting the user's language preferences. The field contains a comma separated list of languages with a possible associated quality factor ranging from 0 to 1. If no quality factor is present then the highest value (1) is assumed.

       Field specifications:

Accept-Language = "Accept-Language" ":"
1#( language-range [ ";" "q" "=" qvalue ] )
language-range = ( ( 1*8ALPHA *( "-" 1*8ALPHA ) ) | "*" )

Sample field:
...
Accept-Language: fr-ca, fr;q=0.8, en;q=0.7
...



In the example above French Canadian should be considered the prefered language, followed by any other type of French and English.

The language preferences can be set in Internet Explorer via "Tools / Internet Options... / Languages" and in Netscape via "Edit/ Preferences... / Navigator / languages".

This HTTP header-field is used to part of the arsenal used to achieve automatic language selection.

You can check out which preference your browser is sending by cliking here.


Related directory category:
Formats > HTML


Article submitted by: Thierry Sourbier
Last modified: 2008-05-03


Rate this article:
min. max.


(include your email address if you would like a response)