locale=<your ISO 639-1 language code>

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

locale=<your ISO 639-1 language code>

pcardinal
With Fusion, is it possible to put the parameter "locale=fr" in the index.html file so the function Fusion.initializeLocale() knows which language to use.  
Reply | Threaded
Open this post in threaded view
|

Re: locale=<your ISO 639-1 language code>

Jackie Ng
Yes, that the parameter that Fusion looks for when initializing.

- Jackie
Reply | Threaded
Open this post in threaded view
|

Re: locale=<your ISO 639-1 language code>

pcardinal
Reply | Threaded
Open this post in threaded view
|

Re: locale=<your ISO 639-1 language code>

Jackie Ng
Whatever locale=$LANG you pass to the Fusion template, it will use the same $LANG value when sending requests to the mapagent.

If locale=$LANG is included in requests to the mapagent, then when any errors occur on the Server or Web Tier, it will be looking for the localized error message in a file named mapguide_$LANG.res that should be in the same place where mapguide_en.res (the default string bundle) is located in.

If no such file exists, I think error messages from the Server or Web Tier would fall back to english.

- Jackie