projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d10dd63
)
Make Potlatch 2 default to the en locale if there is nothing better
author
Tom Hughes
<tom@compton.nu>
Wed, 6 Apr 2011 20:42:03 +0000
(21:42 +0100)
committer
Tom Hughes
<tom@compton.nu>
Wed, 6 Apr 2011 20:42:03 +0000
(21:42 +0100)
app/views/site/_potlatch2.html.erb
patch
|
blob
|
history
diff --git
a/app/views/site/_potlatch2.html.erb
b/app/views/site/_potlatch2.html.erb
index 240bceaccdf1ca5286cffb37c285ffd8375db267..e648ed37cf7604411caab71680de38a71243c843 100644
(file)
--- a/
app/views/site/_potlatch2.html.erb
+++ b/
app/views/site/_potlatch2.html.erb
@@
-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;