X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7d900f15dcedc682d042433673bf169aaec1bbae..7014cdb32cf0024e169204da49486048f08b1ca2:/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 b2eda87d5..e648ed37c 100644
--- a/app/views/site/_potlatch2.html.erb
+++ b/app/views/site/_potlatch2.html.erb
@@ -4,7 +4,13 @@
<%= 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" %>