[fusion-users] Refreshing panels without refreshing the map
Paul Deschamps
pdeschamps at dmsolutions.ca
Wed Oct 8 13:39:50 EDT 2008
Hi Ari,
Currently I believe there is no real way to switch language without
reloading the application. (please correct me if i am incorrect). That being
said you could preserve the extents of the map perhaps in a cookie and have
some logic in your initialize function to read in that to reset the extents
to the last saved extents.
One big thing is that your ApplicationDefinition controls some labeling for
the application. so you would need to have two separate
ApplicationDefinitions one for each language. OR. create a php script that
takes in a querystring parameter and outputs a ApplicationDefinition.xml
with the language substitutions.
Which is something I have done.
Also OpenLayers has some nice Language Switching functionality see:
http://dev.openlayers.org/releases/OpenLayers-2.6/doc/apidocs/files/OpenLayers/Lang-js.html
I think perhaps someone should create some documentation on how we have
handled internationalization in fusion. As this is surely something that is
missing out there. hmm who should we get to do this ;)
Cheers
Paul D
---
Paul Deschamps
Applications Specialist
DM Solutions Group.
On Wed, Oct 8, 2008 at 11:15 AM, Ari Þórðarson <ari at snertill.is> wrote:
> Hi everybody,
>
>
>
> I have a fusion application and I want to change the language without
> reloading the whole page. Does anyone know how to refresh all the panels in
> a fusion application without refreshing the map.
>
>
>
> Best Regards,
>
> Ari
>
> _______________________________________________
> fusion-users mailing list
> fusion-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/fusion-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/fusion-users/attachments/20081008/f297c651/attachment.html
More information about the fusion-users
mailing list