Permalink
Browse files

Allow the user's preferred languages to be set, overriding the browser

  • Loading branch information...
1 parent a24a364 commit d7a1d608aae12d779a2825544e62f8a40ad90ac3 @tomhughes tomhughes committed with May 24, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/http_accept_language.rb
@@ -22,6 +22,12 @@ def user_preferred_languages
[]
end
+ # Sets the user languages preference, overiding the browser
+ #
+ def user_preferred_languages=(languages)
+ @user_preferred_languages = languages
+ end
+
# Finds the locale specifically requested by the browser.
#
# Example:

0 comments on commit d7a1d60

Please sign in to comment.