X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0509fc8d12fd763e98bc0c8e3a0d2b0ee6a11f9a..20bd72d9e9a8efd50856d91cf48a57926b9a13f5:/app/views/site/_potlatch2.html.erb
diff --git a/app/views/site/_potlatch2.html.erb b/app/views/site/_potlatch2.html.erb
index 31e15f09d..1c203b2fb 100644
--- a/app/views/site/_potlatch2.html.erb
+++ b/app/views/site/_potlatch2.html.erb
@@ -10,7 +10,7 @@
<% end %>
-<% locale = request.compatible_language_from(Potlatch2::LOCALES.keys) || "en" %>
+<% locale = Locale.list(Potlatch2::LOCALES.keys).preferred(preferred_languages).to_s %>