[OpenLayers-Users] Load es.js

Alexandre Dube adube at mapgears.com
Thu Apr 15 13:10:12 EDT 2010


Antoni,

1. Add the lang file
<script src="$PATH_TO_OL/lib/OpenLayers/Lang/es.js"></script>

2. On init (body onload or whatever you load first)
OpenLayers.Lang.setCode("es");

That should do it.

Regards,

Alexandre


Vidal, Antoni wrote:
>
> Hello list,
>
> I didn’t found an example. How can I load es.js and get messages in 
> spanish by dafault?
>
> Thank’s in advance
>
> *Antoni Vidal*
>
> Unitat d'Aplicacions SIG-WEB
> Institut Cartogràfic de Catalunya 
> <http://mercuri.icc.cat/website/mob_nf/mob1/mob2/inici2.htm?CONSULTA=Institut%20Cartogr%25E0fic%20de%20Catalunya&XYADDRESS=429486:4580392>
> Parc de Montjuïc, E-08038 Barcelona
> Tel. (+34) 93 567 15 00 (ext. 3228)
> www.icc.cat <http://www.icc.cat/>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>   


-- 
Alexandre Dubé
Mapgears
www.mapgears.com




More information about the Users mailing list