Sort out storage and use of user preferred languages.

This commit is contained in:
Tom Hughes 2009-05-31 14:55:45 +00:00
parent 37749e07e1
commit 0e96027a20
14 changed files with 52 additions and 16 deletions

View 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: