Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hello guys.
i'm using Globalization and Localization in my Asp Net Mvc project.. i'm facing an issue in it.
the lables in my view. when these are marked through razor like

@Html.LabelFor(m=>m.Name)

then after change to arabic it's change the name to arabic. but if i use traditional labels of HTML like

Name*

then after selecting arabic the values of this lable is not changed to arabic ?
does not simple html markup supports globalization/localization in mvc ?

kindly tell me how can i fix this ?

What I have tried:

i searched google for it but could not find any solution for it. everywhere in articles it's done only through razor syntax
Posted
Updated 1-Aug-17 6:27am

1 solution

No, straight HTML will not update. HtmlLabelFor passes through a localization aware process and can update the strings based on the selected locale, but a hardcoded HTML string does not.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900