X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/6659fb9b33503ee6519f89131a8a4b5fef515bcd..b9f7f39140e942df4dc08d4167d3c07202628840:/app/views/site/id.html.erb diff --git a/app/views/site/id.html.erb b/app/views/site/id.html.erb index 8565cb9ea..aaa3927a9 100644 --- a/app/views/site/id.html.erb +++ b/app/views/site/id.html.erb @@ -16,7 +16,7 @@ 'Please upgrade your browser or use Potlatch 2 to edit the map.'; document.getElementById('id-container').className = 'unsupported'; } else { - <% locale = request.compatible_language_from(ID::LOCALES) || "en" %> + <% locale = select_locale(ID::LOCALES).to_s %> var id = iD() .embed(true)