Make Potlatch 2 default to the en locale if there is nothing better
authorTom Hughes <tom@compton.nu>
Wed, 6 Apr 2011 20:42:03 +0000 (21:42 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 6 Apr 2011 20:42:03 +0000 (21:42 +0100)
app/views/site/_potlatch2.html.erb

index 240bcea..e648ed3 100644 (file)
@@ -10,7 +10,7 @@
 <script type="text/javascript">alert("<%= t 'site.edit.potlatch2_not_configured' %>")</script>
 <% end %>
 
-<% locale = request.compatible_language_from(Potlatch2::LOCALES.keys) %>
+<% locale = request.compatible_language_from(Potlatch2::LOCALES.keys) || "en" %>
 
 <script type="text/javascript" defer="defer">
   var brokenContentSize = $("content").offsetWidth == 0;