2.0 bug for multil-language

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
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.
12 years ago
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.
12 years ago
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
12 years ago
So, what is the different between
@Html.LabelFor(model => model.Email)
and
@T("Contactus.Email") ??
12 years ago
Thanks for reporting. This issue has been just fixed. See changeset b0385b75b9c8
12 years ago
Yes, I also guess it has relationship with the cath.

Thanks!

It's solved.
12 years ago
im having the same problem with 2.1

https://www.nopcommerce.com/boards/t/12345/21-to-19-downgrade.aspx#50981
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.