Total Posts:
6
Karma:
30
Joined:
8/9/2011
Location:
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.
Total Posts:
6
Karma:
30
Joined:
8/9/2011
Location:
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.
Total Posts:
6
Karma:
30
Joined:
8/9/2011
Location:
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
Total Posts:
1
Karma:
5
Joined:
8/18/2011
Location:
Hong Kong
So, what is the different between @Html.LabelFor(model => model.Email) and @T("Contactus.Email") ??
Total Posts:
6
Karma:
30
Joined:
8/9/2011
Location:
China
Yes, I also guess it has relationship with the cath. Thanks! It's solved.
Total Posts:
21
Karma:
261
Joined:
10/8/2011
Location:
Turkey
im having the same problem with 2.1 https://www.nopcommerce.com/boards/t/12345/21-to-19-downgrade.aspx#50981