Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Aug 6, 2011
  1. Merge pull request #1 from openSUSE/master

    authored
    Make compatible_language_from follow the RFC 2616 selection algorithm
Commits on Aug 5, 2011
  1. @flavio

    Version bump 1.0.2

    flavio authored
    Version bump 1.0.2, updated gemspec file.
  2. @tomhughes @flavio

    Make compatible_language_from follow the RFC 2616 selection algorithm

    tomhughes authored flavio committed
    The change in commit 92b276c is wrong
    because it reverses the previous change to obey the RFC 2616 algorithm.
    
    Specifically RFC 2616 says that a request for en-GB will only match
    with en-GB or something that starts with en-GB and it will not match
    against en with no suffix.
    
    The test failures were because the test was wrong, not because the
    code was wrong. This commit restores the previous code and fixes the
    tests.
Commits on Jul 20, 2011
  1. update gemspec

    Sebastian Kippe authored
Commits on Nov 22, 2010
  1. HttpAcceptLanguage needs to be included to ActionDispatch::Request

    authored
    To work properly with Rails 3, HttpAcceptLanguage
    to be included to ActionDispatch::Request.
Commits on Jun 29, 2010
  1. @iain

    Ignore whitespace before and after commas

    Moritz Heidkamp authored iain committed
    E.g. the example given under http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4 has a space after the comma
  2. @iain

    * fixed code so that tests are green again

    Norman/Thies authored iain committed
    * added symbol support for available languages
Commits on May 24, 2010
  1. @iain

    ActionController doesn't exists anymore in rails 3

    Damien Mathieu authored iain committed
  2. @tomhughes @iain
  3. @tomhughes @iain

    Make compatible_language_from follow the RFC 2616 selection algorithm

    tomhughes authored iain committed
    We need to look for the longest matching prefix rather than just the
    first language with the same basic language code, otherwise if we have
    both zh-CN and zh-TW available then we may select the wrong one as we
    will return he first one we see that starts with zh even if the user
    had said they preferred a specific variant.
Commits on Feb 25, 2010
  1. @iain
  2. @iain

    Version bump to 1.0.1

    iain authored
  3. @iain

    Fix tests

    iain authored
Commits on Feb 24, 2010
  1. @frisoft
Commits on Jan 5, 2010
  1. @iain

    Remove dead code

    iain authored
  2. @iain

    Add gemspec

    iain authored
  3. @iain

    Preparing to release as a gem

    iain authored
  4. @iain

    Version bump to 1.0.0

    iain authored
  5. @iain

    Version bump to 0.0.0

    iain authored
Commits on Jun 4, 2009
  1. @iain

    typo in README fixed

    iain authored
Commits on Mar 12, 2009
  1. Fix backward compatibility

    Iain Hecker authored
  2. Return the first of user compatible locales.

    Iain Hecker authored
    Added some more RDoc stuff.
  3. @iain

    Make it Rails 2.3 complient

    iain authored
  4. @iain

    Fixed ugly whitespace problems and dead code.

    Andres Jaan Tack authored iain committed
    Signed-off-by: Iain Hecker <iain@iain.nl>
  5. @iain

    Enabled use of the plugin in test environments.

    Andres Jaan Tack authored iain committed
    Test environments use TestRequest objects, not CgiRequest objects. Luckily, both descend from AbstractRequest, so I moved the include.
    
    Signed-off-by: Iain Hecker <iain@iain.nl>
Commits on Jan 25, 2009
  1. @iain

    Modified methods to not assume strings for input in arrays.

    Andres Jaan Tack authored iain committed
    The code at http://zargony.com/2009/01/09/selecting-the-locale-for-a-request collects the available translations from config/locales and stores them as symbols, which I think is perfectly reasonable. The changes here allow the two to work together.
    
    Signed-off-by: Iain Hecker <iain@iain.nl>
Commits on Dec 23, 2008
  1. updated docs

    Jason authored Iain Hecker committed
    Signed-off-by: Iain Hecker <github@iain.nl>
  2. added support for languages with different countries

    Jason authored Iain Hecker committed
    Signed-off-by: Iain Hecker <github@iain.nl>
  3. remove vim temp file

    Aitor Garay-Romero authored
  4. minor typo in documentation

    Aitor Garay-Romero authored
Commits on Aug 3, 2008
  1. @iain
Commits on Aug 2, 2008
  1. @iain

    updated README

    iain authored
  2. @iain
Commits on Jul 30, 2008
  1. first commit

    Iain Hecker authored
Something went wrong with that request. Please try again.