New Posts New Posts RSS Feed: Localization...
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Localization...

 Post Reply Post Reply
Author
ting View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 27-Mar-2009
Location: San Francisco
Posts: 427
Post Options Post Options   Quote ting Quote  Post ReplyReply Direct Link To This Post Topic: Localization...
    Posted: 28-May-2010 at 1:56pm
This thread covers how to do this:
 


Edited by ting - 19-Aug-2010 at 4:39pm
Back to Top
iosub View Drop Down
Newbie
Newbie


Joined: 20-Apr-2010
Location: Spain
Posts: 24
Post Options Post Options   Quote iosub Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
ting View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 27-Mar-2009
Location: San Francisco
Posts: 427
Post Options Post Options   Quote ting Quote  Post ReplyReply Direct Link To This Post 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.


Edited by ting - 19-Aug-2010 at 4:39pm
Back to Top
iosub View Drop Down
Newbie
Newbie


Joined: 20-Apr-2010
Location: Spain
Posts: 24
Post Options Post Options   Quote iosub Quote  Post ReplyReply Direct Link To This Post 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)]

 

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down