You can attach the patch to your email on this mailing list (or the development mailing list), or submit it directly in our issue tracker.
One comment I'll make is that I had no idea what EnumToPairs was until I read the code, so maybe it needs a more descriptive name. On Wed, Jul 29, 2009 at 12:01 AM, bdaniel7 <[email protected]> wrote: > > Hello, > > Working for a Dutch customer, we needed a way to customize some enums, > so that he sees the texts in Dutch and we work with the English member > names. > Therefore i added a Description attribute to each member of the enums. > > public enum MaterialType > { > [Description( "Tegels" )] > Tiles=1, > [Description("Klinkers")] > PavementStones > } > > these attributes are read by some extension methods. > > So far, so good, but we needed a way to create the selects, options, > radio/checkbox inputs with dutch texts as well. > EnumToPairs is only using TextHelper.PascalCaseToWord which wasn't > good enough. > Therefore, I created a small patch (and a couple of tests) for > EnumToPairs method, that can be used to invoke an extension method of > the enum type. > > I can submit the code for review and perhaps to be included in the > official codebase. > What do you say? > > > > > -- Jono --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en -~----------~----~----~----~------~----~------~--~---
