Refreshing panels without refreshing the map

2 messages Options
Embed this post
Permalink
Ari Þórðarson

Refreshing panels without refreshing the map

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

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
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users
Paul Deschamps

Re: Refreshing panels without refreshing the map

Reply Threaded More More options
Print post
Permalink
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 <[hidden email]> 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
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users



_______________________________________________
fusion-users mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/fusion-users