Print Page | Close Window

Localization...

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=1808
Printed Date: 21-Apr-2026 at 12:19pm


Topic: Localization...
Posted By: iosub
Subject: Localization...
Date Posted: 13-May-2010 at 5:16am
HI
 
Or application is going to be localiable. SO I will like to have resource files for all the [DisplayName].
 

Can [Display(Name="CompanyName", AutoGenerateField=true)]  be localizable with a recource file?

for example [Display(Name=ResourceFile("CompanyName"), AutoGenerateField=true)] 
 
 
Thanks!
 
 

example.....      [Display(Name=resource ("CompanyName"), AutoGenerateField=true)]

 




Replies:
Posted By: ting
Date Posted: 14-May-2010 at 10:39pm
We are working on making the Display attribute localizable.  In the meantime, this code generation change will be quite straightforward to do in our next release by overriding the WriteEntityDataPropertyDisplayNameAttribute() and WriteEntityNavigationPropertyDisplayNameAttribute() methods in the T4 template which will then generate the code you want above.


Posted By: iosub
Date Posted: 28-May-2010 at 10:27am
Originally posted by ting

We are working on making the Display attribute localizable.  In the meantime, this code generation change will be quite straightforward to do in our next release by overriding the WriteEntityDataPropertyDisplayName() and WriteEntityNavigationPropertyDisplayName() methods in the T4 template which will then generate the code you want above.
Hi
Is this part on Rc2Alpha??
 
Thanks


Posted By: ting
Date Posted: 28-May-2010 at 1:56pm
This thread covers how to do this:
http://www.ideablade.com/forum/forum_posts.asp?TID=2063 - http://www.ideablade.com/forum/forum_posts.asp?TID=2063
 



Print Page | Close Window