Opened 16 years ago

Closed 15 years ago

#679 closed enhancement (wontfix)

fusion locale file (split by widget)

Reported by: poulet1212 Owned by:
Priority: low Milestone:
Component: Fusion Version:
Severity: trivial Keywords:
Cc: External ID:

Description

Right about now, the localization in fusion is done in these directory (json and php), for example: fusion\text\en That mean all localized strings are put there. When developing a widget in Fusion, the only way to achieve localization, is to modify those files, what is not so fine.

Wouldn't it be nice to have a structure like this, for example a folder: -org.osgeo.mapguide.[widget name] -> Localized Strings for [widget] would be there.

and so on for all widgets and future extensions? We would have this way independent files for different components.

Change History (5)

comment:1 by tomfukushima, 16 years ago

Component: GeneralFusion

comment:2 by chrisclaydon, 16 years ago

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.

comment:3 by poulet1212, 16 years ago

thank you Chris for the answer. I didn't knew that, I'll try this for my widget and then let you know. Through this ticket I was wondering if it wasn't better that all widget access their own locale file, for a scalability purpose.

comment:4 by jbirch, 16 years ago

This would be more likely to get attention in the Fusion Trac instance: http://trac.osgeo.org/fusion/ or on the fusion mailing lists...

comment:5 by jbirch, 15 years ago

Resolution: wontfix
Status: newclosed
Version: 2.0.1

Closing due to lack of follow-up. Re-open if still a concern or, better yet, take up on the Fusion mailing list.

Note: See TracTickets for help on using tickets.