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