To Explain you what i mean, i will show you a szenario.
I have a contact.cshtml site. I want to have it multilingual. In english (main), french and german.
So i will create 3 Resource files
Example:
Contact.resx
Contact.fr.resx
Contact.de.resx
Now i fill some Strings into these with the same name but different text.
Contact.resx
(string name) Way - (content) english way description
Contact.de.resx
(string name) Way - (content) german way description
...
Now when i add to my contact.cshtml the ressource with razor:
<label>@ProjectName.FolderName.Contact.Way</label>
It will show to french people the french version, to germans the german version and to all others the english version.
Does Asp.net do this serverside too?
like:
var emailBody = Contact.Way;
Aucun commentaire:
Enregistrer un commentaire