X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/fd898f2e5769ae58b386cd09f01de86b3eda9622..5ff9f2d21c82a9ebe06be748a37de764d0861514:/app/views/site/_potlatch2.html.erb?ds=sidebyside
diff --git a/app/views/site/_potlatch2.html.erb b/app/views/site/_potlatch2.html.erb
index 6073e0adf..e648ed37c 100644
--- a/app/views/site/_potlatch2.html.erb
+++ b/app/views/site/_potlatch2.html.erb
@@ -4,11 +4,17 @@
<%= javascript_include_tag 'swfobject.js' %>
+<% if defined? POTLATCH2_KEY %>
<% token = @user.access_token(POTLATCH2_KEY) %>
+<% else%>
+
+<% end %>
+
+<% locale = request.compatible_language_from(Potlatch2::LOCALES.keys) || "en" %>