Tổng Bài đăng: 6 Karma: 30 Đã tham gia: 09/08/2011 Vị trí: 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.
Tổng Bài đăng: 6 Karma: 30 Đã tham gia: 09/08/2011 Vị trí: 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.
Tổng Bài đăng: 6 Karma: 30 Đã tham gia: 09/08/2011 Vị trí: 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
Tổng Bài đăng: 1 Karma: 5 Đã tham gia: 18/08/2011 Vị trí: Hong Kong So, what is the different between @Html.LabelFor(model => model.Email) and @T("Contactus.Email") ??
Tổng Bài đăng: 6 Karma: 30 Đã tham gia: 09/08/2011 Vị trí: China Yes, I also guess it has relationship with the cath. Thanks! It's solved.
Tổng Bài đăng: 21 Karma: 261 Đã tham gia: 08/10/2011 Vị trí: Turkey im having the same problem with 2.1 https://www.nopcommerce.com/boards/t/12345/21-to-19-downgrade.aspx#50981