Sort out storage and use of user preferred languages.
[rails.git] / vendor / plugins / http_accept_language / lib / http_accept_language.rb
index bf34935d4050dc04996bd75e9aac1f50a1e3603c..f181c9f4309287d6aac017cdf9723ac7415aa0f6 100644 (file)
@@ -22,6 +22,12 @@ module HttpAcceptLanguage
     []
   end
 
+  # Sets the user languages preference, overiding the browser
+  #
+  def user_preferred_languages=(languages)
+    @user_preferred_languages = languages.join(",")
+  end
+
   # Finds the locale specifically requested by the browser.
   #
   # Example: