X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b90219f1d393c0b6e16848eb611e638fa14bf3ff..5ff9f2d21c82a9ebe06be748a37de764d0861514:/app/views/site/_potlatch2.html.erb
diff --git a/app/views/site/_potlatch2.html.erb b/app/views/site/_potlatch2.html.erb
index 705b9139c..e648ed37c 100644
--- a/app/views/site/_potlatch2.html.erb
+++ b/app/views/site/_potlatch2.html.erb
@@ -3,15 +3,24 @@
<%= 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" %>
+