From 5f7855fa4d07fbee05de4f67d0aa370c8131ff2f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 6 Apr 2011 21:22:47 +0100 Subject: [PATCH 1/1] Tell Potlatch 2 which locale to use --- app/views/site/_potlatch2.html.erb | 3 +++ lib/potlatch2.rb | 13 +++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 lib/potlatch2.rb diff --git a/app/views/site/_potlatch2.html.erb b/app/views/site/_potlatch2.html.erb index 760927a82..240bceacc 100644 --- a/app/views/site/_potlatch2.html.erb +++ b/app/views/site/_potlatch2.html.erb @@ -10,6 +10,8 @@ <% end %> +<% locale = request.compatible_language_from(Potlatch2::LOCALES.keys) %> +