Set OpenLayers lang unobtrusively

We output the locale code as the lang attribute, so
use that rather than interpolating into embedded JS.
This commit is contained in:
John Firebaugh 2012-08-24 19:00:59 -07:00
parent 2ce968b571
commit dcb25f0c07
6 changed files with 3 additions and 11 deletions

View file

@ -5,8 +5,6 @@
</div>
<script type="text/javascript">
OpenLayers.Lang.setCode("<%= I18n.locale.to_s %>");
var highlight;
function highlightChangeset(id) {