[mapguide-trac] #679: fusion locale file (split by widget)
MapGuide Open Source
trac_mapguide at osgeo.org
Mon Aug 25 16:17:16 EDT 2008
#679: fusion locale file (split by widget)
-------------------------+--------------------------------------------------
Reporter: poulet1212 | Owner:
Type: enhancement | Status: new
Priority: low | Milestone:
Component: Fusion | Version: 2.0.1
Severity: trivial | Resolution:
Keywords: | External_id:
-------------------------+--------------------------------------------------
Comment (by chrisclaydon):
If you write your own widget, you should be able to control where the
strings come from. So you shouldn't be tied to using the same file as the
main Fusion components.
In the file fusion.js, Fusion adds its own set of strings into the
!OpenLayers i18n handling as follows:
{{{OpenLayers.Util.extend(OpenLayers.Lang[this.locale],
Fusion.Strings[this.locale]);}}}
I haven't tried it, but an individual widget should be able to make a
similar call to add its own set of strings, if it is going to use the
!OpenLayers localization methods.
--
Ticket URL: <http://trac.osgeo.org/mapguide/ticket/679#comment:2>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals
More information about the mapguide-trac
mailing list