nikmd23 / CourtesyFlush

The source for my CourtesyFlush NuGet package.
Apache License 2.0
72 stars 6 forks source link

Title attribute from resx file #8

Closed ryansaltuk closed 9 years ago

ryansaltuk commented 10 years ago

Hi there Would it be possible to create TitleResourceType=(typeof(Type)) and TitleResouceName="[string]" properties in the attribute, much like DataAnnotations so that we could pull the Title attribute from resource files? Thanks Ryan

nikmd23 commented 10 years ago

That's a great idea @ryansaltuk!

Would you like to take a go at trying to implement that? I would imagine most of the logic would sit in the Title getter. If a title is explicitly set, we should use that, and if not try to resolve from resx.

simonpucher commented 9 years ago

Thx @ryansaltuk we have implemented the possibility to use data from resource files in the FlushHeadAttribute using TitleResourceName and TitleResourceType (https://github.com/nikmd23/CourtesyFlush/commit/c9d887822b30a3009f5f086c68eb3915ee9a4586)