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:
parent
2ce968b571
commit
dcb25f0c07
6 changed files with 3 additions and 11 deletions
|
@ -5,8 +5,6 @@
|
|||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
OpenLayers.Lang.setCode("<%= I18n.locale.to_s %>");
|
||||
|
||||
var highlight;
|
||||
|
||||
function highlightChangeset(id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue