回帖总数:
6
业力:
30
注册日期:
2011/8/9
位置:
China
I find that 2.0 beta could not translate some of the resource string into other language. I found this problem on page "My Account". The fields name are displayed in english, not the language I selected. I had check the code. all the resource are uploaded into database. such as: ID LanguageID ResourceName ResourceValue 2302 1 Account.Fields.Email Email 3231 2 Account.Fields.Email 电子邮件 and Finally I find these resource if root from the code: [NopResourceDisplayName("Account.Fields.Email")] [AllowHtml] public string Email { get; set; } I think there is any problem with the code.
回帖总数:
6
业力:
30
注册日期:
2011/8/9
位置:
China
I guess the code in "Presentation\Nop.Web\Models\Customer\Info.cshtml"should be @T("Account.Fields.Email"): instead of @Html.LabelFor(model => model.Email): At thougth the code in "CustomerInfoModel.cs" [NopResourceDisplayName("Account.Fields.Email")] [AllowHtml] public string Email { get; set; }[NopResourceDisplayName("Account.Fields.Email")] could be translated into the language you selected. I am not sure wheather my suppose is right.
回帖总数:
6
业力:
30
注册日期:
2011/8/9
位置:
China
Finally, I find it has relationship with my test environment under vs2010. when i browse it uder IIS, it back to normal. it's weired
回帖总数:
1
业力:
5
注册日期:
2011/8/18
位置:
Hong Kong
So, what is the different between @Html.LabelFor(model => model.Email) and @T("Contactus.Email") ??
回帖总数:
6
业力:
30
注册日期:
2011/8/9
位置:
China
Yes, I also guess it has relationship with the cath. Thanks! It's solved.
回帖总数:
21
业力:
261
注册日期:
2011/10/8
位置:
Turkey
im having the same problem with 2.1 https://www.nopcommerce.com/boards/t/12345/21-to-19-downgrade.aspx#50981