Cast the locale to a string

This commit is contained in:
Tom Hughes 2013-05-13 00:53:12 +01:00
parent 09e9ff8428
commit b9f7f39140
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@
<script type="text/javascript">alert("<%= t 'site.edit.potlatch2_not_configured' %>")</script>
<% end %>
<% locale = select_locale(Potlatch2::LOCALES.keys) %>
<% locale = select_locale(Potlatch2::LOCALES.keys).to_s %>
<script type="text/javascript" defer="defer">
var changesaved=true;

View file

@ -16,7 +16,7 @@
'Please upgrade your browser or use Potlatch 2 to edit the map.';
document.getElementById('id-container').className = 'unsupported';
} else {
<% locale = select_locale(ID::LOCALES) %>
<% locale = select_locale(ID::LOCALES).to_s %>
var id = iD()
.embed(true)