MarkUsProject/Markus — pull request #1761 by YusiFan (2014-09-16 00:48:09+00:00)
Title: Fix for issue 1735: Manually set available locales

Problem: The server log shows "pt is an invalid locale" when user select "pt" language in footer. The language falls back to default en locale, but the url still shows /pt/ which causes the problem.

Fix: Manually set available locales [:en, :fr, :pt]

Testing: Manual tests on different pages.

bundle exec rake test
=> 982 tests, 3066 assertions, 2 failures, 0 errors, 0 skips
bundle exec rspec
=> 141 examples, 0 failures