4259 links
  • Arnaud's links
  • Home
  • RSS Feed
  • Tag cloud
  • Login
search: tag:header tag:parse tag:accept — newest first
  • Mashing It Up: Parsing Accept-Language in Rails

    Really cool :)

    Good to know about accept language format :
    Example : fr,en-US;q=0.7,en;q=0.3
    q value is between 0 and 1 (default value is 1)
    the bigger it is the the higher is the priority to select a language

    Here client says :
    I prefer fr (q=1)
    Then en-US (q=0.7)
    Then..

    October 9, 2015 - permalink - http://mashing-it-up.blogspot.com/2008/10/parsing-accept-language-in-rails.html
    accept header language parse ruby